/**
 * @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v24.1.0
 * @link http://www.ag-grid.com/
' * @license Commercial
 */

/**
 * @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v24.1.0
 * @link http://www.ag-grid.com/
' * @license Commercial
 */
"use strict";
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://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&&(e||""!==t)}function o(t){return!e(t)}function n(t){return!t||o(t)||0===t.length}function i(t){return e(t)&&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&&(!0===t||!1===t?t:/true/i.test(t))}function a(t,e,o){if(null==t)return null;if(!Array.isArray(t))return a(l(t),e,o);for(var n=t,i=null,r=0;r<n.length;r++){var s=n[r];if("string"==typeof e){if(s[e]===o){i=s;break}}else if(e(s)){i=s;break}}return i}function l(t){if(t instanceof Set||t instanceof Map){var e=[];return t.forEach((function(t){return e.push(t)})),e}return Object.keys(t).map((function(e){return t[e]}))}Object.defineProperty(exports,"__esModule",{value:!0});var p=Object.freeze({__proto__:null,makeNull:t,exists:e,missing:o,missingOrEmpty:n,toStringOrNull:i,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 n=null==t,i=null==e;if(t&&t.toNumber&&(t=t.toNumber()),e&&e.toNumber&&(e=e.toNumber()),n&&i)return 0;if(n)return-1;if(i)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)}},find:a,values:l}),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=i(t);for(var o=0;;){var n=void 0;if(t?(n=t,0!==o&&(n+="_"+o)):e?(n=e,0!==o&&(n+="_"+o)):n=""+o,!this.existingKeys[n])return this.existingKeys[n]=!0,n;o++}},t}();
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
function c(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];for(var n=0;n<t.length;n++){var i=t[n];if(e(i))return i}return null}function d(t){if(t&&t.length)return t[t.length-1]}function h(t,e,o){return null==t&&null==e||null!=t&&null!=e&&t.length===e.length&&R(t,(function(t,n){return o?o(t,e[n]):e[n]===t}))}function f(t){return t.sort((function(t,e){return t-e}))}function g(t,e){var o=t.indexOf(e);o>=0&&t.splice(o,1)}function y(t,e){P(e,(function(e){return g(t,e)}))}function v(t,e,o){t.splice(o,0,e)}function m(t,e,o){y(t,e),P(e.slice().reverse(),(function(e){return v(t,e,o)}))}function C(t,e){return t.indexOf(e)>-1}function w(t,e){null!=e&&null!=t&&P(e,(function(e){return t.push(e)}))}function E(t,e){for(var o=0;o<t.length;o++)if(e(t[o],o,t))return o;return-1}function R(t,e){if(null==t)return!0;for(var o=0;o<t.length;o++)if(!e(t[o],o))return!1;return!0}function O(t,e){if(null==t)return!1;for(var o=0;o<t.length;o++)if(e(t[o],o))return!0;return!1}function P(t,e){if(null!=t)for(var o=0;o<t.length;o++)e(t[o],o)}function b(t,e){if(null==t)return null;for(var o=[],n=0;n<t.length;n++)o.push(e(t[n],n));return o}function S(t,e){if(null==t)return null;for(var o=[],n=0;n<t.length;n++)e(t[n],n)&&o.push(t[n]);return o}var D=Object.freeze({__proto__:null,firstExistingValue:c,anyExists:function(t){return t&&null!=c(t)},existsAndNotEmpty:function(t){return null!=t&&t.length>0},last:d,areEqual:h,compareArrays:function(t,e){return h(t,e)},shallowCompare:function(t,e){return h(t,e)},sortNumerically:f,removeRepeatsFromArray:function(t,e){if(t)for(var o=t.length-2;o>=0;o--){var n=t[o]===e,i=t[o+1]===e;n&&i&&t.splice(o+1,1)}},removeFromArray:g,removeAllFromArray:y,insertIntoArray:v,insertArrayIntoArray:function(t,e,o){if(null!=t&&null!=e)for(var n=e.length-1;n>=0;n--){v(t,e[n],o)}},moveInArray:m,includes:C,flatten:function(t){return[].concat.apply([],t)},pushAll:w,toStrings:function(t){return b(t,i)},findIndex:E,every:R,some:O,forEach:P,forEachReverse:function(t,e){if(null!=t)for(var o=t.length-1;o>=0;o--)e(t[o],o)},map:b,filter:S,reduce:function(t,e,o){if(null==t||null==o)return null;for(var n=o,i=0;i<t.length;i++)n=e(n,t[i],i);return n},forEachSnapshotFirst:function(t,e){t&&t.slice(0).forEach(e)}});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function T(t,e){null!=t&&(Array.isArray(t)?P(t,(function(t,o){return e(""+o,t)})):P(Object.keys(t),(function(o){return e(o,t[o])})))}function _(t){for(var e={},o=Object.keys(t),n=0;n<o.length;n++){var i=o[n],r=t[i];e[i]=r}return e}function A(t,e){if(t){var o=t,n={};return Object.keys(o).forEach((function(t){if(!(e&&e.indexOf(t)>=0)){var i=o[t],r="object"==typeof i&&i.constructor===Object;n[t]=r?A(i):i}})),n}}function F(t,e){return t[e]}function N(t,e,o){t[e]=o}function L(t,e,o,n){var i=F(t,o);void 0!==i&&N(e,o,n?n(i):i)}function I(t){var e={};return t.filter((function(t){return null!=t})).forEach((function(t){P(Object.keys(t),(function(t){return e[t]=null}))})),Object.keys(e)}function M(t,o,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1),e(o)&&T(o,(function(e,o){var r=t[e];if(r!==o){if(i)if(null==r&&null!=o)"object"==typeof o&&o.constructor===Object&&(r={},t[e]=r);W(o)&&W(r)&&!Array.isArray(r)?M(r,o,n,i):(n||void 0!==o)&&(t[e]=o)}}))}function G(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];return P(e,(function(e){return T(e,(function(e,o){return t[e]=o}))})),t}function x(t,e,o){if(null==t)return o;for(var n=e.split("."),i=t;n.length>1;)if(null==(i=i[n.shift()]))return o;var r=i[n[0]];return null!=r?r:o}function V(t,e,n){if(e&&t){if(!n)return t[e];for(var i=e.split("."),r=t,s=0;s<i.length;s++){if(o(r))return null;r=r[i[s]]}return r}}function W(t){return"object"==typeof t&&null!==t}var H=Object.freeze({__proto__:null,iterateObject:T,cloneObject:_,deepCloneObject:function(t){return JSON.parse(JSON.stringify(t))},deepCloneDefinition:A,getProperty:F,setProperty:N,copyPropertiesIfPresent:function(t,e){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];P(o,(function(o){return L(t,e,o)}))},copyPropertyIfPresent:L,getAllKeysInObjects:I,mergeDeep:M,assign:G,missingOrEmptyObject:function(t){return o(t)||0===Object.keys(t).length},get:x,set:function(t,e,o){if(null!=t){for(var n=e.split("."),i=t;n.length>1;)if(null==(i=i[n.shift()]))return;i[n[0]]=o}},deepFreeze:function t(e){return Object.freeze(e),P(l(e),(function(e){(W(e)||"function"==typeof e)&&t(e)})),e},getValueUsingField:V,removeAllReferences:function(t,e){Object.keys(t).forEach((function(e){"object"==typeof t[e]&&(t[e]=void 0)}));var o=Object.getPrototypeOf(t),n={};Object.keys(o).forEach((function(t){if("function"==typeof o[t]){n[t]={value:function(){console.warn("ag-Grid: "+e+" function "+t+"() cannot be called as the grid has been \ndestroyed. Please don't call grid API functions on destroyed grids - as a matter of fact you \nshouldn't be keeping the API reference, your application has a memory leak! Remove the API reference \nwhen the grid is destroyed.")},writable:!0}}})),Object.defineProperties(t,n)},isNonNullObject:W}),k=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,B=/([^\s,]+)/g,j={};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function U(t,e){j[e]||(t(),j[e]=!0)}function z(t){if(t.name)return t.name;var e=/function\s+([^\(]+)/.exec(t.toString());return e&&2===e.length?e[1].trim():null}function K(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Y(t){X(t,400)}function q(t){X(t,0)}function X(t,e){void 0===e&&(e=0),t.length>0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),e)}function Q(t,e,o){var n;return void 0===o&&(o=!1),function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var s=this,a=o&&!n;window.clearTimeout(n),n=window.setTimeout((function(){n=null,o||t.apply(s,i)}),e),a&&t.apply(s,i)}}function $(t){t&&t()}var Z=Object.freeze({__proto__:null,doOnce:U,getFunctionName:z,getFunctionParameters:function(t){var e=t.toString().replace(k,"");return e.slice(e.indexOf("(")+1,e.indexOf(")")).match(B)||[]},isFunction:K,executeInAWhile:Y,executeNextVMTurn:q,executeAfter:X,debounce:Q,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:$});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function J(t,e,o){var n=at(t.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(e)}function tt(t,e,o){var n=at(t.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(e)}function et(t,e,o){var n=at(t.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(e)}function ot(t){return function(e){at(e).beanName=t}}function nt(t){return function(e,o,n){rt(e,t,!1,e,o,null)}}function it(t){return function(e,o,n){rt(e,t,!0,e,o,null)}}function rt(t,e,o,n,i,r){if(null!==e)if("number"!=typeof r){var s=at(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:i,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 st(t){return function(e,o,n){var i,r="function"==typeof e?e:e.constructor;if("number"==typeof n){var s=void 0;o?(i=at(r),s=o):(i=at(r),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][n]=t}}}function at(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */var lt,pt=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ut=function(t,e){return function(o,n){e(o,n,t)}},ct=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){if(void 0===o&&(o=null),this.logger=t.create("EventService"),o){var n=e.useAsyncEvents();this.addGlobalListener(o,n)}},t.prototype.getListeners=function(t,e){var o=e?this.allAsyncListeners:this.allSyncListeners,n=o.get(t);return n||(n=new Set,o.set(t,n)),n},t.prototype.addEventListener=function(t,e,o){void 0===o&&(o=!1),this.getListeners(t,o).add(e)},t.prototype.removeEventListener=function(t,e,o){void 0===o&&(o=!1),this.getListeners(t,o).delete(e)},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){this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,e){var o=this,n=t.type;this.getListeners(n,e).forEach((function(n){e?o.dispatchAsync((function(){return n(t)})):n(t)})),(e?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(i){e?o.dispatchAsync((function(){return i(n,t)})):i(n,t)}))},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()}))},pt([ut(0,st("loggerFactory")),ut(1,st("gridOptionsWrapper")),ut(2,st("globalEventListener"))],t.prototype,"setBeans",null),t=pt([ot("eventService")],t)}(),dt=function(){function t(){}return t.STEP_EVERYTHING=0,t.STEP_FILTER=1,t.STEP_SORT=2,t.STEP_MAP=3,t.STEP_AGGREGATE=4,t.STEP_PIVOT=5,t.ROW_BUFFER_SIZE=10,t.LAYOUT_INTERVAL=500,t.BATCH_WAIT_MILLIS=50,t.EXPORT_TYPE_DRAG_COPY="dragCopy",t.EXPORT_TYPE_CLIPBOARD="clipboard",t.EXPORT_TYPE_EXCEL="excel",t.EXPORT_TYPE_CSV="csv",t.ROW_MODEL_TYPE_INFINITE="infinite",t.ROW_MODEL_TYPE_VIEWPORT="viewport",t.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",t.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",t.ALWAYS="always",t.ONLY_WHEN_GROUPING="onlyWhenGrouping",t.PINNED_TOP="top",t.PINNED_BOTTOM="bottom",t.DOM_LAYOUT_NORMAL="normal",t.DOM_LAYOUT_PRINT="print",t.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",t.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",t.SOURCE_PASTE="paste",t.PINNED_RIGHT="right",t.PINNED_LEFT="left",t.SORT_ASC="asc",t.SORT_DESC="desc",t}();!function(t){t.CommunityCoreModule="@ag-grid-community/core",t.CommunityAllModules="@ag-grid-community/all",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.RowNodeCache="@ag-grid-community/row-node-cache",t.EnterpriseCoreModule="@ag-grid-enterprise/core",t.EnterpriseAllModules="@ag-grid-enterprise/all",t.RowGroupingModule="@ag-grid-enterprise/row-grouping",t.ColumnToolPanelModule="@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.DateTimeCellEditorModule="@ag-grid-enterprise/date-time-cell-editor",t.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue",t.PolymerModule="@ag-grid-community/polymer"}(lt||(lt={}));
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
var ht=function(){function t(){}return t.register=function(e,o){void 0===o&&(o=!0),t.modulesMap[e.moduleName]=e,void 0===t.moduleBased?t.moduleBased=o:t.moduleBased!==o&&U((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.registerModules=function(e,o){void 0===o&&(o=!0),e&&e.forEach((function(e){return t.register(e,o)}))},t.assertRegistered=function(t,e){if(this.isRegistered(t))return!0;var o="ag-Grid: unable to use "+e+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid-modules/";return U((function(){console.warn(o)}),e+t),!1},t.isRegistered=function(e){return!!t.modulesMap[e]},t.getRegisteredModules=function(){return l(t.modulesMap)},t.isPackageBased=function(){return!t.moduleBased},t.modulesMap={},t}(),ft=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},gt=function(){function t(t,e,o,n){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ct,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=o,this.primary=n,this.setState(t)}return t.prototype.setState=function(t){void 0!==t.sort?t.sort!==dt.SORT_ASC&&t.sort!==dt.SORT_DESC||(this.sort=t.sort):t.initialSort!==dt.SORT_ASC&&t.initialSort!==dt.SORT_DESC||(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 n=s(t.hide),i=s(t.initialHide);this.visible=void 0!==n?!n:!i,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},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(){var t=this.gridOptionsWrapper.getMinColWidth(),o=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=t,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=o,this.resetActualWidth("gridInitializing");var n=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=e(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!n,this.tooltipFieldContainsDots=e(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!n,this.validate()},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,n=this.colDef.showRowGroup===t;return e||n},t.prototype.getUniqueId=function(){return this.getId()},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){var t=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&t},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){U((function(){o?console.warn(t,o):U((function(){return console.warn(t)}),e)}),e)}if(!ht.isRegistered(lt.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(n){e(t[n])&&(ht.isPackageBased()?o("ag-Grid: "+n+" is only valid in ag-grid-enterprise, your column definition should not have "+n,"ColumnRowGroupingMissing"+n):o("ag-Grid: "+n+" is only valid with ag-Grid Enterprise Module "+lt.RowGroupingModule+" - your column definition should not have "+n,"ColumnRowGroupingMissing"+n))}))}if(ht.isRegistered(lt.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(ht.isPackageBased()?o("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):o("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+lt.RichSelectModule,"ColumnRichSelectMissing")),ht.isRegistered(lt.DateTimeCellEditorModule)||"agRichSelect"!==this.colDef.cellEditor&&"agDateTimeCellEditor"!==this.colDef.cellEditor||(ht.isPackageBased()?o("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnDateTimeMissing"):o("ag-Grid: "+this.colDef.cellEditor+" can only be used with ag-Grid Enterprise Module "+lt.DateTimeCellEditorModule,"ColumnDateTimeMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(n){e(t[n])&&o("ag-Grid: "+n+" is not possible when doing tree data, your column definition should not have "+n,"TreeDataCannotRowGroup")}))}e(this.colDef.width)&&"number"!=typeof this.colDef.width&&o("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef")},t.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},t.prototype.createIsColumnFuncParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},t.prototype.isSuppressNavigable=function(t){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var e=this.createIsColumnFuncParams(t);return(0,this.colDef.suppressNavigable)(e)}return!1},t.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(t,this.colDef.editable)},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!0===this.colDef.resizable},t.prototype.isColumnFunc=function(t,e){return"boolean"==typeof e?e:"function"==typeof e&&e(this.createIsColumnFuncParams(t))},t.prototype.setMoving=function(e,o){void 0===o&&(o="api"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MOVING_CHANGED,o))},t.prototype.createColumnEvent=function(t,e){return{api:this.gridApi,columnApi:this.columnApi,type:t,column:this,columns:[this],source:e}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(e,o){void 0===o&&(o="api"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_SORT_CHANGED,o)))},t.prototype.setMenuVisible=function(e,o){void 0===o&&(o="api"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MENU_VISIBLE_CHANGED,o)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return this.sort===dt.SORT_ASC},t.prototype.isSortDescending=function(){return this.sort===dt.SORT_DESC},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(e,o){void 0===o&&(o="api"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LEFT_CHANGED,o)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(e,o,n){void 0===o&&(o="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FILTER_ACTIVE_CHANGED,o)));var i=this.createColumnEvent(t.EVENT_FILTER_CHANGED,o);n&&M(i,n),this.eventService.dispatchEvent(i)},t.prototype.setPinned=function(t){!0===t||t===dt.PINNED_LEFT?this.pinned=dt.PINNED_LEFT:t===dt.PINNED_RIGHT?this.pinned=dt.PINNED_RIGHT:this.pinned=null},t.prototype.setFirstRightPinned=function(e,o){void 0===o&&(o="api"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FIRST_RIGHT_PINNED_CHANGED,o)))},t.prototype.setLastLeftPinned=function(e,o){void 0===o&&(o="api"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LAST_LEFT_PINNED_CHANGED,o)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return this.pinned===dt.PINNED_LEFT||this.pinned===dt.PINNED_RIGHT},t.prototype.isPinnedLeft=function(){return this.pinned===dt.PINNED_LEFT},t.prototype.isPinnedRight=function(){return this.pinned===dt.PINNED_RIGHT},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(e,o){void 0===o&&(o="api");var n=!0===e;this.visible!==n&&(this.visible=n,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VISIBLE_CHANGED,o)))},t.prototype.isVisible=function(){return this.visible},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.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},t.prototype.getColSpan=function(t){if(o(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),n=this.colDef.colSpan(e);return Math.max(n,1)},t.prototype.getRowSpan=function(t){if(o(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),n=this.colDef.rowSpan(e);return Math.max(n,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(e){this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_WIDTH_CHANGED,e))},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"),this.setActualWidth(this.minWidth,t)},t.prototype.setRowGroupActive=function(e,o){void 0===o&&(o="api"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_ROW_GROUP_CHANGED,o)))},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(e,o){void 0===o&&(o="api"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_PIVOT_CHANGED,o)))},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(e,o){void 0===o&&(o="api"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VALUE_CHANGED,o)))},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.prototype.isLockPosition=function(){return console.warn("ag-Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},t.prototype.isLockVisible=function(){return console.warn("ag-Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},t.prototype.isLockPinned=function(){return console.warn("ag-Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},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_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",ft([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ft([nt("columnUtils")],t.prototype,"columnUtils",void 0),ft([nt("columnApi")],t.prototype,"columnApi",void 0),ft([nt("gridApi")],t.prototype,"gridApi",void 0),ft([nt("context")],t.prototype,"context",void 0),ft([tt],t.prototype,"initialise",null),t}(),yt=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},vt=function(){function t(t,e,o,n){this.displayedChildren=[],this.localEventService=new ct,this.groupId=e,this.instanceId=o,this.originalColumnGroup=t,this.pinned=n}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.instanceId)},t.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},t.prototype.isMoving=function(){var t=this.getOriginalColumnGroup().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.gridOptionsWrapper.isEnableRtl()){var e=d(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.getInstanceId=function(){return this.instanceId},t.prototype.isChildInThisGroupDeepSearch=function(e){var o=!1;return this.children.forEach((function(n){e===n&&(o=!0),n instanceof t&&n.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()})),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.originalColumnGroup.getColGroupDef()},t.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},t.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},t.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},t.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},t.prototype.setExpanded=function(t){this.originalColumnGroup.setExpanded(t)},t.prototype.addDisplayedLeafColumns=function(e){this.displayedChildren.forEach((function(o){o instanceof gt?e.push(o):o instanceof t&&o.addDisplayedLeafColumns(e)}))},t.prototype.addLeafColumns=function(e){this.children.forEach((function(o){o instanceof gt?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},t.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},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=[];var o=this;if(this.isPadding())for(;o.getParent()&&o.isPadding();)o=o.getParent();o.originalColumnGroup.isExpandable()?this.children.forEach((function(n){switch(n.getColumnGroupShow()){case t.HEADER_GROUP_SHOW_OPEN:o.originalColumnGroup.isExpanded()&&e.displayedChildren.push(n);break;case t.HEADER_GROUP_SHOW_CLOSED:o.originalColumnGroup.isExpanded()||e.displayedChildren.push(n);break;default:n instanceof t&&n.isPadding()&&!n.displayedChildren.length||e.displayedChildren.push(n)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED))},t.HEADER_GROUP_SHOW_OPEN="open",t.HEADER_GROUP_SHOW_CLOSED="closed",t.HEADER_GROUP_PADDING="padding",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",yt([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),mt=function(){function t(t,e,o,n){this.localEventService=new ct,this.expandable=!1,this.colGroupDef=t,this.groupId=e,this.expanded=t&&!!t.openByDefault,this.padding=o,this.level=n}return 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 gt?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getColumnGroupShow=function(){return this.padding?vt.HEADER_GROUP_PADDING:this.colGroupDef.columnGroupShow},t.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.getLeafColumns().forEach((function(e){return e.addEventListener(gt.EVENT_VISIBLE_CHANGED,t.onColumnVisibilityChanged.bind(t))}))},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var e=!1,o=!1,n=!1,i=this.findChildren(),r=0,s=i.length;r<s;r++){var a=i[r];if(a.isVisible()){var l=a.getColumnGroupShow();if(l===vt.HEADER_GROUP_SHOW_OPEN)e=!0,n=!0;else if(l===vt.HEADER_GROUP_SHOW_CLOSED)o=!0,n=!0;else{if(e=!0,o=!0,l===vt.HEADER_GROUP_PADDING)n=n||a.children.some((function(t){return void 0!==t.getColumnGroupShow()}))}}}var p=e&&o&&n;if(this.expandable!==p){this.expandable=p;var u={type:t.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(u)}}},t.prototype.findChildren=function(){var e=this.children,o=e[0];if(o&&(!o.isPadding||!o.isPadding()))return e;for(;1===e.length&&e[0]instanceof t;)e=e[0].children;return 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",t}(),Ct={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},wt=["touchstart","touchend","touchmove","touchcancel"],Et=["mouseover","mouseout","mouseenter","mouseleave"],Rt={};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function Ot(t){t.__ag_Grid_Stop_Propagation=!0}function Pt(t){return!0===t.__ag_Grid_Stop_Propagation}var bt,St=(bt={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){if("boolean"==typeof Rt[t])return Rt[t];var e=document.createElement(bt[t]||"div"),o=(t="on"+t)in e;return o||(e.setAttribute(t,"return;"),o="function"==typeof e[t]),e=null,Rt[t]=o});function Dt(t,e){for(var o=Tt(e);o;){var n=t.getDomData(o,"cellComp");if(n)return n;o=o.parentElement}return null}function Tt(t){var e=t;return e.target||e.srcElement}function _t(t,e){return!(!e||!t)&&Ft(e).indexOf(t)>=0}function At(t){for(var e=[],o=Tt(t);o;)e.push(o),o=o.parentElement;return e}function Ft(t){var e=t;return e.deepPath?e.deepPath():e.path?e.path:e.composedPath?e.composedPath():e.__agGridEventPath?e.__agGridEventPath:At(t)}function Nt(t,e,o,n){var i=C(wt,o)?{passive:!0}:void 0;C(Et,o)?t&&t.addEventListenerOutsideAngular&&t.addEventListenerOutsideAngular(e,o,n,i):e.addEventListener(o,n,i)}var Lt,It=Object.freeze({__proto__:null,stopPropagationForAgGrid:Ot,isStopPropagationForAgGrid:Pt,isEventSupported:St,getCellCompForEvent:Dt,addChangeListener:function(t,e){t.addEventListener("changed",e),t.addEventListener("paste",e),t.addEventListener("input",e),t.addEventListener("keydown",e),t.addEventListener("keyup",e)},getTarget:Tt,isElementInEventPath:_t,createEventPath:At,addAgGridEventPath:function(t){t.__agGridEventPath=Ft(t)},getEventPath:Ft,addSafePassiveEventListener:Nt}),Mt=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gt=function(){function t(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.getContext=function(){return t.context},this.isAlive=function(){return!t.destroyed}}return t.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},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 ct),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 n=this;if(!this.destroyed){t instanceof HTMLElement?Nt(this.getFrameworkOverrides(),t,e,o):t.addEventListener(e,o);var i=function(){return t.removeEventListener(e,o),n.destroyFunctions=n.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&&P(t,(function(t){return o.destroyBean(t,e)})),[]},t.EVENT_DESTROYED="destroyed",Mt([nt("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Mt([nt("context")],t.prototype,"context",void 0),Mt([nt("eventService")],t.prototype,"eventService",void 0),Mt([et],t.prototype,"destroy",null),t}(),xt=(Lt=function(t,e){return(Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}Lt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Vt=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Wt=function(t,e){return function(o,n){e(o,n,t)}},Ht=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}xt(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},e.prototype.createColumnTree=function(t,e,o){var n=new u;if(o){var i=o.map((function(t){return t.getId()}));n.addExistingKeys(i)}var r=o?o.slice():null,s=this.recursivelyCreateColumns(t,0,e,r,n,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,n);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(t,e){t instanceof mt&&t.setupExpandable(),t.setOriginalParent(e)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(t,e){var o=this,n=[];return t.forEach((function(t){var i=o.createAutoGroupTreeItem(e,t);n.push(i)})),n},e.prototype.createAutoGroupTreeItem=function(t,e){for(var o=e,n=this.findDepth(t)-1;n>=0;n--){var i=new mt(null,"FAKE_PATH_"+e.getId()+"}_"+n,!0,n);this.context.createBean(i),i.setChildren([o]),o.setOriginalParent(i),o=i}return o},e.prototype.findDepth=function(t){for(var e=0,o=t;o&&o[0]&&o[0]instanceof mt;)e++,o=o[0].getChildren();return e},e.prototype.balanceColumnTree=function(t,e,o,n){for(var i=[],r=0;r<t.length;r++){var s=t[r];if(s instanceof mt){var a=s,l=this.balanceColumnTree(a.getChildren(),e+1,o,n);a.setChildren(l),i.push(a)}else{for(var p=void 0,u=void 0,c=o-1;c>=e;c--){var d=n.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new mt(h,d,!0,e);this.context.createBean(f),u&&u.setChildren([f]),u=f,p||(p=u)}if(p){if(i.push(p),t.some((function(t){return t instanceof mt}))){u.setChildren([s]);continue}u.setChildren(t);break}i.push(s)}}return i},e.prototype.findMaxDept=function(t,e){for(var o=e,n=0;n<t.length;n++){var i=t[n];if(i instanceof mt){var r=i,s=this.findMaxDept(r.getChildren(),e+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(t,e,o,n,i,r){var s=this,a=[];return t?(t.forEach((function(t){var l;l=s.isColumnGroup(t)?s.createColumnGroup(o,t,e,n,i,r):s.createColumn(o,t,n,i,r),a.push(l)})),a):a},e.prototype.createColumnGroup=function(t,e,o,n,i,r){var s=this.createMergedColGroupDef(e),a=i.getUniqueKey(s.groupId,null),l=new mt(s,a,!1,o);this.context.createBean(l);var p=this.recursivelyCreateColumns(s.children,o+1,t,n,i,l);return l.setChildren(p),l},e.prototype.createMergedColGroupDef=function(t){var e={};return G(e,this.gridOptionsWrapper.getDefaultColGroupDef()),G(e,t),this.checkForDeprecatedItems(e),e},e.prototype.createColumn=function(t,e,o,n,i){var r=this.mergeColDefs(e);this.checkForDeprecatedItems(r);var s=this.findExistingColumn(e,o);if(s)s.setColDef(r,e),this.applyColumnState(s,r);else{var a=n.getUniqueKey(r.colId,r.field);s=new gt(r,e,a,t),this.context.createBean(s)}return s},e.prototype.applyColumnState=function(t,e){var o=r(e.flex);if(void 0!==o&&t.setFlex(o),t.getFlex()<=0){var n=r(e.width);null!=n&&t.setActualWidth(n)}void 0!==e.sort&&(e.sort==dt.SORT_ASC||e.sort==dt.SORT_DESC?t.setSort(e.sort):t.setSort(void 0));var i=r(e.sortIndex);void 0!==i&&t.setSortIndex(i);var a=s(e.hide);void 0!==a&&t.setVisible(!a),void 0!==e.pinned&&t.setPinned(e.pinned)},e.prototype.findExistingColumn=function(t,e){var o=a(e,(function(e){var o=e.getUserProvidedColDef();if(!o)return!1;var n=null!=t.colId,i=null!=t.field;return n?e.getId()===t.colId:i?o.field===t.field:o===t}));return o&&g(e,o),o},e.prototype.mergeColDefs=function(t){var e={},o=this.gridOptionsWrapper.getDefaultColDef();if(M(e,o,!0,!0),t.type||o&&o.type){var n=t.type?t.type:o.type;this.assignColumnTypes(n,e)}return M(e,t,!0,!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 n=G({},Ct);T(this.gridOptionsWrapper.getColumnTypes()||{},(function(t,e){t in n?console.warn("ag-Grid: the column type '"+t+"' is a default column type and cannot be overridden."):n[t]=e})),o.forEach((function(t){var o=n[t.trim()];o?M(e,o,!0,!0):console.warn("ag-grid: colDef.type '"+t+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(t){if(t){var e=t;void 0!==e.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==e.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==e.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==e.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==e.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(e.suppressRowGroup||e.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),e.displayName&&(console.warn("ag-grid: Found displayName "+e.displayName+", please use headerName instead, displayName is deprecated."),e.headerName=e.displayName)}},e.prototype.isColumnGroup=function(t){return void 0!==t.children},Vt([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Vt([nt("columnUtils")],e.prototype,"columnUtils",void 0),Vt([Wt(0,st("loggerFactory"))],e.prototype,"setBeans",null),e=Vt([ot("columnFactory")],e)}(Gt),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_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_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_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_ROW_VALUE_CHANGED="rowValueChanged",t.EVENT_CELL_FOCUSED="cellFocused",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_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",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_ROW_DRAG_ENTER="rowDragEnter",t.EVENT_ROW_DRAG_MOVE="rowDragMove",t.EVENT_ROW_DRAG_LEAVE="rowDragLeave",t.EVENT_ROW_DRAG_END="rowDragEnd",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}()),kt=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}(),Bt=/[&<>"']/g,jt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function Ut(t){return null==t?null:t.replace(/([A-Z])/g,(function(t){return"-"+t[0].toLowerCase()}))}function zt(t){return null==t?null:t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}function Kt(t){return null!=t&&t.replace?t.replace(Bt,(function(t){return jt[t]})):t}function Yt(t){if(!t||null==t)return null;return t.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(t){return t.substring(0,1).toUpperCase()+(t.length>1?t.substring(1,t.length):"")})).join(" ")}function qt(t,e){return t===e||null!=t&&t.slice(0,e.length)===e}var Xt=Object.freeze({__proto__:null,utf8_encode:function(t){var e=String.fromCharCode;function o(t,o){return e(t>>o&63|128)}function n(t){if(0==(4294967168&t))return e(t);var n="";return 0==(4294965248&t)?n=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),n=e(t>>12&15|224),n+=o(t,6)):0==(4292870144&t)&&(n=e(t>>18&7|240),n+=o(t,12),n+=o(t,6)),n+=e(63&t|128)}for(var i=function(t){for(var e,o,n=[],i=0,r=t.length;i<r;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<r?56320==(64512&(o=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&o)+65536):(n.push(e),i--):n.push(e);return n}(t),r=i.length,s=-1,a="";++s<r;)a+=n(i[s]);return a},camelCaseToHyphen:Ut,hyphenToCamelCase:zt,capitalise:function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()},escapeString:Kt,camelCaseToHumanText:Yt,startsWith:qt}),Qt=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$t=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Zt=function(t,e){return function(o,n){e(o,n,t)}};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */!function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.secondaryColumnsPresent=!1,e.gridHeaderRowCount=0,e.displayedLeftColumns=[],e.displayedRightColumns=[],e.displayedCenterColumns=[],e.allDisplayedColumns=[],e.allDisplayedVirtualColumns=[],e.allDisplayedCenterVirtualColumns=[],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.colDefVersion=0,e.flexColsCalculatedAtLestOnce=!1,e}Qt(i,t),i.prototype.init=function(){this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var t=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",this.onAutoGroupColumnDefChanged.bind(this))},i.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},i.prototype.getColDefVersion=function(){return this.colDefVersion},i.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api");var o=!!this.columnDefs;this.colDefVersion++;var n=this.compareColumnStatesAndRaiseEvents(e);this.columnDefs=t,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,r=this.columnFactory.createColumnTree(t,!0,i);this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(e,i),this.extractPivotColumns(e,i),this.extractValueColumns(e,i),this.ready=!0,this.updateGridColumns(),o&&this.gridColsArePrimary&&this.gridOptionsWrapper.isApplyColumnDefOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(e),this.checkDisplayedVirtualColumns();var s={type:Ht.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(s);var a={type:Ht.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};n(),this.eventService.dispatchEvent(a)},i.prototype.orderGridColumnsLikePrimary=function(){var t=this;this.gridColumns.sort((function(e,o){var n=t.primaryColumns.indexOf(e),i=t.primaryColumns.indexOf(o),r=n>=0,s=i>=0;return r&&s?n-i:r?1:s?-1:t.gridColumns.indexOf(e)-t.gridColumns.indexOf(o)}))},i.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},i.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},i.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},i.prototype.getDisplayedColumnsStartingAt=function(t){for(var e=t,o=[];null!=e;)o.push(e),e=this.getDisplayedColAfter(e);return o},i.prototype.checkDisplayedVirtualColumns=function(){if(null!=this.displayedCenterColumns){var t=this.allDisplayedVirtualColumns.map((function(t){return t.getId()})).join("#");if(this.updateVirtualSets(),t!==this.allDisplayedVirtualColumns.map((function(t){return t.getId()})).join("#")){var e={type:Ht.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)}}},i.prototype.setVirtualViewportPosition=function(t,e){(t!==this.scrollWidth||e!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=t,this.scrollPosition=e,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},i.prototype.isPivotMode=function(){return this.pivotMode},i.prototype.isPivotSettingAllowed=function(t){return!t||!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},i.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:Ht.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},i.prototype.getSecondaryPivotColumn=function(t,e){if(!this.secondaryColumnsPresent||!this.secondaryColumns)return null;var o=this.getPrimaryColumn(e),n=null;return this.secondaryColumns.forEach((function(e){var i=e.getColDef().pivotKeys,r=e.getColDef().pivotValueColumn;h(i,t)&&r===o&&(n=e)})),n},i.prototype.setBeans=function(t){this.logger=t.create("ColumnController")},i.prototype.setFirstRightAndLastLeftPinned=function(t){var e,o;this.gridOptionsWrapper.isEnableRtl()?(e=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,o=this.displayedRightColumns?d(this.displayedRightColumns):null):(e=this.displayedLeftColumns?d(this.displayedLeftColumns):null,o=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(n){n.setLastLeftPinned(n===e,t),n.setFirstRightPinned(n===o,t)}))},i.prototype.autoSizeColumns=function(t,e,o){var n=this;void 0===o&&(o="api"),this.animationFrameService.flushAllFrames();var i=[],r=-1;for(null==e&&(e=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());0!==r;)r=0,this.actionOnGridColumns(t,(function(t){if(i.indexOf(t)>=0)return!1;var s=n.autoWidthCalculator.getPreferredWidthForColumn(t,e);if(s>0){var a=n.normaliseColumnWidth(t,s);t.setActualWidth(a,o),i.push(t),r++}return!0}),o);this.fireColumnResizedEvent(i,!0,"autosizeColumns")},i.prototype.fireColumnResizedEvent=function(t,e,o,n){if(void 0===n&&(n=null),t&&t.length){var i={type:Ht.EVENT_COLUMN_RESIZED,columns:t,column:1===t.length?t[0]:null,flexColumns:n,finished:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(i)}},i.prototype.autoSizeColumn=function(t,e,o){void 0===o&&(o="api"),t&&this.autoSizeColumns([t],e,o)},i.prototype.autoSizeAllColumns=function(t,e){void 0===e&&(e="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns(o,t,e)},i.prototype.getColumnsFromTree=function(t){var e=[],o=function(t){for(var n=0;n<t.length;n++){var i=t[n];i instanceof gt?e.push(i):i instanceof mt&&o(i.getChildren())}};return o(t),e},i.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},i.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},i.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},i.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},i.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},i.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},i.prototype.getDisplayedColumnGroups=function(t){switch(t){case dt.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case dt.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},i.prototype.isColumnDisplayed=function(t){return this.getAllDisplayedColumns().indexOf(t)>=0},i.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},i.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},i.prototype.getDisplayedLeftColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedLeftColumns):this.displayedLeftColumns},i.prototype.getDisplayedRightColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedRightColumns):this.displayedRightColumns},i.prototype.getDisplayedColumnsForRow=function(t,e,o,n){for(var i,r=[],s=null,a=function(a){var l,p=e[a],u=e.length-a,c=Math.min(p.getColSpan(t),u),d=[p];if(c>1){for(var h=c-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)!!n&&n(p)&&r.push(s);r.push(p)}s=p,i=a},l=0;l<e.length;l++)a(l),l=i;return r},i.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(t){var e=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var o=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(t,this.displayedCenterColumns,o,(function(t){return t.getLeft()>e.viewportLeft}))},i.prototype.getAriaColumnIndex=function(t){return this.getAllGridColumns().indexOf(t)+1},i.prototype.isColumnInViewport=function(t){var e=t.getLeft(),o=t.getLeft()+t.getActualWidth(),n=this.viewportLeft-200,i=this.viewportRight+200;return!(e<n&&o<n)&&!(e>i&&o>i)},i.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},i.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},i.prototype.updatePrimaryColumnList=function(t,e,o,i,r,s){var a=this;if(void 0===s&&(s="api"),t&&!n(t)){var l=!1;if(t.forEach((function(t){var n=a.getPrimaryColumn(t);if(n){if(o){if(e.indexOf(n)>=0)return;e.push(n)}else{if(e.indexOf(n)<0)return;g(e,n)}i(n),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s);var p={type:r,columns:e,column:1===e.length?e[0]:null,api:this.gridApi,columnApi:this.columnApi,source:s};this.eventService.dispatchEvent(p)}}},i.prototype.setRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(t,this.rowGroupColumns,Ht.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),e)},i.prototype.setRowGroupActive=function(t,e,o){t!==e.isRowGroupActive()&&(e.setRowGroupActive(t,o),t||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||e.setVisible(!0,o))},i.prototype.addRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.addRowGroupColumns([t],e)},i.prototype.addRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Ht.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},i.prototype.removeRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Ht.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},i.prototype.removeRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.removeRowGroupColumns([t],e)},i.prototype.addPivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!0,(function(t){return t.setPivotActive(!0,e)}),Ht.EVENT_COLUMN_PIVOT_CHANGED,e)},i.prototype.setPivotColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.pivotColumns,Ht.EVENT_COLUMN_PIVOT_CHANGED,(function(t,o){o.setPivotActive(t,e)}),e)},i.prototype.addPivotColumn=function(t,e){void 0===e&&(e="api"),this.addPivotColumns([t],e)},i.prototype.removePivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!1,(function(t){return t.setPivotActive(!1,e)}),Ht.EVENT_COLUMN_PIVOT_CHANGED,e)},i.prototype.removePivotColumn=function(t,e){void 0===e&&(e="api"),this.removePivotColumns([t],e)},i.prototype.setPrimaryColumnList=function(t,o,n,i,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;i(e,t)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var a={type:n,columns:o,column:1===o.length?o[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(a)},i.prototype.setValueColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.valueColumns,Ht.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),e)},i.prototype.setValueActive=function(t,e,o){if(t!==e.isValueActive()&&(e.setValueActive(t,o),t&&!e.getAggFunc())){var n=this.aggFuncService.getDefaultAggFunc(e);e.setAggFunc(n)}},i.prototype.addValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!0,this.setValueActive.bind(this,!0),Ht.EVENT_COLUMN_VALUE_CHANGED,e)},i.prototype.addValueColumn=function(t,e){void 0===e&&(e="api"),t&&this.addValueColumns([t],e)},i.prototype.removeValueColumn=function(t,e){void 0===e&&(e="api"),this.removeValueColumns([t],e)},i.prototype.removeValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!1,this.setValueActive.bind(this,!1),Ht.EVENT_COLUMN_VALUE_CHANGED,e)},i.prototype.normaliseColumnWidth=function(t,e){return e<t.getMinWidth()&&(e=t.getMinWidth()),t.isGreaterThanMax(e)&&(e=t.getMaxWidth()),e},i.prototype.getPrimaryOrGridColumn=function(t){return this.getPrimaryColumn(t)||this.getGridColumn(t)},i.prototype.setColumnWidths=function(t,e,o,n){var i=this;void 0===n&&(n="api");var r=[];t.forEach((function(t){var o=i.getPrimaryOrGridColumn(t.key);if(o&&(r.push({width:t.newWidth,ratios:[1],columns:[o]}),"shift"===i.gridOptionsWrapper.getColResizeDefault()&&(e=!e),e)){var n=i.getDisplayedColAfter(o);if(!n)return;var s=o.getActualWidth()-t.newWidth,a=n.getActualWidth()+s;r.push({width:a,ratios:[1],columns:[n]})}})),0!==r.length&&this.resizeColumnSets(r,o,n)},i.prototype.checkMinAndMaxWidthsForSet=function(t){var e=t.columns,o=t.width,n=0,i=0,r=!0;return e.forEach((function(t){n+=t.getMinWidth(),t.getMaxWidth()>0?i+=t.getMaxWidth():r=!1})),o>=n&&(!r||o<=i)},i.prototype.resizeColumnSets=function(t,e,o){if(!t||t.every(this.checkMinAndMaxWidthsForSet.bind(this))){var n=[],i=[];t.forEach((function(t){var e=t.width,r=t.columns,s=t.ratios,a={},l={};r.forEach((function(t){return i.push(t)}));for(var p=!0,u=0,c=function(){if(++u>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";p=!1;var t=[],o=0,n=e;r.forEach((function(e,i){if(l[e.getId()])n-=a[e.getId()];else{t.push(e);var r=s[i];o+=r}}));var i=1/o;t.forEach((function(o,r){var u;r===t.length-1?u=n:(u=Math.round(s[r]*e*i),n-=u),u<o.getMinWidth()?(u=o.getMinWidth(),l[o.getId()]=!0,p=!0):o.getMaxWidth()>0&&u>o.getMaxWidth()&&(u=o.getMaxWidth(),l[o.getId()]=!0,p=!0),a[o.getId()]=u}))};p;){if("break"===c())break}r.forEach((function(t){var e=a[t.getId()];t.getActualWidth()!==e&&(t.setActualWidth(e,o),n.push(t))}))}));var r=n.length>0,s=this.refreshFlexedColumns({resizingCols:i,skipSetLeft:!0});r&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkDisplayedVirtualColumns());var a=i.concat(s);(r||e)&&this.fireColumnResizedEvent(a,e,o,s)}else if(e){var l=t&&t.length>0?t[0].columns:null;this.fireColumnResizedEvent(l,e,o)}},i.prototype.setColumnAggFunc=function(t,e,o){if(void 0===o&&(o="api"),t){var n=this.getPrimaryColumn(t);if(n){n.setAggFunc(e);var i={type:Ht.EVENT_COLUMN_VALUE_CHANGED,columns:[n],column:n,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(i)}}},i.prototype.moveRowGroupColumn=function(t,e,o){void 0===o&&(o="api");var n=this.rowGroupColumns[t];this.rowGroupColumns.splice(t,1),this.rowGroupColumns.splice(e,0,n);var i={type:Ht.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(i)},i.prototype.moveColumns=function(t,e,o){if(void 0===o&&(o="api"),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);if(!!this.doesMovePassRules(n,e)){m(this.gridColumns,n,e),this.updateDisplayedColumns(o);var i={type:Ht.EVENT_COLUMN_MOVED,columns:n,column:1===n.length?n[0]:null,toIndex:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(i),this.columnAnimationService.finish()}},i.prototype.doesMovePassRules=function(t,e){var o=this.gridColumns.slice();return m(o,t,e),!!this.doesMovePassMarryChildren(o)&&!!this.doesMovePassLockedPositions(o)},i.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)})))},i.prototype.doesMovePassLockedPositions=function(t){var e=!1,o=!0;return t.forEach((function(t){t.getColDef().lockPosition?e&&(o=!1):e=!0})),o},i.prototype.doesMovePassMarryChildren=function(t){var e=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof mt){var n=o;if(n.getColGroupDef()&&n.getColGroupDef().marryChildren){var i=[];n.getLeafColumns().forEach((function(e){var o=t.indexOf(e);i.push(o)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>n.getLeafColumns().length-1&&(e=!1)}}})),e},i.prototype.moveColumn=function(t,e,o){void 0===o&&(o="api"),this.moveColumns([t],e,o)},i.prototype.moveColumnByIndex=function(t,e,o){void 0===o&&(o="api");var n=this.gridColumns[t];this.moveColumn(n,e,o)},i.prototype.getColumnDefs=function(){var t=this,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)},i.prototype.getBodyContainerWidth=function(){return this.bodyWidth},i.prototype.getContainerWidth=function(t){switch(t){case dt.PINNED_LEFT:return this.leftWidth;case dt.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},i.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedCenterColumns),e=this.getWidthOfColsInList(this.displayedLeftColumns),o=this.getWidthOfColsInList(this.displayedRightColumns);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 n={type:Ht.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},i.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},i.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},i.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},i.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},i.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},i.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},i.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},i.prototype.getDisplayedColumns=function(t){switch(t){case dt.PINNED_LEFT:return this.getDisplayedLeftColumns();case dt.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},i.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},i.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},i.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},i.prototype.getAllGridColumns=function(){return this.gridColumns},i.prototype.isEmpty=function(){return n(this.gridColumns)},i.prototype.isRowGroupEmpty=function(){return n(this.rowGroupColumns)},i.prototype.setColumnVisible=function(t,e,o){void 0===o&&(o="api"),this.setColumnsVisible([t],e,o)},i.prototype.setColumnsVisible=function(t,e,o){var n=this;void 0===o&&(o="api"),this.columnAnimationService.start(),this.actionOnGridColumns(t,(function(t){return t.isVisible()!==e&&(t.setVisible(e,o),!0)}),o,(function(){return{type:Ht.EVENT_COLUMN_VISIBLE,visible:e,column:null,columns:null,api:n.gridApi,columnApi:n.columnApi,source:o}})),this.columnAnimationService.finish()},i.prototype.setColumnPinned=function(t,e,o){void 0===o&&(o="api"),t&&this.setColumnsPinned([t],e,o)},i.prototype.setColumnsPinned=function(t,e,o){var n,i=this;(void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),n=!0===e||e===dt.PINNED_LEFT?dt.PINNED_LEFT:e===dt.PINNED_RIGHT?dt.PINNED_RIGHT:null,this.actionOnGridColumns(t,(function(t){return t.getPinned()!==n&&(t.setPinned(n),!0)}),o,(function(){return{type:Ht.EVENT_COLUMN_PINNED,pinned:n,column:null,columns:null,api:i.gridApi,columnApi:i.columnApi,source:o}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},i.prototype.actionOnGridColumns=function(t,o,i,r){var s=this;if(!n(t)){var a=[];if(t.forEach((function(t){var e=s.getGridColumn(t);e&&(!1!==o(e)&&a.push(e))})),a.length&&(this.updateDisplayedColumns(i),e(r)&&r)){var l=r();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},i.prototype.getDisplayedColBefore=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o>0?e[o-1]:null},i.prototype.getDisplayedColAfter=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o<e.length-1?e[o+1]:null},i.prototype.getDisplayedGroupAfter=function(t){return this.getDisplayedGroupAtDirection(t,"After")},i.prototype.getDisplayedGroupBefore=function(t){return this.getDisplayedGroupAtDirection(t,"Before")},i.prototype.getDisplayedGroupAtDirection=function(t,e){for(var o=t.getOriginalColumnGroup().getLevel()+t.getPaddingLevel(),n=t.getDisplayedLeafColumns(),i="After"===e?d(n):n[0],r="getDisplayedCol"+e;;){var s=this[r](i);if(!s)return null;var a=this.getColumnGroupAtLevel(s,o);if(a!==t)return a}},i.prototype.getColumnGroupAtLevel=function(t,e){for(var o=t.getParent();;){if(o.getOriginalColumnGroup().getLevel()+o.getPaddingLevel()<=e)break;o=o.getParent()}return o},i.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},i.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},i.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var t=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&e(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(e){return t.push(e)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(e){return t.push(e)})),t},i.prototype.createStateItemFromColumn=function(t){var e=t.isRowGroupActive()?this.rowGroupColumns.indexOf(t):null,o=t.isPivotActive()?this.pivotColumns.indexOf(t):null,n=t.isValueActive()?t.getAggFunc():null,i=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:i,sortIndex:r,aggFunc:n,rowGroup:t.isRowGroupActive(),rowGroupIndex:e,pivot:t.isPivotActive(),pivotIndex:o,flex:s}},i.prototype.getColumnState=function(){if(o(this.primaryColumns)||!this.isAlive())return[];var t=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),e=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(t);return this.pivotMode||this.orderColumnStateList(e),e},i.prototype.orderColumnStateList=function(t){var e=this.gridColumns.map((function(t){return t.getColId()}));t.sort((function(t,o){return e.indexOf(t.colId)-e.indexOf(o.colId)}))},i.prototype.resetColumnState=function(t,e){void 0===e&&(e="api");var n=this.getColumnsFromTree(this.primaryColumnTree),i=[],r=1e3,s=1e3;n&&n.forEach((function(t){var e=t.getColDef(),n=null!=e.sort?e.sort:null,a=e.sortIndex,l=!!e.hide,p=e.pinned?e.pinned:null,u=e.width,c=null!=e.flex?e.flex:null,d=e.rowGroupIndex,h=e.rowGroup;null!=d||null!=h&&0!=h||(d=null,h=null);var f=e.pivotIndex,g=e.pivot;null!=f||null!=g&&0!=g||(f=null,g=null);var y=null!=e.aggFunc?e.aggFunc:null,v={colId:t.getColId(),sort:n,sortIndex:a,hide:l,pinned:p,width:u,flex:c,rowGroup:h,rowGroupIndex:d,pivot:g,pivotIndex:f,aggFunc:y};o(d)&&h&&(v.rowGroupIndex=r++),o(f)&&g&&(v.pivotIndex=s++),i.push(v)})),this.applyColumnState({state:i,applyOrder:!0},e)},i.prototype.applyColumnState=function(t,e){var o=this;if(void 0===e&&(e="api"),n(this.primaryColumns))return!1;if(!t||!t.state||t.state.forEach){this.columnAnimationService.start();var i=this.compareColumnStatesAndRaiseEvents(e);this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns.slice(),s=!0,a={},l={},p=[],u=this.rowGroupColumns.slice(),c=this.pivotColumns.slice();t.state&&t.state.forEach((function(n){var i=dt.GROUP_AUTO_COLUMN_ID,u=n.colId;if(qt(u,i))p.push(n);else{var c=o.getPrimaryColumn(u);c?(o.syncColumnWithStateItem(c,n,t.defaultState,a,l,!1,e),g(r,c)):s=!1}})),r.forEach((function(n){o.syncColumnWithStateItem(n,null,t.defaultState,a,l,!1,e)}));var d=function(t,e,o,n){var i=t[o.getId()],r=t[n.getId()],s=null!=i,a=null!=r;if(s&&a)return i-r;if(s)return-1;if(a)return 1;var l=e.indexOf(o),p=e.indexOf(n),u=l>=0,c=p>=0;return u&&c?l-p:u?-1:1};if(this.rowGroupColumns.sort(d.bind(this,a,u)),this.pivotColumns.sort(d.bind(this,l,c)),this.updateGridColumns(),p.forEach((function(n){var i=o.getAutoColumn(n.colId);o.syncColumnWithStateItem(i,n,t.defaultState,null,null,!0,e)})),this.gridColsArePrimary&&t.applyOrder&&t.state){var h=t.state.map((function(t){return t.colId}));this.gridColumns.sort((function(t,e){return h.indexOf(t.getId())-h.indexOf(e.getId())})),this.putFixedColumnsFirst()}this.updateDisplayedColumns(e);var f={type:Ht.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};return this.eventService.dispatchEvent(f),i(),this.columnAnimationService.finish(),s}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.")},i.prototype.compareColumnStatesAndRaiseEvents=function(t){var e=this;if(!!!this.columnDefs)return function(){};var o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},n=this.getColumnState(),i={};return n.forEach((function(t){i[t.colId]=t})),function(){if(!e.gridOptionsWrapper.isSuppressColumnStateEvents()){var r=function(o,n,i,r){if(!h(n.map(r).sort(),i.map(r).sort())){var s={type:o,columns:i,column:1===i.length?i[0]:null,api:e.gridApi,columnApi:e.columnApi,source:t};e.eventService.dispatchEvent(s)}},s=function(t){var o=[];return e.gridColumns.forEach((function(e){var n=i[e.getColId()];n&&t(n,e)&&o.push(e)})),o},a=function(t){return t.getColId()};r(Ht.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,e.rowGroupColumns,a),r(Ht.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,e.pivotColumns,a),r(Ht.EVENT_COLUMN_VALUE_CHANGED,o.valueColumns,e.valueColumns,a);e.fireColumnResizedEvent(s((function(t,e){return t.width!=e.getActualWidth()})),!0,t);e.raiseColumnPinnedEvent(s((function(t,e){return t.pinned!=e.getPinned()})),t);e.raiseColumnVisibleEvent(s((function(t,e){return t.hide==e.isVisible()})),t);s((function(t,e){return t.sort!=e.getSort()||t.sortIndex!=e.getSortIndex()})).length>0&&e.sortController.dispatchSortChangedEvents(),e.raiseColumnMovedEvent(n,t)}}},i.prototype.raiseColumnPinnedEvent=function(t,e){if(t.length){var o={type:Ht.EVENT_COLUMN_PINNED,pinned:null,columns:t,column:null,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(o)}},i.prototype.raiseColumnVisibleEvent=function(t,e){if(t.length){var o={type:Ht.EVENT_COLUMN_VISIBLE,visible:void 0,columns:t,column:null,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(o)}},i.prototype.raiseColumnMovedEvent=function(t,e){var o=this,n=this.getColumnState(),i={};n.forEach((function(t){return i[t.colId]=t}));var r={};t.forEach((function(t){i[t.colId]&&(r[t.colId]=!0)}));var s=S(t,(function(t){return r[t.colId]})),a=S(n,(function(t){return r[t.colId]})),l=[];if(a.forEach((function(t,e){var n=s[e];n.colId!==t.colId&&l.push(o.getGridColumn(n.colId))})),l.length){var p={type:Ht.EVENT_COLUMN_MOVED,columns:l,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(p)}},i.prototype.syncColumnWithStateItem=function(t,o,n,i,r,s,a){if(t){var l=function(t,e){var i=o,r=n;return!i||void 0===i[t]&&void 0===i[e]?!r||void 0===r[t]&&void 0===r[e]?{value1:void 0,value2:void 0}:{value1:r[t],value2:r[e]}:{value1:i[t],value2:i[e]}},p=l("hide").value1;void 0!==p&&t.setVisible(!p,a);var u=l("pinned").value1;void 0!==u&&t.setPinned(u);var c=this.gridOptionsWrapper.getMinColWidth(),d=l("flex").value1;if(void 0!==d&&t.setFlex(d),t.getFlex()<=0){var h=l("width").value1;null!=h&&c&&h>=c&&t.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&(f===dt.SORT_DESC||f===dt.SORT_ASC?t.setSort(f):t.setSort(void 0));var y=l("sortIndex").value1;if(void 0!==y&&t.setSortIndex(y),!s){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.setAggFunc(null),t.isValueActive()&&(t.setValueActive(!1,a),g(this.valueColumns,t))));var m=l("rowGroup","rowGroupIndex"),C=m.value1,w=m.value2;void 0===C&&void 0===w||("number"==typeof w||C?(t.isRowGroupActive()||(t.setRowGroupActive(!0,a),this.rowGroupColumns.push(t)),"number"==typeof w&&(i[t.getId()]=w)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,a),g(this.rowGroupColumns,t)));var E=l("pivot","pivotIndex"),R=E.value1,O=E.value2;void 0===R&&void 0===O||("number"==typeof O||R?(t.isPivotActive()||(t.setPivotActive(!0,a),this.pivotColumns.push(t)),"number"==typeof O&&(r[t.getId()]=O)):t.isPivotActive()&&(t.setPivotActive(!1,a),g(this.pivotColumns,t)))}}},i.prototype.getGridColumns=function(t){return this.getColumns(t,this.getGridColumn.bind(this))},i.prototype.getColumns=function(t,e){var o=[];return t&&t.forEach((function(t){var n=e(t);n&&o.push(n)})),o},i.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},i.prototype.getPrimaryColumn=function(t){return this.getColumn(t,this.primaryColumns)},i.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns)},i.prototype.getColumn=function(t,e){if(!t)return null;for(var o=0;o<e.length;o++)if(this.columnsMatch(e[o],t))return e[o];return this.getAutoColumn(t)},i.prototype.getAutoColumn=function(t){var n=this;return this.groupAutoColumns&&e(this.groupAutoColumns)&&!o(this.groupAutoColumns)?a(this.groupAutoColumns,(function(e){return n.columnsMatch(e,t)})):null},i.prototype.columnsMatch=function(t,e){var o=t===e,n=t.getColDef()===e,i=t.getColId()==e;return o||n||i},i.prototype.getDisplayNameForColumn=function(t,e,o){if(void 0===o&&(o=!1),!t)return null;var n=this.getHeaderName(t.getColDef(),t,null,null,e);return o?this.wrapHeaderNameWithAggFunc(t,n):n},i.prototype.getDisplayNameForOriginalColumnGroup=function(t,e,o){var n=e?e.getColGroupDef():null;return n?this.getHeaderName(n,null,t,e,o):null},i.prototype.getDisplayNameForColumnGroup=function(t,e){return this.getDisplayNameForOriginalColumnGroup(t,t.getOriginalColumnGroup(),e)},i.prototype.getHeaderName=function(t,e,o,n,i){var r=t.headerValueGetter;if(r){var s={colDef:t,column:e,columnGroup:o,originalColumnGroup:n,location:i,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};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?Yt(t.field):""},i.prototype.wrapHeaderNameWithAggFunc=function(t,o){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return o;var n,i=t.getColDef().pivotValueColumn,r=null;if(e(i))r=i?i.getAggFunc():null,n=!0;else{var s=t.isValueActive(),a=this.pivotMode||!this.isRowGroupEmpty();s&&a?(r=t.getAggFunc(),n=!0):n=!1}if(n){var l="string"==typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(l,l)+"("+o+")"}return o},i.prototype.getColumnGroup=function(t,e){if(!t)return null;if(t instanceof vt)return t;var o=this.getAllDisplayedColumnGroups(),n="number"==typeof e,i=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof vt){var r=o;(n?t===r.getGroupId()&&e===r.getInstanceId():t===r.getGroupId())&&(i=r)}})),i},i.prototype.isReady=function(){return this.ready},i.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?void 0:""!=e}),(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)}))},i.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}))},i.prototype.extractColumns=function(t,e,o,n,i,a,l){void 0===t&&(t=[]),void 0===e&&(e=[]);var p=[],u=[];this.primaryColumns.forEach((function(o){var c,d=t.indexOf(o)<0,h=o.getColDef(),f=s(a(h)),g=s(l(h)),y=r(n(h)),v=r(i(h));d?c=void 0!==f||void 0!==y?void 0!==f?f:y>=0:1==g||v>=0:c=void 0!==f?f:void 0!==y?null!==y&&y>=0:e.indexOf(o)>=0;c&&((d?null!=y||null!=v:null!=y)?p.push(o):u.push(o))}));var c=function(t){var e=n(t.getColDef()),o=i(t.getColDef());return null!=e?e:o};p.sort((function(t,e){var o=c(t),n=c(e);return o===n?0:o<n?-1:1}));var d=[].concat(p);return e.forEach((function(t){u.indexOf(t)>=0&&d.push(t)})),u.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},i.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}))},i.prototype.resetColumnGroupState=function(t){void 0===t&&(t="api");var e=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(t){if(t instanceof mt){var o={groupId:t.getGroupId(),open:t.getColGroupDef().openByDefault};e.push(o)}})),this.setColumnGroupState(e,t)},i.prototype.getColumnGroupState=function(){var t=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(e){if(e instanceof mt){var o=e;t.push({groupId:o.getGroupId(),open:o.isExpanded()})}})),t},i.prototype.setColumnGroupState=function(t,e){var o=this;void 0===e&&(e="api"),this.columnAnimationService.start();var n=[];t.forEach((function(t){var e=t.groupId,i=t.open,r=o.getOriginalColumnGroup(e);r&&r.isExpanded()!==i&&(o.logger.log("columnGroupOpened("+r.getGroupId()+","+i+")"),r.setExpanded(i),n.push(r))})),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e),n.forEach((function(t){var e={type:Ht.EVENT_COLUMN_GROUP_OPENED,columnGroup:t,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(e)})),this.columnAnimationService.finish()},i.prototype.setColumnGroupOpened=function(t,e,o){var n;void 0===o&&(o="api"),n=t instanceof mt?t.getId():t,this.setColumnGroupState([{groupId:n,open:e}],o)},i.prototype.getOriginalColumnGroup=function(t){if(t instanceof mt)return 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){if(o instanceof mt){var n=o;n.getId()===t&&(e=n)}})),e},i.prototype.calculateColumnsForDisplay=function(){var t=this;return this.pivotMode&&!this.secondaryColumnsPresent?this.gridColumns.filter((function(e){var o=t.groupAutoColumns&&C(t.groupAutoColumns,e),n=t.valueColumns&&C(t.valueColumns,e);return o||n})):this.gridColumns.filter((function(e){return t.groupAutoColumns&&C(t.groupAutoColumns,e)||e.isVisible()}))},i.prototype.checkColSpanActiveInCols=function(t){var o=!1;return t.forEach((function(t){e(t.getColDef().colSpan)&&(o=!0)})),o},i.prototype.calculateColumnsForGroupDisplay=function(){var t=this;this.groupDisplayColumns=[];var o=function(o){var n=o.getColDef();n&&e(n.showRowGroup)&&t.groupDisplayColumns.push(o)};this.gridColumns.forEach(o),this.groupAutoColumns&&this.groupAutoColumns.forEach(o)},i.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},i.prototype.updateDisplayedColumns=function(t){var e=this.calculateColumnsForDisplay();this.buildDisplayedTrees(e),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t)},i.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},i.prototype.setSecondaryColumns=function(t,e){void 0===e&&(e="api");var o=t&&t.length>0;if(o||this.secondaryColumnsPresent){if(o){this.processSecondaryColumnDefinitions(t);var n=this.columnFactory.createColumnTree(t,!1);this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(e)}},i.prototype.processSecondaryColumnDefinitions=function(t){var o=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(o||n){var i=function(t){t.forEach((function(t){if(e(t.children)){var r=t;n&&n(r),i(r.children)}else{o&&o(t)}}))};t&&i(t)}},i.prototype.updateGridColumns=function(){this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(t){return t.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var t={type:Ht.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},i.prototype.orderGridColsLikeLastPrimary=function(){var t=this;if(!o(this.lastPrimaryOrder)){var e=!0;if(this.gridColumns.forEach((function(o){t.lastPrimaryOrder.indexOf(o)>=0&&(e=!1)})),!e){var n=this.lastPrimaryOrder.filter((function(e){return t.gridColumns.indexOf(e)>=0})),i=this.gridColumns.filter((function(t){return n.indexOf(t)<0})),r=n.slice();i.forEach((function(t){var e=t.getOriginalParent();if(e){for(var o=[];!o.length&&e;){e.getLeafColumns().forEach((function(t){var e=r.indexOf(t)>=0,n=o.indexOf(t)<0;e&&n&&o.push(t)})),e=e.getOriginalParent()}if(o.length){var n=o.map((function(t){return r.indexOf(t)})),i=Math.max.apply(Math,n);v(r,t,i+1)}else r.push(t)}else r.push(t)})),this.gridColumns=r}}},i.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},i.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},i.prototype.putFixedColumnsFirst=function(){var t=this.gridColumns.filter((function(t){return t.getColDef().lockPosition})),e=this.gridColumns.filter((function(t){return!t.getColDef().lockPosition}));this.gridColumns=t.concat(e)},i.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!o(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var t=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=t.concat(this.gridBalancedTree)}},i.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},i.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(t),this.refreshFlexedColumns(),this.updateVirtualSets(),this.updateBodyWidths();var e={type:Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},i.prototype.updateDisplayedColumnsFromTrees=function(t){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(t)},i.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},i.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},i.prototype.setLeftValuesOfColumns=function(t){var e=this,o=this.primaryColumns.slice(0),n=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(i){if(n){var r=e.getWidthOfColsInList(i);i.forEach((function(e){r-=e.getActualWidth(),e.setLeft(r,t)}))}else{var s=0;i.forEach((function(e){e.setLeft(s,t),s+=e.getActualWidth()}))}y(o,i)})),o.forEach((function(e){e.setLeft(null,t)}))},i.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(t){t.forEach((function(t){t instanceof vt&&t.checkLeft()}))}))},i.prototype.addToDisplayedColumns=function(t,e){e.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof gt&&e.push(t)}))},i.prototype.updateDisplayedCenterVirtualColumns=function(){this.suppressColumnVirtualisation?this.allDisplayedCenterVirtualColumns=this.displayedCenterColumns:this.allDisplayedCenterVirtualColumns=this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var t={};return this.allDisplayedVirtualColumns.forEach((function(e){t[e.getId()]=!0})),t},i.prototype.getVirtualHeaderGroupRow=function(t,e){var n;switch(t){case dt.PINNED_LEFT:n=this.displayedLeftHeaderRows[e];break;case dt.PINNED_RIGHT:n=this.displayedRightHeaderRows[e];break;default:n=this.displayedCentreHeaderRows[e]}return o(n)&&(n=[]),n},i.prototype.updateDisplayedVirtualGroups=function(t){this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={};var e=function(o,n,i){for(var r=!1,s=0;s<o.length;s++){var a=o[s],l=void 0;if(a instanceof gt)l=!0===t[a.getId()];else l=e(a.getDisplayedChildren(),n,i+1);l&&(r=!0,n[i]||(n[i]=[]),n[i].push(a))}return r};e(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),e(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),e(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},i.prototype.updateVirtualSets=function(){var t=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(t)},i.prototype.filterOutColumnsWithinViewport=function(){return this.displayedCenterColumns.filter(this.isColumnInViewport.bind(this))},i.prototype.refreshFlexedColumns=function(t){var e=this;void 0===t&&(t={});var o=t.source?t.source:"flex";if(null!=t.viewportWidth&&(this.flexViewportWidth=t.viewportWidth),this.flexViewportWidth){var n=-1;t.resizingCols&&t.resizingCols.forEach((function(t){var o=e.displayedCenterColumns.indexOf(t);n<o&&(n=o)}));var i=function(t){var o=e.displayedCenterColumns.indexOf(t)>n;return t.getFlex()&&o},r=this.displayedCenterColumns.filter((function(t){return!i(t)})),s=this.displayedCenterColumns.filter((function(t){return i(t)})),a=[];if(!s.length)return[];var l,p=[];t:for(;;){var u=s.reduce((function(t,e){return t+e.getFlex()}),0);l=this.flexViewportWidth-this.getWidthOfColsInList(r);for(var c=0;c<s.length;c++){var d=s[c],h=l*d.getFlex()/u,f=void 0;if(h<d.getMinWidth()?f=d.getMinWidth():null!=d.getMaxWidth()&&h>d.getMaxWidth()&&(f=d.getMaxWidth()),f){d.setActualWidth(f,o),g(s,d),a.push(d),r.push(d);continue t}p[c]=Math.round(h)}break}var y=l;return s.forEach((function(t,e){t.setActualWidth(Math.min(p[e],y),o),a.push(t),y-=p[e]})),t.skipSetLeft||this.setLeftValues(o),t.updateBodyWidths&&this.updateBodyWidths(),t.fireResizedEvent&&this.fireColumnResizedEvent(a,!0,o,s),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),s}},i.prototype.sizeColumnsToFit=function(t,e,o){void 0===e&&(e="sizeColumnsToFit");var n=this.getAllDisplayedColumns();if(!(t<=0)&&n.length){var i=[],r=[];n.forEach((function(t){!0===t.getColDef().suppressSizeToFit?r.push(t):i.push(t)}));var s=i.slice(0),a=!1,l=function(t){g(i,t),r.push(t)};for(i.forEach((function(t){return t.resetActualWidth(e)}));!a;){a=!0;var p=t-this.getWidthOfColsInList(r);if(p<=0)i.forEach((function(t){t.setMinimum(e)}));else for(var u=p/this.getWidthOfColsInList(i),c=p,d=i.length-1;d>=0;d--){var h=i[d],f=h.getMinWidth(),y=h.getMaxWidth(),v=Math.round(h.getActualWidth()*u);v<f?(v=h.getMinWidth(),l(h),a=!1):h.isGreaterThanMax(v)?(v=y,l(h),a=!1):0===d&&(v=c),h.setActualWidth(v,e,!0),c-=v}}s.forEach((function(t){t.fireColumnWidthChangedEvent(e)})),this.setLeftValues(e),this.updateBodyWidths(),o||this.fireColumnResizedEvent(s,!0,e)}},i.prototype.buildDisplayedTrees=function(t){var e=[],o=[],n=[];t.forEach((function(t){switch(t.getPinned()){case"left":e.push(t);break;case"right":o.push(t);break;default:n.push(t)}}));var i=new kt;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(e,this.gridBalancedTree,i,dt.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,i,dt.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,i,null,this.displayedCentreColumnTree)},i.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var t=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(t,(function(t){t instanceof vt&&t.calculateDisplayedColumns()}))},i.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},i.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var t=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),e=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!e&&!t){var o=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);(!this.autoColsEqual(o,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=o)}else this.groupAutoColumns=null}},i.prototype.autoColsEqual=function(t,e){return h(t,e,(function(t,e){return t.getColId()===e.getColId()}))},i.prototype.getWidthOfColsInList=function(t){return t.reduce((function(t,e){return t+e.getActualWidth()}),0)},i.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},i.prototype.hasFloatingFilters=function(){var t=this.gridOptionsWrapper.getDefaultColDef();return null!=t&&!0===t.floatingFilter||null!=this.columnDefs&&this.columnDefs.some((function(t){return!0===t.floatingFilter}))},i.prototype.getFirstDisplayedColumn=function(){var t=this.gridOptionsWrapper.isEnableRtl(),e=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];t&&e.reverse();for(var o=0;o<e.length;o++){var n=this[e[o]]();if(n.length)return t?d(n):n[0]}return null},$t([nt("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),$t([nt("expressionService")],i.prototype,"expressionService",void 0),$t([nt("columnFactory")],i.prototype,"columnFactory",void 0),$t([nt("displayedGroupCreator")],i.prototype,"displayedGroupCreator",void 0),$t([nt("autoWidthCalculator")],i.prototype,"autoWidthCalculator",void 0),$t([nt("columnUtils")],i.prototype,"columnUtils",void 0),$t([nt("columnAnimationService")],i.prototype,"columnAnimationService",void 0),$t([nt("autoGroupColService")],i.prototype,"autoGroupColService",void 0),$t([it("aggFuncService")],i.prototype,"aggFuncService",void 0),$t([it("valueCache")],i.prototype,"valueCache",void 0),$t([it("animationFrameService")],i.prototype,"animationFrameService",void 0),$t([nt("rowModel")],i.prototype,"rowModel",void 0),$t([nt("columnApi")],i.prototype,"columnApi",void 0),$t([nt("gridApi")],i.prototype,"gridApi",void 0),$t([nt("sortController")],i.prototype,"sortController",void 0),$t([nt("columnDefFactory")],i.prototype,"columnDefFactory",void 0),$t([tt],i.prototype,"init",null),$t([Zt(0,st("loggerFactory"))],i.prototype,"setBeans",null),i=$t([ot("columnController")],i)}(Gt);
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
function Jt(t,e){for(var o=""+t;o.length<e;)o="0"+o;return o}function te(t,e){for(var o=[],n=t;n<=e;n++)o.push(n);return o}function ee(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function oe(){return Number.MAX_SAFE_INTEGER||9007199254740991}function ne(t){return"string"==typeof t&&(t=parseInt(t,10)),"number"==typeof t?Math.floor(t):null}function ie(t){return"number"!=typeof t?"":t.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}var re=Object.freeze({__proto__:null,padStart:Jt,createArrayOfNumbers:te,isNumeric:ee,getMaxSafeInteger:oe,cleanNumber:ne,decToHex:function(t,e){for(var o="",n=0;n<e;n++)o+=String.fromCharCode(255&t),t>>>=8;return o},formatNumberTwoDecimalPlacesAndCommas:function(t){return"number"!=typeof t?"":ie(Math.round(100*t)/100)},formatNumberCommas:ie,sum:function(t){return null==t?null:t.reduce((function(t,e){return t+e}),0)}}),se=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ae=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},le=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}se(e,t),e.prototype.calculateColInitialWidth=function(t){var e,o=this.gridOptionsWrapper,n=null!=t.minWidth?t.minWidth:o.getMinColWidth(),i=null!=t.maxWidth?t.maxWidth:o.getMaxColWidth()||oe(),s=r(t.width),a=r(t.initialWidth);return e=null!=s?s:null!=a?a:o.getColWidth(),Math.max(Math.min(e,i),n)},e.prototype.getOriginalPathForColumn=function(t,e){var o=[],n=!1,i=function(e,r){for(var s=0;s<e.length;s++){if(n)return;var a=e[s];if(a instanceof mt)i(a.getChildren(),r+1),o[r]=a;else a===t&&(n=!0)}};return i(e,0),n?o:null},e.prototype.depthFirstOriginalTreeSearch=function(t,e,o){var n=this;e&&e.forEach((function(e){e instanceof mt&&n.depthFirstOriginalTreeSearch(e,e.getChildren(),o),o(e,t)}))},e.prototype.depthFirstAllColumnTreeSearch=function(t,e){var o=this;t&&t.forEach((function(t){t instanceof vt&&o.depthFirstAllColumnTreeSearch(t.getChildren(),e),e(t)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(t,e){var o=this;t&&t.forEach((function(t){t instanceof vt&&o.depthFirstDisplayedColumnTreeSearch(t.getDisplayedChildren(),e),e(t)}))},ae([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=ae([ot("columnUtils")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),pe=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ue=(function(t){function o(){return null!==t&&t.apply(this,arguments)||this}le(o,t),o.prototype.createDisplayedGroups=function(t,e,o,n,i){var r,s,a=this,l=[],p=this.mapOldGroupsById(i);return t.forEach((function(t){for(var i=a.getOriginalPathForColumn(e,t),u=[],c=!s,h=0;h<i.length;h++)if(c||i[h]!==s[h]){var f=a.createColumnGroup(i[h],o,p,n);u[h]=f,0==h?l.push(f):u[h-1].addChild(f)}else u[h]=r[h];0===u.length?l.push(t):d(u).addChild(t);r=u,s=i})),this.setupParentsIntoColumns(l,null),l},o.prototype.createColumnGroup=function(t,o,n,i){var r=t.getGroupId(),s=o.getInstanceIdForKey(r),a=n[vt.createUniqueId(r,s)];return a&&a.getOriginalColumnGroup()!==t&&(a=null),e(a)?a.reset():(a=new vt(t,r,s,i),this.context.createBean(a)),a},o.prototype.mapOldGroupsById=function(t){var e={},o=function(t){t.forEach((function(t){if(t instanceof vt){var n=t;e[t.getUniqueId()]=n,o(n.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 vt){var n=t;o.setupParentsIntoColumns(n.getChildren(),n)}}))},o.prototype.getOriginalPathForColumn=function(t,e){var o=[],n=!1,i=function(t,r){for(var s=0;s<t.length;s++){if(n)return;var a=t[s];if(a instanceof mt)i(a.getChildren(),r+1),o[r]=a;else a===e&&(n=!0)}};return i(t,0),n?o:(console.warn("could not get path"),null)},pe([nt("columnUtils")],o.prototype,"columnUtils",void 0),o=pe([ot("displayedGroupCreator")],o)}(Gt),function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<o;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,i++)n[i]=r[s];return n}),ce=function(){function t(){}return t.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection"],t.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar","chartThemeOverrides","customChartThemes"],t.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],t.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay"],t.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","enableMultiRowDragging","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight"],t.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","processChartOptions","getChartToolbarItems","fillOperation"],t.ALL_PROPERTIES=ue(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}(),de=function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<o;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,i++)n[i]=r[s];return n},he=function(){function t(){}return t.getEventCallbacks=function(){return t.EVENT_CALLBACKS||(t.EVENT_CALLBACKS=t.EVENTS.map((function(e){return t.getCallbackForEvent(e)}))),t.EVENT_CALLBACKS},t.copyAttributesToGridOptions=function(e,o,n){"object"!=typeof e&&(e={});var i=e,r=function(t){return void 0!==o[t]};return de(t.ARRAY_PROPERTIES,t.STRING_PROPERTIES,t.OBJECT_PROPERTIES,t.FUNCTION_PROPERTIES,t.getEventCallbacks()).filter(r).forEach((function(t){return i[t]=o[t]})),t.BOOLEAN_PROPERTIES.filter(r).forEach((function(e){return i[e]=t.toBoolean(o[e])})),t.NUMBER_PROPERTIES.filter(r).forEach((function(e){return i[e]=t.toNumber(o[e])})),e},t.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},t.processOnChange=function(e,o,n,i){if(e){var r=o,s=function(t){return e[t]};de(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.getEventCallbacks()).filter(s).forEach((function(t){return r[t]=e[t].currentValue})),t.BOOLEAN_PROPERTIES.filter(s).forEach((function(o){return r[o]=t.toBoolean(e[o].currentValue)})),t.NUMBER_PROPERTIES.filter(s).forEach((function(o){return r[o]=t.toNumber(e[o].currentValue)})),e.enableCellTextSelection&&n.setEnableCellTextSelection(t.toBoolean(e.enableCellTextSelection.currentValue)),e.quickFilterText&&n.setQuickFilter(e.quickFilterText.currentValue),e.rowData&&n.setRowData(e.rowData.currentValue),e.pinnedTopRowData&&n.setPinnedTopRowData(e.pinnedTopRowData.currentValue),e.pinnedBottomRowData&&n.setPinnedBottomRowData(e.pinnedBottomRowData.currentValue),e.autoGroupColumnDef&&n.setAutoGroupColumnDef(e.autoGroupColumnDef.currentValue,"gridOptionsChanged"),e.columnDefs&&n.setColumnDefs(e.columnDefs.currentValue,"gridOptionsChanged"),e.datasource&&n.setDatasource(e.datasource.currentValue),e.headerHeight&&n.setHeaderHeight(t.toNumber(e.headerHeight.currentValue)),e.paginationPageSize&&n.paginationSetPageSize(t.toNumber(e.paginationPageSize.currentValue)),e.pivotMode&&i.setPivotMode(t.toBoolean(e.pivotMode.currentValue)),e.groupRemoveSingleChildren&&n.setGroupRemoveSingleChildren(t.toBoolean(e.groupRemoveSingleChildren.currentValue)),e.suppressRowDrag&&n.setSuppressRowDrag(t.toBoolean(e.suppressRowDrag.currentValue)),e.suppressMoveWhenRowDragging&&n.setSuppressMoveWhenRowDragging(t.toBoolean(e.suppressMoveWhenRowDragging.currentValue)),e.suppressRowClickSelection&&n.setSuppressRowClickSelection(t.toBoolean(e.suppressRowClickSelection.currentValue)),e.suppressClipboardPaste&&n.setSuppressClipboardPaste(t.toBoolean(e.suppressClipboardPaste.currentValue)),e.sideBar&&n.setSideBar(e.sideBar.currentValue);var a={type:Ht.EVENT_COMPONENT_STATE_CHANGED,api:o.api,columnApi:o.columnApi};T(e,(function(t,e){a[t]=e})),n.dispatchEvent(a)}},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=[],t.STRING_PROPERTIES=ce.STRING_PROPERTIES,t.OBJECT_PROPERTIES=ce.OBJECT_PROPERTIES,t.ARRAY_PROPERTIES=ce.ARRAY_PROPERTIES,t.NUMBER_PROPERTIES=ce.NUMBER_PROPERTIES,t.BOOLEAN_PROPERTIES=ce.BOOLEAN_PROPERTIES,t.FUNCTION_PROPERTIES=ce.FUNCTION_PROPERTIES,t.ALL_PROPERTIES=ce.ALL_PROPERTIES,t}();
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */he.EVENTS=l(Ht);
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
var fe=function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<o;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,i++)n[i]=r[s];return n},ge=function(){function t(){}return t.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","initialAggFunc","aggFunc","cellRenderer","cellEditor","pinned","initialPinned","chartDataType"],t.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],t.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],t.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],t.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter"],t.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],t.ALL_PROPERTIES=fe(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}(),ye=function(){function t(t,e,o,n){void 0===n&&(n=1),this.r=Math.min(1,Math.max(0,t||0)),this.g=Math.min(1,Math.max(0,e||0)),this.b=Math.min(1,Math.max(0,o||0)),this.a=Math.min(1,Math.max(0,n||0))}return t.fromString=function(e){if(e.indexOf("#")>=0)return t.fromHexString(e);var o=t.nameToHex[e];if(o)return t.fromHexString(o);if(e.indexOf("rgb")>=0)return t.fromRgbaString(e);throw new Error("Invalid color string: '"+e+"'")},t.fromHexString=function(e){var o=e.match(t.hexRe);if(o)return new t((n=parseInt(o[1],16))/255,(i=parseInt(o[2],16))/255,(r=parseInt(o[3],16))/255,(s=void 0!==o[4]?parseInt(o[4],16):255)/255);if(o=e.match(t.shortHexRe)){var n=parseInt(o[1],16),i=parseInt(o[2],16),r=parseInt(o[3],16),s=void 0!==o[4]?parseInt(o[4],16):15;return new t((n+=16*n)/255,(i+=16*i)/255,(r+=16*r)/255,(s+=16*s)/255)}throw new Error("Malformed hexadecimal color string: '"+e+"'")},t.fromRgbaString=function(e){var o=e.match(t.rgbRe);if(o)return new t(+o[1]/255,+o[2]/255,+o[3]/255);if(o=e.match(t.rgbaRe))return new t(+o[1]/255,+o[2]/255,+o[3]/255,+o[4]);throw new Error("Malformed rgb/rgba color string: '"+e+"'")},t.fromArray=function(e){if(4===e.length)return new t(e[0],e[1],e[2],e[3]);if(3===e.length)return new t(e[0],e[1],e[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},t.fromHSB=function(e,o,n,i){void 0===i&&(i=1);var r=t.HSBtoRGB(e,o,n);return new t(r[0],r[1],r[2],i)},t.padHex=function(t){return 1===t.length?"0"+t:t},t.prototype.toHexString=function(){var e="#"+t.padHex(Math.round(255*this.r).toString(16))+t.padHex(Math.round(255*this.g).toString(16))+t.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(e+=t.padHex(Math.round(255*this.a).toString(16))),e},t.prototype.toRgbaString=function(t){void 0===t&&(t=3);var e=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],o=Math.pow(10,t);return 1!==this.a?(e.push(Math.round(this.a*o)/o),"rgba("+e.join(", ")+")"):"rgb("+e.join(", ")+")"},t.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},t.prototype.toHSB=function(){return t.RGBtoHSB(this.r,this.g,this.b)},t.RGBtoHSB=function(t,e,o){var n=Math.min(t,e,o),i=Math.max(t,e,o),r=NaN;if(n!==i){var s=i-n,a=(i-t)/s,l=(i-e)/s,p=(i-o)/s;r=t===i?p-l:e===i?2+a-p:4+l-a,(r/=6)<0&&(r+=1)}return[360*r,0!==i?(i-n)/i:0,i]},t.HSBtoRGB=function(t,e,o){isNaN(t)&&(t=0),t=(t%360+360)%360/360;var n=0,i=0,r=0;if(0===e)n=i=r=o;else{var s=6*(t-Math.floor(t)),a=s-Math.floor(s),l=o*(1-e),p=o*(1-e*a),u=o*(1-e*(1-a));switch(s>>0){case 0:n=o,i=u,r=l;break;case 1:n=p,i=o,r=l;break;case 2:n=l,i=o,r=u;break;case 3:n=l,i=p,r=o;break;case 4:n=u,i=l,r=o;break;case 5:n=o,i=l,r=p}}return[n,i,r]},t.prototype.derive=function(e,o,n,i){var r=t.RGBtoHSB(this.r,this.g,this.b),s=r[2];0==s&&n>1&&(s=.05);var a=((r[0]+e)%360+360)%360,l=Math.max(Math.min(r[1]*o,1),0);s=Math.max(Math.min(s*n,1),0);var p=Math.max(Math.min(this.a*i,1),0),u=t.HSBtoRGB(a,l,s);return u.push(p),t.fromArray(u)},t.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},t.prototype.darker=function(){return this.derive(0,1,.7,1)},t.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,t.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,t.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,t.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,t.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),t}();var ve,me,Ce,we,Ee,Re,Oe=Object.freeze({__proto__:null,stringToArray:
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
function(t,e){void 0===e&&(e=",");for(var o,n,i,r=[],s=function(t){return"\r"===t||"\n"===t},a=!1,l=function(l,p,u){var c=t[u-1],d=t[u],h=t[u+1],f=function(){r[l]||(r[l]=[]),r[l][p]||(r[l][p]="")};if(f(),'"'===d){if(a)return'"'===h?(r[l][p]+='"',u++):a=!1,o=l,n=p,i=u,"continue";if(void 0===c||c===e||s(c))return a=!0,o=l,n=p,i=u,"continue"}if(!a){if(d===e)return p++,f(),o=l,n=p,i=u,"continue";if(s(d))return p=0,l++,f(),"\r"===d&&"\n"===h&&u++,o=l,n=p,i=u,"continue"}r[l][p]+=d,o=l,n=p,i=u},p=0,u=0,c=0;c<t.length;c++)l(p,u,c),p=o,u=n,c=i;return r}});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function Pe(){return void 0===me&&(me=/*@cc_on!@*/!!document.documentMode),me}function be(){return void 0===Ce&&(Ce=!Pe()&&!!window.StyleMedia),Ce}function Se(){if(void 0===ve){var t=window;ve=Object.prototype.toString.call(t.HTMLElement).indexOf("Constructor")>0||(e=t.safari&&t.safari.pushNotification)&&"[object SafariRemoteNotification]"===e.toString()}var e;return ve}function De(){if(void 0===we){var t=window;we=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return we}function Te(){if(void 0===Ee){var t=window;Ee=void 0!==t.InstallTrigger}return Ee}function _e(){return void 0===Re&&(Re=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),Re}function Ae(t){if(!t)return null;var e=t.tabIndex,o=t.getAttribute("tabIndex");if(Pe()&&0===e&&null===o){return!0==={a:!0,body:!0,button:!0,frame:!0,iframe:!0,img:!0,input:!0,isindex:!0,object:!0,select:!0,textarea:!0}[t.nodeName.toLowerCase()]?"0":null}return-1!==e||null!==o&&(""!==o||Te())?e.toString():null}function Fe(){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 n=2*t;if(o.style.height=n+"px",n>e||o.clientHeight!==n)break;t=n}return document.body.removeChild(o),t}function Ne(){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;return 0===o&&0===e.clientWidth?null:(e.parentNode&&e.parentNode.removeChild(e),o)}function Le(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function Ie(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var Me,Ge=Object.freeze({__proto__:null,isBrowserIE:Pe,isBrowserEdge:be,isBrowserSafari:Se,isBrowserChrome:De,isBrowserFirefox:Te,isIOSUserAgent:_e,getTabIndex:Ae,getMaxDivHeight:Fe,getScrollbarWidth:Ne,hasOverflowScrolling:function(){var t=["webkit","moz","o","ms"],e=document.createElement("div"),o=!1;document.getElementsByTagName("body")[0].appendChild(e),e.setAttribute("style",t.map((function(t){return"-"+t+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var n=window.getComputedStyle(e);if("touch"===n.overflowScrolling&&(o=!0),!o)for(var i=0,r=t;i<r.length;i++)if("touch"===n[r[i]+"OverflowScrolling"]){o=!0;break}return e.parentNode&&e.parentNode.removeChild(e),o},getBodyWidth:Le,getBodyHeight:Ie});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function xe(t,e){if(t&&e&&0!==e.length){if(!(e.indexOf(" ")>=0)){if(t.classList)t.classList.add(e);else if(t.className&&t.className.length>0){var o=t.className.split(" ");o.indexOf(e)<0&&(o.push(e),t.setAttribute("class",o.join(" ")))}else t.setAttribute("class",e);return t}e.split(" ").forEach((function(e){return xe(t,e)}))}}function Ve(t,e){if(t&&e&&0!==e.length)if(e.indexOf(" ")>=0)e.split(" ").forEach((function(e){return Ve(t,e)}));else if(t.classList)t.classList.remove(e);else if(t.className&&t.className.length>0){var o=t.className.split(" ").filter((function(t){return t!==e})).join(" ");t.setAttribute("class",o)}}function We(t,e,o){o?xe(t,e):Ve(t,e)}function He(t,e){if(t.classList)return t.classList.contains(e);if(t.className){var o=t.className===e,n=t.className.indexOf(" "+e+" ")>=0,i=0===t.className.indexOf(e+" "),r=t.className.lastIndexOf(" "+e)===t.className.length-e.length-1;return o||n||i||r}return!1}function ke(t,e){We(t,"ag-hidden",!e)}function Be(t,e){We(t,"ag-invisible",!e)}function je(t,e){var o=e?function(t){return t.setAttribute("disabled","")}:function(t){return t.removeAttribute("disabled")};o(t),Oo(t.querySelectorAll("input"),(function(t){return o(t)}))}function Ue(t,e,o){for(var n=0;t;){if(He(t,e))return!0;if(t=t.parentElement,o&&++n>o)break}return!1}function ze(t){var e=window.getComputedStyle(t),o=e.height,n=e.width,i=e.paddingTop,r=e.paddingRight,s=e.paddingBottom,a=e.paddingLeft,l=e.marginTop,p=e.marginRight,u=e.marginBottom,c=e.marginLeft,d=e.boxSizing;return{height:parseFloat(o),width:parseFloat(n),paddingTop:parseFloat(i),paddingRight:parseFloat(r),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(p),marginBottom:parseFloat(u),marginLeft:parseFloat(c),boxSizing:d}}function Ke(t){var e=ze(t);return"border-box"===e.boxSizing?e.height-e.paddingTop-e.paddingBottom:e.height}function Ye(t){var e=ze(t);return"border-box"===e.boxSizing?e.width-e.paddingLeft-e.paddingRight:e.width}function qe(t){var e=ze(t),o=e.marginBottom+e.marginTop;return Math.ceil(t.offsetHeight+o)}function Xe(t){var e=ze(t),o=e.marginLeft+e.marginRight;return Math.ceil(t.offsetWidth+o)}function Qe(){if("boolean"==typeof Me)return Me;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,Me=0===t.scrollLeft,document.body.removeChild(t),Me}function $e(t,e){var o=t.scrollLeft;return e&&(o=Math.abs(o),De()&&!Qe()&&(o=t.scrollWidth-t.clientWidth-o)),o}function Ze(t,e,o){o&&(Qe()?e*=-1:(Se()||De())&&(e=t.scrollWidth-t.clientWidth-e)),t.scrollLeft=e}function Je(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}function to(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function eo(t){return null!==t.offsetParent}function oo(t){var e=document.createElement("div");return e.innerHTML=(t||"").trim(),e.firstChild}function no(t,e){t.lastChild?t.insertAdjacentHTML("afterbegin",e):t.innerHTML=e}function io(t){return t&&t.clientHeight?t.clientHeight:0}function ro(t){return t&&t.clientWidth?t.clientWidth:0}function so(t,e,o){o&&o.nextSibling===e||(o?o.nextSibling?t.insertBefore(e,o.nextSibling):t.appendChild(e):t.firstChild&&t.firstChild!==e&&t.insertAdjacentElement("afterbegin",e))}function ao(t,e){for(var o=0;o<e.length;o++){var n=e[o],i=t.children[o];i!==n&&t.insertBefore(n,i)}}function lo(t,e,o){var n;return o?(o.insertAdjacentHTML("afterend",e),n=o.nextSibling):(t.firstChild?t.insertAdjacentHTML("afterbegin",e):t.innerHTML=e,n=t.firstChild),n}function po(t,e){e&&Object.keys(e).forEach((function(o){var n=zt(o);n&&(t.style[n]=e[o])}))}function uo(t){return t.clientWidth<t.scrollWidth}function co(t){return t.clientHeight<t.scrollHeight}function ho(t,e){"flex"===e?(t.style.width=null,t.style.minWidth=null,t.style.maxWidth=null,t.style.flex="1 1 auto"):fo(t,e)}function fo(t,e){e=yo(e),t.style.width=e.toString(),t.style.maxWidth=e.toString(),t.style.minWidth=e.toString()}function go(t,e){e=yo(e),t.style.height=e.toString(),t.style.maxHeight=e.toString(),t.style.minHeight=e.toString()}function yo(t){return"number"==typeof t?t+"px":t}function vo(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}function mo(t){return"function"==typeof HTMLElement?t instanceof HTMLElement:t&&W(t)&&1===t.nodeType&&"string"==typeof t.nodeName}function Co(t){return vo(t)||mo(t)}function wo(t){if(null==t)return[];var e=[];return Oo(t,(function(t){return e.push(t)})),e}function Eo(t,e){if(t)for(var o=0;o<t.length;o++){var n=t[o];e(n.name,n.value)}}function Ro(t,e,o){null==o?t.removeAttribute(e):t.setAttribute(e,o.toString())}function Oo(t,e){if(null!=t)for(var o=0;o<t.length;o++)e(t[o])}var Po=Object.freeze({__proto__:null,addCssClass:xe,removeCssClass:Ve,addOrRemoveCssClass:We,radioCssClass:function(t,e,o){for(var n=t.parentElement.firstChild;n;)e&&We(n,e,n===t),o&&We(n,o,n!==t),n=n.nextSibling},containsClass:He,setDisplayed:ke,setVisible:Be,setDisabled:je,isElementChildOfClass:Ue,getElementSize:ze,getInnerHeight:Ke,getInnerWidth:Ye,getAbsoluteHeight:qe,getAbsoluteWidth:Xe,isRtlNegativeScroll:Qe,getScrollLeft:$e,setScrollLeft:Ze,clearElement:Je,removeElement:function(t,e){to(t.querySelector(e))},removeFromParent:to,isVisible:eo,loadTemplate:oo,appendHtml:no,getElementAttribute:function(t,e){return t.attributes&&t.attributes[e]?t.attributes[e].value:null},offsetHeight:io,offsetWidth:ro,ensureDomOrder:so,setDomChildOrder:ao,insertTemplateWithDomOrder:lo,prependDC:function(t,o){e(t.firstChild)?t.insertBefore(o,t.firstChild):t.appendChild(o)},addStylesToElement:po,isHorizontalScrollShowing:uo,isVerticalScrollShowing:co,setElementWidth:ho,setFixedWidth:fo,setElementHeight:function(t,e){"flex"===e?(t.style.height=null,t.style.minHeight=null,t.style.maxHeight=null,t.style.flex="1 1 auto"):go(t,e)},setFixedHeight:go,formatSize:yo,isNode:vo,isElement:mo,isNodeOrElement:Co,copyNodeList:wo,iterateNamedNodeMap:Eo,setCheckboxState:function(t,e){"boolean"==typeof e?(t.checked=e,t.indeterminate=!1):t.indeterminate=!0},addOrRemoveAttribute:Ro,nodeListForEach:Oo});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function bo(t){if(!t)return"";var e=[];return T(t,(function(t,o){var n=Ut(t);e.push(n+": "+o+";")})),e.join(" ")}function So(t,e){t.then((function(t){var o=t.getGui();null!=o&&("object"==typeof o?e.appendChild(o):e.innerHTML=o)}))}var Do=Object.freeze({__proto__:null,getNameOfClass:function(t){var e=t.toString(),o=/function (.{1,})\(/.exec(e);return o&&o.length>1?o[1]:""},findLineByLeastSquares:function(t){var e=t.length,o=0;if(e<=1)return t;for(var n=0;n<t.length;n++){var i=t[n];Math.floor(i)!==i&&(o=Math.max(o,i.toString().split(".")[1].length))}for(var r=0,s=0,a=0,l=0,p=0,u=0;u<e;u++)r+=u,s+=p=t[u],l+=u*u,a+=u*p;var c=(e*a-r*s)/(e*l-r*r),d=s/e-c*r/e,h=[];for(u=0;u<=e;u++)h.push(parseFloat((u*c+d).toFixed(o)));return h},cssStyleObjectToMarkup:bo,message:function(t){var e=document.createElement("div"),o=document.querySelector("#__ag__message");if(e.innerHTML=t,!o){o=oo('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(o)}o.insertBefore(e,o.children[0])},bindCellRendererToHtmlElement:So});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function To(t,e,o){t.setAttribute(Ao(e),o.toString())}function _o(t,e){t.removeAttribute(Ao(e))}function Ao(t){return"aria-"+t}function Fo(t){return t.isSortAscending()?"ascending":t.isSortDescending()?"descending":"none"}function No(t){return parseInt(t.getAttribute("aria-posinset"),10)}function Lo(t,e){To(t,"label",e)}function Io(t,e){To(t,"labelledby",e)}function Mo(t,e){To(t,"describedby",e)}function Go(t,e){To(t,"disabled",e)}function xo(t,e){To(t,"expanded",e)}function Vo(t){_o(t,"expanded")}function Wo(t,e){To(t,"setsize",e)}function Ho(t,e){To(t,"posinset",e)}function ko(t,e){To(t,"multiselectable",e)}function Bo(t,e){To(t,"rowcount",e)}function jo(t,e){To(t,"rowindex",e)}function Uo(t,e){To(t,"colcount",e)}function zo(t,e){To(t,"colindex",e)}function Ko(t,e){To(t,"colspan",e)}function Yo(t,e){To(t,"sort",e)}function qo(t){_o(t,"sort")}function Xo(t,e){e?To(t,"selected",e):_o(t,"selected")}function Qo(t,e){To(t,"checked",void 0===e?"mixed":e)}var $o=Object.freeze({__proto__:null,getAriaSortState:Fo,getAriaLevel:function(t){return parseInt(t.getAttribute("aria-level"),10)},getAriaPosInSet:No,setAriaLabel:Lo,setAriaLabelledBy:Io,setAriaDescribedBy:Mo,setAriaLevel:function(t,e){To(t,"level",e)},setAriaDisabled:Go,setAriaExpanded:xo,removeAriaExpanded:Vo,setAriaSetSize:Wo,setAriaPosInSet:Ho,setAriaMultiSelectable:ko,setAriaRowCount:Bo,setAriaRowIndex:jo,setAriaColCount:Uo,setAriaColIndex:zo,setAriaColSpan:Ko,setAriaSort:Yo,removeAriaSort:qo,setAriaSelected:Xo,setAriaChecked:Qo});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function Zo(t,e,o){if(void 0===e&&(e=!0),void 0===o&&(o="-"),!t)return null;var n=[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return Jt(t,2)})).join(o);return e&&(n+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return Jt(t,2)})).join(":")),n}function Jo(t){if(!t)return null;var e=t.split(" "),o=e[0],n=e[1];if(!o)return null;var i=o.split("-").map((function(t){return parseInt(t,10)}));if(3!==i.filter((function(t){return!isNaN(t)})).length)return null;var r=i[0],s=i[1],a=i[2],l=new Date(r,s-1,a);if(l.getFullYear()!==r||l.getMonth()!==s-1||l.getDate()!==a)return null;if(!n||"00:00:00"===n)return l;var p=n.split(":").map((function(t){return parseInt(t,10)})),u=p[0],c=p[1],d=p[2];return u>=0&&u<24&&l.setHours(u),c>=0&&c<60&&l.setMinutes(c),d>=0&&d<60&&l.setSeconds(d),l}var tn=Object.freeze({__proto__:null,serialiseDate:Zo,parseDateTimeFromString:Jo});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function en(t,e,o){var n={},i=t.filter((function(t){return!e.some((function(e){return e===t}))}));return i.length>0&&i.forEach((function(t){return n[t]=on(t,o)})),n}function on(t,e,o,n){var i=n?sn:rn,r=e.map((function(e){return{value:e,relevance:i(t.toLowerCase(),e.toLocaleLowerCase())}}));return r.sort((function(t,e){return e.relevance-t.relevance})),o&&(r=r.filter((function(t){return 0!==t.relevance}))),r.map((function(t){return t.value}))}function nn(t){var e,o,n,i=t.toLowerCase(),r=new Array(i.length-1);for(e=o=0,n=r.length;o<=n;e=o+=1)r[e]=i.slice(e,e+2);return r}function rn(t,e){if(0===t.length&&0===e.length)return 0;var o,n,i=nn(t),r=nn(e),s=i.length+r.length,a=0;for(o=0,n=i.length;o<n;o++){var l,p=i[o],u=void 0;for(u=0,l=r.length;u<l;u++){p===r[u]&&a++}}return a>0?2*a/s:0}function sn(t,e){for(var o=t.replace(/\s/g,""),n=e.replace(/\s/g,""),i=0,r=0,s=0;s<o.length;s++){var a=n.indexOf(o[s]);-1!==a&&(r=a,i+=100*(n.length-r)/n.length,i*=i)}return i}var an=Object.freeze({__proto__:null,fuzzyCheckStrings:en,fuzzySuggestions:on,get_bigrams:nn,string_distances:rn,string_weighted_distances:sn}),ln={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",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",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function pn(t,e,o){var n=un(t,e,o);if(n.className.indexOf("ag-icon")>-1)return n;var i=document.createElement("span");return i.appendChild(n),i}function un(t,e,o,n){var i=null,r=o&&o.getColDef().icons;if(r&&(i=r[t]),e&&!i){var s=e.getIcons();s&&(i=s[t])}if(!i){var a=document.createElement("span"),l=ln[t];return l||(n?l=t:(console.warn("ag-Grid: Did not find icon "+t),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),a.setAttribute("role","presentation"),a}var p=void 0;if("function"==typeof i)p=i();else{if("string"!=typeof i)throw new Error("icon from grid options needs to be a string or a function");p=i}return"string"==typeof p?oo(p):Co(p)?p:void console.warn("ag-Grid: iconRenderer should return back a string or a dom object")}var cn=Object.freeze({__proto__:null,iconNameClassMap:ln,createIcon:pn,createIconNoSpan:un});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function dn(t,e){return(t.which||t.keyCode)===e}function hn(t){if(t.altKey||t.ctrlKey||t.metaKey)return!1;var e=1===t.key.length,o=function(t){return(be()||Pe())&&"Del"===t.key&&46===t.charCode}(t);return e||o}function fn(t,e,o,n,i){var r=t.getSuppressKeyboardEventFunc(),s=n.getColDef().suppressKeyboardEvent;if(!r&&!s)return!1;var a={event:e,editing:i,column:n,api:t.getApi(),node:o,data:o.data,colDef:n.getColDef(),context:t.getContext(),columnApi:t.getColumnApi()};if(s&&s(a))return!0;return!!r&&r(a)}function gn(t,o,n,i){var r=i.getDefinition(),s=r.suppressHeaderKeyboardEvent;return!!e(s)&&!!s({api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext(),colDef:r,column:i,headerRowIndex:n,event:o})}var yn=Object.freeze({__proto__:null,isKeyPressed:dn,isEventFromPrintableCharacter:hn,isUserSuppressingKeyboardEvent:fn,isUserSuppressingHeaderKeyboardEvent:gn});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */var vn=Object.freeze({__proto__:null,keys:function(t){var e=[];return t.forEach((function(t,o){return e.push(o)})),e}});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function mn(t,e,o){if(0===o)return!1;var n=Math.abs(t.clientX-e.clientX),i=Math.abs(t.clientY-e.clientY);return Math.max(n,i)<=o}var Cn=Object.freeze({__proto__:null,normalizeWheel:function(t){var e=0,o=0,n=0,i=0;return"detail"in t&&(o=t.detail),"wheelDelta"in t&&(o=-t.wheelDelta/120),"wheelDeltaY"in t&&(o=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=o,o=0),n=10*e,i=10*o,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||i)&&t.deltaMode&&(1==t.deltaMode?(n*=40,i*=40):(n*=800,i*=800)),n&&!e&&(e=n<1?-1:1),i&&!o&&(o=i<1?-1:1),{spinX:e,spinY:o,pixelX:n,pixelY:i}},isLeftClick:function(t){return"buttons"in t?1==t.buttons:1==(t.which||t.button)},areEventsNear:mn});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */var wn=Object.freeze({__proto__:null,sortRowNodesByOrder:function(t,e){if(t){for(var o=function(t,o){var n=e[t.id],i=e[o.id],r=void 0!==n,s=void 0!==i;return r&&s?n-i:!r&&!s?t.__objectId-o.__objectId:r?1:-1},n=!1,i=0;i<t.length-1;i++)if(o(t[i],t[i+1])>0){n=!0;break}n&&t.sort(o)}},traverseNodesWithKey:function(t,e){var o=[];!function t(n){n.forEach((function(n){if(n.group||n.hasChildren()){o.push(n.key);var i=o.join("|");e(n,i),t(n.childrenAfterGroup),o.pop()}}))}(t)}});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */function En(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),e}var Rn,On=Object.freeze({__proto__:null,convertToSet:En}),Pn=function(){return(Pn=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},bn=Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn(Pn({},Do),$o),D),Ge),Oe),tn),Po),It),Z),an),p),cn),yn),vn),Cn),re),H),wn),On),Xt),Sn=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}();
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */!function(t){t[t.IN_PROGRESS=0]="IN_PROGRESS",t[t.RESOLVED=1]="RESOLVED"}(Rn||(Rn={}));var Dn=function(){function t(t){var e=this;this.status=Rn.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,n=new Array(o);P(e,(function(e,i){e.then((function(e){n[i]=e,0===--o&&t(n)}))}))}))},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===Rn.RESOLVED?t(e(o.resolution)):o.waiters.push((function(o){return t(e(o))}))}))},t.prototype.resolveNow=function(t,e){return this.status===Rn.RESOLVED?e(this.resolution):t},t.prototype.onDone=function(t){this.status=Rn.RESOLVED,this.resolution=t,P(this.waiters,(function(e){return e(t)}))},t.prototype.onReject=function(t){console.warn("TBI")},t}(),Tn=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_n=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},An=new Sn,Fn=function(t){function e(e){var o=t.call(this)||this;return o.annotatedGuiListeners=[],o.displayed=!0,o.visible=!0,o.compId=An.next(),o.cssClassStates={},e&&o.setTemplate(e),o}return Tn(e,t),e.prototype.getCompId=function(){return this.compId},e.prototype.createChildComponentsFromTags=function(t,e){var o=this;P(wo(t.childNodes),(function(n){if(n instanceof HTMLElement){var i=o.createComponentFromElement(n,(function(t){o.copyAttributesFromNode(n,t.getGui())}),e);if(i){if(i.addItems&&n.children.length){o.createChildComponentsFromTags(n,e);var r=Array.prototype.slice.call(n.children);i.addItems(r)}o.swapComponentForNode(i,t,n)}else n.childNodes&&o.createChildComponentsFromTags(n,e)}}))},e.prototype.createComponentFromElement=function(t,e,o){var n=t.nodeName,i=o?o[t.getAttribute("ref")]:void 0,r=this.agStackComponentsRegistry.getComponentClass(n);if(r){var s=new r(i);return this.createBean(s,null,e),s}return null},e.prototype.copyAttributesFromNode=function(t,e){Eo(t.attributes,(function(t,o){return e.setAttribute(t,o)}))},e.prototype.swapComponentForNode=function(t,e,o){var n=t.getGui();e.replaceChild(n,o),e.insertBefore(document.createComment(o.nodeName),n),this.addDestroyFunc(this.destroyBean.bind(this,t)),this.swapInComponentForQuerySelectors(t,o)},e.prototype.swapInComponentForQuerySelectors=function(t,e){var o=this;this.iterateOverQuerySelectors((function(n){o[n.attributeName]===e&&(o[n.attributeName]=t)}))},e.prototype.iterateOverQuerySelectors=function(t){for(var e=Object.getPrototypeOf(this);null!=e;){var o=e.__agComponentMetaData,n=z(e.constructor);o&&o[n]&&o[n].querySelectors&&P(o[n].querySelectors,(function(e){return t(e)})),e=Object.getPrototypeOf(e)}},e.prototype.setTemplate=function(t,e){var o=oo(t);this.setTemplateFromElement(o,e)},e.prototype.setTemplateFromElement=function(t,e){this.eGui=t,this.eGui.__agComponent=this,this.addAnnotatedGuiEventListeners(),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 n=t.eGui.querySelector(o.querySelector);n&&(e[o.attributeName]=n.__agComponent||n)}))}},e.prototype.addAnnotatedGuiEventListeners=function(){var t=this;if(this.removeAnnotatedGuiEventListeners(),this.eGui){var e=this.getAgComponentMetaData("guiListenerMethods");e&&(this.annotatedGuiListeners||(this.annotatedGuiListeners=[]),e.forEach((function(e){var o=t.getRefElement(e.ref);if(o){var n=t[e.methodName].bind(t);o.addEventListener(e.eventName,n),t.annotatedGuiListeners.push({eventName:e.eventName,listener:n,element:o})}})))}},e.prototype.addAnnotatedGridEventListeners=function(){var t=this,e=this.getAgComponentMetaData("gridListenerMethods");e&&e.forEach((function(e){var o=t[e.methodName].bind(t);t.addManagedListener(t.eventService,e.eventName,o)}))},e.prototype.getAgComponentMetaData=function(t){for(var e=[],o=Object.getPrototypeOf(this);null!=o;){var n=o.__agComponentMetaData,i=z(o.constructor);n&&n[i]&&n[i][t]&&(e=e.concat(n[i][t])),o=Object.getPrototypeOf(o)}return e},e.prototype.removeAnnotatedGuiEventListeners=function(){this.annotatedGuiListeners&&(P(this.annotatedGuiListeners,(function(t){t.element.removeEventListener(t.eventName,t.listener)})),this.annotatedGuiListeners=[])},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(e||(e=this.eGui),null!=t)if(Co(t))e.appendChild(t);else{var o=t;e.appendChild(o.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,o))}},e.prototype.isDisplayed=function(){return this.displayed},e.prototype.setVisible=function(t){t!==this.visible&&(this.visible=t,Be(this.eGui,t))},e.prototype.setDisplayed=function(t){if(t!==this.displayed){this.displayed=t,ke(this.eGui,t);var o={type:e.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(o)}},e.prototype.destroy=function(){this.removeAnnotatedGuiEventListeners(),t.prototype.destroy.call(this)},e.prototype.addGuiEventListener=function(t,e){var o=this;this.eGui.addEventListener(t,e),this.addDestroyFunc((function(){return o.eGui.removeEventListener(t,e)}))},e.prototype.addCssClass=function(t){!0!==this.cssClassStates[t]&&(xe(this.eGui,t),this.cssClassStates[t]=!0)},e.prototype.removeCssClass=function(t){!1!==this.cssClassStates[t]&&(Ve(this.eGui,t),this.cssClassStates[t]=!1)},e.prototype.addOrRemoveCssClass=function(t,e){this.cssClassStates[t]!==e&&(We(this.eGui,t,e),this.cssClassStates[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",_n([nt("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),_n([J],e.prototype,"createChildComponentsPreConstruct",null),_n([tt],e.prototype,"addAnnotatedGridEventListeners",null),e}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Nn(e,t),e.prototype.isPopup=function(){return!0},e.prototype.setParentComponent=function(e){xe(e.getGui(),"ag-has-popup"),t.prototype.setParentComponent.call(this,e)},e.prototype.destroy=function(){var e=this.parentComponent;e&&e.isAlive()&&Ve(e.getGui(),"ag-has-popup"),t.prototype.destroy.call(this)},e}(Fn);
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
function In(t){return Mn.bind(this,"[ref="+t+"]")}function Mn(t,e,o,n){null!==t?"number"!=typeof n?function(t,e,o){var n=function(t,e){t.__agComponentMetaData||(t.__agComponentMetaData={});t.__agComponentMetaData[e]||(t.__agComponentMetaData[e]={});return t.__agComponentMetaData[e]}
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */(t,z(t.constructor));n[e]||(n[e]=[]);n[e].push(o)}(e,"querySelectors",{attributeName:o,querySelector:t}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}var Gn,xn=function(){function t(){}return t.BACKSPACE=8,t.TAB=9,t.ENTER=13,t.SHIFT=16,t.ESCAPE=27,t.SPACE=32,t.LEFT=37,t.UP=38,t.RIGHT=39,t.DOWN=40,t.DELETE=46,t.A=65,t.C=67,t.V=86,t.D=68,t.Z=90,t.Y=89,t.F2=113,t.PAGE_UP=33,t.PAGE_DOWN=34,t.PAGE_HOME=36,t.PAGE_END=35,t}(),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wn=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hn=function(t){function o(){return t.call(this,o.TEMPLATE)||this}return Vn(o,t),o.prototype.init=function(t){this.params=t;var o,n=this.eInput;t.cellStartedEdit?(this.focusAfterAttached=!0,t.keyPress===xn.BACKSPACE||t.keyPress===xn.DELETE?o="":t.charPress?o=t.charPress:(o=this.getStartValue(t),t.keyPress!==xn.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,o=this.getStartValue(t)),e(o)&&n.setValue(o,!0),this.addManagedListener(n.getGui(),"keydown",(function(t){var e=t.keyCode;e!==xn.PAGE_UP&&e!==xn.PAGE_DOWN||t.preventDefault()}))},o.prototype.afterGuiAttached=function(){var t=this.eInput;if(t.setInputAriaLabel("Input Editor"),this.focusAfterAttached){Se()||t.getFocusableElement().focus();var o=t.getInputElement();if(this.highlightAllOnFocus)o.select();else{var n=t.getValue(),i=e(n)&&n.length||0;i&&o.setSelectionRange(i,i)}}},o.prototype.focusIn=function(){var t=this.eInput,e=t.getFocusableElement(),o=t.getInputElement();e.focus(),o.select()},o.prototype.focusOut=function(){var t=this.eInput.getInputElement();Pe()&&t.setSelectionRange(0,0)},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"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',Wn([In("eInput")],o.prototype,"eInput",void 0),o}(Ln),kn=function(){function t(t,e,o,n){var i=this;this.alive=!0,this.context=t,e.newDateComponent(o).then((function(e){i.alive?(i.dateComp=e,n.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),i.tempValue&&e.setDate(i.tempValue)):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.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}(),Bn=function(){function t(){this.customFilterOptions={}}return t.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t)},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){R(["displayKey","displayName","test"],(function(t){return!!e[t]||(console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a '"+t+"'"),!1)}))&&(t.customFilterOptions[e.displayKey]=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}(),jn={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},Un=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),zn=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Kn=function(t){function e(e,o){void 0===o&&(o=!1);var n=t.call(this,e)||this;return n.isFocusableContainer=o,n.skipTabGuardFocus=!1,n}return Un(e,t),e.prototype.postConstruct=function(){var t=this,o=this.getFocusableElement();o&&(xe(o,e.FOCUS_MANAGED_CLASS),this.isFocusableContainer&&(this.topTabGuard=this.createTabGuard("top"),this.bottomTabGuard=this.createTabGuard("bottom"),this.addTabGuards(),this.activateTabGuards(),this.forEachTabGuard((function(e){return t.addManagedListener(e,"focus",t.onFocus.bind(t))}))),this.addKeyDownListeners(o),this.addManagedListener(o,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(o,"focusout",this.onFocusOut.bind(this)))},e.prototype.focusInnerElement=function(t){void 0===t&&(t=!1);var e=this.focusController.findFocusableElements(this.getFocusableElement());this.isFocusableContainer&&this.tabGuardsAreActive()&&(e.splice(0,1),e.splice(e.length-1,1)),e.length&&e[t?e.length-1:0].focus()},e.prototype.onTabKeyDown=function(t){var e=this;if(!t.defaultPrevented){var o=this.tabGuardsAreActive();this.isFocusableContainer&&o&&this.deactivateTabGuards();var n=this.focusController.findNextFocusableElement(this.getFocusableElement(),!1,t.shiftKey);this.isFocusableContainer&&o&&setTimeout((function(){return e.activateTabGuards()}),0),n&&(n.focus(),t.preventDefault())}},e.prototype.onFocusIn=function(t){this.isFocusableContainer&&this.deactivateTabGuards()},e.prototype.onFocusOut=function(t){this.isFocusableContainer&&!this.getFocusableElement().contains(t.relatedTarget)&&this.activateTabGuards()},e.prototype.forceFocusOutOfContainer=function(t){if(void 0===t&&(t=!1),this.isFocusableContainer){this.activateTabGuards(),this.skipTabGuardFocus=!0;var e=t?this.topTabGuard:this.bottomTabGuard;e&&e.focus()}},e.prototype.appendChild=function(e,o){if(this.isFocusableContainer){Co(e)||(e=e.getGui());var n=this.bottomTabGuard;n?n.insertAdjacentElement("beforebegin",e):t.prototype.appendChild.call(this,e,o)}else t.prototype.appendChild.call(this,e,o)},e.prototype.createTabGuard=function(t){var e=document.createElement("div");return e.classList.add("ag-tab-guard"),e.classList.add("ag-tab-guard-"+t),e.setAttribute("role","presentation"),e},e.prototype.addTabGuards=function(){var t=this.getFocusableElement();t.insertAdjacentElement("afterbegin",this.topTabGuard),t.insertAdjacentElement("beforeend",this.bottomTabGuard)},e.prototype.forEachTabGuard=function(t){this.topTabGuard&&t(this.topTabGuard),this.bottomTabGuard&&t(this.bottomTabGuard)},e.prototype.addKeyDownListeners=function(t){var e=this;this.addManagedListener(t,"keydown",(function(t){t.defaultPrevented||(t.keyCode===xn.TAB?e.onTabKeyDown(t):e.handleKeyDown&&e.handleKeyDown(t))}))},e.prototype.onFocus=function(t){this.skipTabGuardFocus?this.skipTabGuardFocus=!1:this.focusInnerElement(t.target===this.bottomTabGuard)},e.prototype.activateTabGuards=function(){this.forEachTabGuard((function(t){return t.setAttribute("tabIndex","0")}))},e.prototype.deactivateTabGuards=function(){this.forEachTabGuard((function(t){return t.removeAttribute("tabIndex")}))},e.prototype.tabGuardsAreActive=function(){return!!this.topTabGuard&&this.topTabGuard.hasAttribute("tabIndex")},e.prototype.clearGui=function(){var t=this.tabGuardsAreActive();Je(this.getFocusableElement()),this.isFocusableContainer&&(this.addTabGuards(),t&&this.activateTabGuards())},e.FOCUS_MANAGED_CLASS="ag-focus-managed",zn([nt("focusController")],e.prototype,"focusController",void 0),zn([tt],e.prototype,"postConstruct",null),e}(Fn),Yn=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),qn=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Xn=function(t){function e(e){var o=t.call(this)||this;return o.filterNameKey=e,o.applyActive=!1,o.hidePopup=null,o.appliedModel=null,o}return Yn(e,t),e.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},e.prototype.onFilterChanged=function(){console.warn("ag-Grid: you should not call onFilterChanged() directly on the filter, please call\n        gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was\n        a method that existed on an old version of the filters that was not intended for public use."),this.providedFilterParams.filterChangedCallback()},e.prototype.isFilterActive=function(){return!!this.appliedModel},e.prototype.postConstruct=function(){this.resetTemplate(),t.prototype.postConstruct.call(this)},e.prototype.resetTemplate=function(t){var e='\n            <div class="ag-filter-wrapper">\n                <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n                    '+this.createBodyTemplate()+"\n                </div>\n            </div>";this.setTemplate(e,t)},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){if(e.checkForDeprecatedParams(t),this.providedFilterParams=t,"keep"===t.newRowsAction)this.newRowsActionKeep=!0;else if("clear"===t.newRowsAction)this.newRowsActionKeep=!1;else{var o=[dt.ROW_MODEL_TYPE_SERVER_SIDE,dt.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=o.indexOf(this.rowModel.getType())>=0}this.applyActive=e.isUseApplyButton(t),this.createButtonPanel()},e.prototype.createButtonPanel=function(){var t=this,e=this.providedFilterParams.buttons;if(e&&!(e.length<1)){var o=document.createElement("div");xe(o,"ag-filter-apply-panel");En(e).forEach((function(e){return function(e){var n,i;switch(e){case"apply":n=t.translate("applyFilter"),i=function(e){return t.onBtApply(!1,!1,e)};break;case"clear":n=t.translate("clearFilter"),i=function(){return t.onBtClear()};break;case"reset":n=t.translate("resetFilter"),i=function(){return t.onBtReset()};break;case"cancel":n=t.translate("cancelFilter"),i=function(e){t.onBtCancel(e)};break;default:return void console.warn("Unknown button type specified")}var r=oo('<button\n                    type="button"\n                    ref="'+e+'FilterButton"\n                    class="ag-standard-button ag-filter-apply-panel-button">'+n+"</button>");o.appendChild(r),t.addManagedListener(r,"click",i)}(e)})),this.getGui().appendChild(o)}},e.checkForDeprecatedParams=function(t){var e=t.buttons||[];if(!(e.length>0)){var o=t.applyButton,n=t.resetButton;t.clearButton&&(console.warn("ag-Grid: as of ag-Grid v23.2, filterParams.clearButton is deprecated. Please use filterParams.buttons instead"),e.push("clear")),n&&(console.warn("ag-Grid: as of ag-Grid v23.2, filterParams.resetButton is deprecated. Please use filterParams.buttons instead"),e.push("reset")),o&&(console.warn("ag-Grid: as of ag-Grid v23.2, filterParams.applyButton is deprecated. Please use filterParams.buttons instead"),e.push("apply")),t.apply&&(console.warn("ag-Grid: as of ag-Grid v21, filterParams.apply is deprecated. Please use filterParams.buttons instead"),e.push("apply")),t.buttons=e}},e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.setupOnBtApplyDebounce=function(){var t=e.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=Q(this.onBtApply.bind(this),t)},e.prototype.getModel=function(){return this.appliedModel},e.prototype.setModel=function(t){var e=this;return(t?this.setModelIntoUi(t):this.resetUiToDefaults()).then((function(){e.updateUiVisibility(),e.applyModel()}))},e.prototype.onBtCancel=function(t){var e=this;this.setModelIntoUi(this.getModel()).then((function(){e.onUiChanged(!1,"prevent"),e.providedFilterParams.closeOnApply&&e.close(t)}))},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(){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var e=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(e,t)},e.prototype.isModelValid=function(t){return!0},e.prototype.onBtApply=function(t,e,o){void 0===t&&(t=!1),void 0===e&&(e=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:t,afterDataChange:e}),this.providedFilterParams.closeOnApply&&this.applyActive&&!t&&!e&&this.close(o)},e.prototype.onNewRowsLoaded=function(){var t=this;this.newRowsActionKeep||this.resetUiToDefaults().then((function(){return t.appliedModel=null}))},e.prototype.close=function(t){if(this.hidePopup){var e,o=t,n=o&&o.key;"Enter"!==n&&"Space"!==n||(e={keyboardEvent:o}),this.hidePopup(e),this.hidePopup=null}},e.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},e.prototype.onUiChanged=function(t,e){if(void 0===t&&(t=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive){var o=this.isModelValid(this.getModelFromUi());je(this.getRefElement("applyFilterButton"),!o)}t&&!e||"immediately"===e?this.onBtApply(t):(this.applyActive||e)&&"debounce"!==e||this.onBtApplyDebounce()},e.prototype.afterGuiAttached=function(t){null!=t&&(this.hidePopup=t.hidePopup)},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 e.checkForDeprecatedParams(t),t.buttons&&t.buttons.indexOf("apply")>=0},e.prototype.destroy=function(){this.hidePopup=null,t.prototype.destroy.call(this)},e.prototype.translate=function(t){return this.gridOptionsWrapper.getLocaleTextFunc()(t,jn[t])},qn([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),qn([nt("rowModel")],e.prototype,"rowModel",void 0),qn([tt],e.prototype,"postConstruct",null),e}(Kn),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$n=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */!function(t){t[t.One=0]="One",t[t.Two=1]="Two"}(Gn||(Gn={}));var Zn,Jn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qn(e,t),e.prototype.showValueFrom=function(t){return!this.doesFilterHaveHiddenInput(t)&&t!==e.EMPTY},e.prototype.showValueTo=function(t){return t===e.IN_RANGE},e.prototype.onFloatingFilterChanged=function(t,e){this.setTypeFromFloatingFilter(t),this.setValueFromFloatingFilter(e),this.onUiChanged(!0)},e.prototype.setTypeFromFloatingFilter=function(t){this.eType1.setValue(t),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},e.prototype.getModelFromUi=function(){return this.isConditionUiComplete(Gn.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(Gn.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(Gn.One),condition2:this.createCondition(Gn.Two)}:this.createCondition(Gn.One):null},e.prototype.getCondition1Type=function(){return this.eType1.getValue()},e.prototype.getCondition2Type=function(){return this.eType2.getValue()},e.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},e.prototype.areModelsEqual=function(t,e){if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var o,n=!t.operator,i=!e.operator;if(!n&&i||n&&!i)return!1;if(n){var r=t,s=e;o=this.areSimpleModelsEqual(r,s)}else{var a=t,l=e;o=a.operator===l.operator&&this.areSimpleModelsEqual(a.condition1,l.condition1)&&this.areSimpleModelsEqual(a.condition2,l.condition2)}return o},e.prototype.setModelIntoUi=function(t){if(t.operator){var e=t,o="OR"===e.operator;this.eJoinOperatorAnd.setValue(!o),this.eJoinOperatorOr.setValue(o),this.eType1.setValue(e.condition1.type),this.eType2.setValue(e.condition2.type),this.setConditionIntoUi(e.condition1,Gn.One),this.setConditionIntoUi(e.condition2,Gn.Two)}else{var n=t;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(n.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(n,Gn.One),this.setConditionIntoUi(null,Gn.Two)}return Dn.resolve()},e.prototype.doesFilterPass=function(t){var e=this,o=this.getModel();if(null==o)return!0;var n=o.operator,i=[];if(n){var r=o;i.push(r.condition1,r.condition2)}else i.push(o);return(n&&"OR"===n?O:R)(i,(function(o){return e.individualConditionPasses(t,o)}))},e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.optionsFactory=new Bn,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.allowTwoConditions=!e.suppressAndOrCondition,this.alwaysShowBothConditions=!!e.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},e.prototype.getDefaultJoinOperator=function(t){return C(["AND","OR"],t)?t:"AND"},e.prototype.putOptionsIntoDropdown=function(){var t=this,e=this.optionsFactory.getFilterOptions();P(e,(function(e){var o,n;if("string"==typeof e)o=e,n=t.translate(o);else{o=e.displayKey;var i=t.optionsFactory.getCustomOption(o);n=i?i.displayName:t.translate(o)}var r=function(){return{value:o,text:n}};t.eType1.addOption(r()),t.eType2.addOption(r())}));var o=e.length<=1;this.eType1.setDisabled(o),this.eType2.setDisabled(o)},e.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},e.prototype.createBodyTemplate=function(){return'\n            <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n            '+this.createValueTemplate(Gn.One)+'\n            <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n               <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n               <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n            </div>\n            <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n            '+this.createValueTemplate(Gn.Two)},e.prototype.getCssIdentifier=function(){return"simple-filter"},e.prototype.updateUiVisibility=function(){var t=this.isCondition2Enabled();this.alwaysShowBothConditions?(this.eJoinOperatorAnd.setDisabled(!t),this.eJoinOperatorOr.setDisabled(!t),this.eType2.setDisabled(!t),je(this.eCondition2Body,!t)):(ke(this.eJoinOperatorPanel,t),ke(this.eType2.getGui(),t),ke(this.eCondition2Body,t))},e.prototype.isCondition2Enabled=function(){return this.allowTwoConditions&&this.isConditionUiComplete(Gn.One)},e.prototype.resetUiToDefaults=function(t){var e="ag-simple-filter-and-or-"+this.getCompId(),o=this.optionsFactory.getDefaultOption();return this.eType1.setValue(o,t).setAriaLabel("Filtering operator"),this.eType2.setValue(o,t).setAriaLabel("Filtering operator"),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),t).setName(e).setLabel(this.translate("andCondition")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),t).setName(e).setLabel(this.translate("orCondition")),Dn.resolve()},e.prototype.isDefaultOperator=function(t){return t===this.defaultJoinOperator},e.prototype.addChangedListeners=function(){var t=this,e=function(){return t.onUiChanged()};this.eType1.onValueChange(e),this.eType2.onValueChange(e),this.eJoinOperatorOr.onValueChange(e),this.eJoinOperatorAnd.onValueChange(e)},e.prototype.doesFilterHaveHiddenInput=function(t){var e=this.optionsFactory.getCustomOption(t);return e&&e.hideFilterInput},e.EMPTY="empty",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",$n([In("eOptions1")],e.prototype,"eType1",void 0),$n([In("eOptions2")],e.prototype,"eType2",void 0),$n([In("eJoinOperatorPanel")],e.prototype,"eJoinOperatorPanel",void 0),$n([In("eJoinOperatorAnd")],e.prototype,"eJoinOperatorAnd",void 0),$n([In("eJoinOperatorOr")],e.prototype,"eJoinOperatorOr",void 0),$n([In("eCondition1Body")],e.prototype,"eCondition1Body",void 0),$n([In("eCondition2Body")],e.prototype,"eCondition2Body",void 0),e}(Xn),ti=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.scalarFilterParams=e,this.checkDeprecatedParams()},e.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("ag-Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},e.prototype.individualConditionPasses=function(t,o){var n=this.scalarFilterParams.valueGetter(t.node),i=this.mapRangeFromModel(o),r=i.from,s=i.to,a=o.type,l=this.optionsFactory.getCustomOption(a);if(l&&(null!=r||l.hideFilterInput))return l.test(r,n);if(null==n){switch(a){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}return!1}var p=this.comparator(),u=p(r,n);switch(a){case e.EQUALS:return 0===u;case e.NOT_EQUAL:return 0!==u;case e.GREATER_THAN:return u>0;case e.GREATER_THAN_OR_EQUAL:return u>=0;case e.LESS_THAN:return u<0;case e.LESS_THAN_OR_EQUAL:return u<=0;case e.IN_RANGE:var c=p(s,n);return this.scalarFilterParams.inRangeInclusive?u>=0&&c<=0:u>0&&c<0;default:throw new Error("Unexpected type of filter: "+a)}},e}(Jn),oi=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ni=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ii=function(t){function e(){return t.call(this,"dateFilter")||this}return oi(e,t),e.prototype.mapRangeFromModel=function(t){return{from:Jo(t.dateFrom),to:Jo(t.dateTo)}},e.prototype.setValueFromFloatingFilter=function(t){this.dateCondition1FromComp.setDate(null==t?null:Jo(t)),this.dateCondition1ToComp.setDate(null),this.dateCondition2FromComp.setDate(null),this.dateCondition2ToComp.setDate(null)},e.prototype.setConditionIntoUi=function(t,e){var o=t?[Jo(t.dateFrom),Jo(t.dateTo)]:[null,null],n=o[0],i=o[1],r=this.getFromToComponents(e),s=r[0],a=r[1];s.setDate(n),a.setDate(i)},e.prototype.resetUiToDefaults=function(e){var o=this;return t.prototype.resetUiToDefaults.call(this,e).then((function(){o.dateCondition1FromComp.setDate(null),o.dateCondition1ToComp.setDate(null),o.dateCondition2FromComp.setDate(null),o.dateCondition2ToComp.setDate(null)}))},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){t.prototype.setParams.call(this,e),this.dateFilterParams=e,this.createDateComponents()},e.prototype.createDateComponents=function(){var t=this,e={onDateChanged:function(){return t.onUiChanged()},filterParams:this.dateFilterParams};this.dateCondition1FromComp=new kn(this.getContext(),this.userComponentFactory,e,this.eCondition1PanelFrom),this.dateCondition1ToComp=new kn(this.getContext(),this.userComponentFactory,e,this.eCondition1PanelTo),this.dateCondition2FromComp=new kn(this.getContext(),this.userComponentFactory,e,this.eCondition2PanelFrom),this.dateCondition2ToComp=new kn(this.getContext(),this.userComponentFactory,e,this.eCondition2PanelTo),this.addDestroyFunc((function(){t.dateCondition1FromComp.destroy(),t.dateCondition1ToComp.destroy(),t.dateCondition2FromComp.destroy(),t.dateCondition2ToComp.destroy()}))},e.prototype.getDefaultFilterOptions=function(){return e.DEFAULT_FILTER_OPTIONS},e.prototype.createValueTemplate=function(t){var e=t===Gn.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+e+'Body">\n                <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+e+'PanelFrom"></div>\n                <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+e+'PanelTo"></div>\n            </div>'},e.prototype.isConditionUiComplete=function(t){var e=t===Gn.One?this.getCondition1Type():this.getCondition2Type();if(e===Jn.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(e))return!0;var o=this.getFromToComponents(t),n=o[0],i=o[1],r=null==this.dateFilterParams.minValidYear?1e3:this.dateFilterParams.minValidYear,s=function(t){return null!=t&&t.getUTCFullYear()>r};return s(n.getDate())&&(!this.showValueTo(e)||s(i.getDate()))},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=t===Gn.One?this.getCondition1Type():this.getCondition2Type(),o=this.getFromToComponents(t),n=o[0],i=o[1];return{dateFrom:Zo(n.getDate()),dateTo:Zo(i.getDate()),type:e,filterType:this.getFilterType()}},e.prototype.resetPlaceholder=function(){var t=this.translate("dateFormatOoo");this.dateCondition1FromComp.setInputPlaceholder(t),this.dateCondition1FromComp.setInputAriaLabel("Filter value"),this.dateCondition1ToComp.setInputPlaceholder(t),this.dateCondition1ToComp.setInputAriaLabel("Filter value"),this.dateCondition2FromComp.setInputPlaceholder(t),this.dateCondition2FromComp.setInputAriaLabel("Filter value"),this.dateCondition2ToComp.setInputPlaceholder(t),this.dateCondition2ToComp.setInputAriaLabel("Filter value")},e.prototype.updateUiVisibility=function(){t.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var e=this.getCondition1Type();ke(this.eCondition1PanelFrom,this.showValueFrom(e)),ke(this.eCondition1PanelTo,this.showValueTo(e));var o=this.getCondition2Type();ke(this.eCondition2PanelFrom,this.showValueFrom(o)),ke(this.eCondition2PanelTo,this.showValueTo(o))},e.prototype.getFromToComponents=function(t){return t===Gn.One?[this.dateCondition1FromComp,this.dateCondition1ToComp]:[this.dateCondition2FromComp,this.dateCondition2ToComp]},e.DEFAULT_FILTER_OPTIONS=[ei.EQUALS,ei.GREATER_THAN,ei.LESS_THAN,ei.NOT_EQUAL,ei.IN_RANGE],ni([In("eCondition1PanelFrom")],e.prototype,"eCondition1PanelFrom",void 0),ni([In("eCondition1PanelTo")],e.prototype,"eCondition1PanelTo",void 0),ni([In("eCondition2PanelFrom")],e.prototype,"eCondition2PanelFrom",void 0),ni([In("eCondition2PanelTo")],e.prototype,"eCondition2PanelTo",void 0),ni([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(ei),ri=function(){function t(t,e){var o=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ct,this.eElement=t,this.preventMouseClick=e;var n=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),r=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",r,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",n,{passive:!0}),o.eElement.removeEventListener("touchmove",i,{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 n=this.touchStart;window.setTimeout((function(){var i=o.touchStart===n;if(o.touching&&i&&!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)!mn(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.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}(),si=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ai=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},li=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return si(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=c(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=Kt(this.currentDisplayName);this.eText&&(this.eText.innerHTML=e)}},o.prototype.setupIcons=function(t){this.addInIcon("sortAscending",this.eSortAsc,t),this.addInIcon("sortDescending",this.eSortDesc,t),this.addInIcon("sortUnSort",this.eSortNone,t),this.addInIcon("menu",this.eMenu,t),this.addInIcon("filter",this.eFilter,t)},o.prototype.addInIcon=function(t,e,o){if(null!=e){var n=un(t,this.gridOptionsWrapper,o);e.appendChild(n)}},o.prototype.setupTap=function(){var t=this,o=this.gridOptionsWrapper;if(!o.isSuppressTouch()){var n=new ri(this.getGui(),!0),i=o.isSuppressMenuHide(),r=i&&e(this.eMenu),s=r?new ri(this.eMenu,!0):n;if(this.params.enableMenu){var a=r?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,ri[a],(function(e){o.getApi().showColumnMenuAfterMouseClick(t.params.column,e.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,ri.EVENT_TAP,(function(e){var o=e.touchStart.target;i&&t.eMenu.contains(o)||t.sortController.progressSort(t.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),r&&this.addDestroyFunc((function(){return s.destroy()}))}},o.prototype.workOutShowMenu=function(){var t=!this.gridOptionsWrapper.isSuppressMenuHide(),e=_e()&&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.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return t.showMenu(t.eMenu)})),We(this.eMenu,"ag-header-menu-always-show",e)}else to(this.eMenu)},o.prototype.showMenu=function(t){t||(t=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,t)},o.prototype.removeSortIcons=function(){to(this.eSortAsc),to(this.eSortDesc),to(this.eSortNone),to(this.eSortOrder)},o.prototype.workOutSort=function(){return this.params.enableSorting},o.prototype.setupSort=function(){var t=this;if(this.currentSort=this.params.enableSorting,this.currentSort){var e=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,gt.EVENT_MOVING_CHANGED,(function(){t.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(o){var n=t.params.column.isMoving(),i=(new Date).getTime()-t.lastMovingChanged<50;if(!(n||i)){var r=e?o.ctrlKey||o.metaKey:o.shiftKey;t.params.progressSort(r)}})),this.addManagedListener(this.params.column,gt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,Ht.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},o.prototype.onSortChanged=function(){if(We(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),We(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),We(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&We(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&We(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var t=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();We(this.eSortNone,"ag-hidden",t||!this.params.column.isSortNone())}},o.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var t=this.params.column,e=this.sortController.getColumnsWithSortingOrdered(),o=e.indexOf(t),n=e.length>1,i=t.isSorting()&&n;ke(this.eSortOrder,i),o>=0?this.eSortOrder.innerHTML=(o+1).toString():Je(this.eSortOrder)}},o.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,gt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},o.prototype.onFilterChanged=function(){var t=this.params.column.isFilterActive();We(this.eFilter,"ag-hidden",!t)},o.TEMPLATE='<div class="ag-cell-label-container">\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" unselectable="on">\n                <span ref="eText" class="ag-header-cell-text" unselectable="on"></span>\n                <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n                <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span>\n                <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span>\n                <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span>\n                <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span>\n            </div>\n        </div>',ai([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),ai([nt("sortController")],o.prototype,"sortController",void 0),ai([nt("menuFactory")],o.prototype,"menuFactory",void 0),ai([In("eFilter")],o.prototype,"eFilter",void 0),ai([In("eSortAsc")],o.prototype,"eSortAsc",void 0),ai([In("eSortDesc")],o.prototype,"eSortDesc",void 0),ai([In("eSortNone")],o.prototype,"eSortNone",void 0),ai([In("eSortOrder")],o.prototype,"eSortOrder",void 0),ai([In("eMenu")],o.prototype,"eMenu",void 0),ai([In("eLabel")],o.prototype,"eLabel",void 0),ai([In("eText")],o.prototype,"eText",void 0),o}(Fn),pi=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ui=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ci=function(t){function o(){return t.call(this,o.TEMPLATE)||this}return pi(o,t),o.prototype.destroy=function(){t.prototype.destroy.call(this)},o.prototype.init=function(t){this.params=t,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},o.prototype.setupExpandIcons=function(){var t=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var e=function(e){if(!Pt(e)){var o=!t.params.columnGroup.isExpanded();t.columnController.setColumnGroupOpened(t.params.columnGroup.getOriginalColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,e),this.addTouchAndClickListeners(this.eOpenIcon,e);var o=function(t){Ot(t)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",e),this.updateIconVisibility();var n=this.params.columnGroup.getOriginalColumnGroup();this.addManagedListener(n,mt.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(n,mt.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},o.prototype.addTouchAndClickListeners=function(t,e){var o=new ri(t);this.addManagedListener(o,ri.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();ke(this.eOpenIcon,t),ke(this.eCloseIcon,!t)}else ke(this.eOpenIcon,!1),ke(this.eCloseIcon,!1)},o.prototype.addInIcon=function(t,e){var o=un(t,this.gridOptionsWrapper,null);this.getRefElement(e).appendChild(o)},o.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return ke(this.eOpenIcon,!1),void ke(this.eCloseIcon,!1)},o.prototype.setupLabel=function(){var t=this.params.displayName;if(e(t)){var o=Kt(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>',ui([nt("columnController")],o.prototype,"columnController",void 0),ui([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),ui([In("agOpened")],o.prototype,"eOpenIcon",void 0),ui([In("agClosed")],o.prototype,"eCloseIcon",void 0),o}(Fn),di=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},hi=function(){function t(){this.childrenMapped={},this.selectable=!0,this.__objectId=t.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.highlighted=null,this.selected=!1}return t.prototype.setData=function(t){var e=this.data;this.data=t,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(t,e,!1);this.dispatchLocalEvent(o)},t.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},t.prototype.createDataChangedEvent=function(e,o,n){return{type:t.EVENT_DATA_CHANGED,node:this,oldData:o,newData:e,update:n}},t.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},t.prototype.updateData=function(t){var e=this.data;this.data=t,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var o=this.createDataChangedEvent(t,e,!0);this.dispatchLocalEvent(o)},t.prototype.getRowIndexString=function(){return this.rowPinned===dt.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===dt.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},t.prototype.createDaemonNode=function(){var e=new t;return this.context.createBean(e),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 n=e(this.id)?this.createDaemonNode():null,i=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(o),this.selectionController.syncInRowNode(this,n),this.checkRowSelectable();var r=this.createDataChangedEvent(t,i,!1);this.dispatchLocalEvent(r)},t.prototype.checkRowSelectable=function(){var t=this.gridOptionsWrapper.getIsRowSelectableFunc(),o=t&&e(this);this.setRowSelectable(!o||t(this))},t.prototype.setRowSelectable=function(e){this.selectable!==e&&(this.selectable=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_SELECTABLE_CHANGED)))},t.prototype.setId=function(e){var o=this.gridOptionsWrapper.getRowNodeIdFunc();o?this.data?(this.id=o(this.data),this.id&&this.id.startsWith&&this.id.startsWith(t.ID_PREFIX_ROW_GROUP)&&console.error("ag-Grid: Row ID's cannot start with "+t.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for ag-Grid's row grouping feature.")):this.id=void 0:this.id=e},t.prototype.isPixelInRange=function(t){return t>=this.rowTop&&t<this.rowTop+this.rowHeight},t.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},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.rowTop!==e&&(this.rowTop=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_TOP_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.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.setRowIndex=function(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){if(this.expanded!==e){this.expanded=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_EXPANDED_CHANGED));var o=G({},this.createGlobalRowEvent(Ht.EVENT_ROW_GROUP_OPENED),{expanded:e});this.mainEventService.dispatchEvent(o),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},t.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},t.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},t.prototype.setDataValue=function(t,e){var o=this.columnController.getPrimaryColumn(t),n=this.valueService.getValue(o,this);this.valueService.setValue(this,o,e),this.dispatchCellChangedEvent(o,e,n)},t.prototype.setGroupValue=function(t,e){var n=this.columnController.getGridColumn(t);o(this.groupData)&&(this.groupData={});var i=n.getColId(),r=this.groupData[i];r!==e&&(this.groupData[i]=e,this.dispatchCellChangedEvent(n,e,r))},t.prototype.setAggData=function(t){var e=this,o=I([this.aggData,t]),n=this.aggData;this.aggData=t,this.eventService&&o.forEach((function(t){var o=e.columnController.getGridColumn(t),i=e.aggData?e.aggData[t]:void 0,r=n?n[t]:void 0;e.dispatchCellChangedEvent(o,i,r)}))},t.prototype.updateHasChildren=function(){var e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;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&&n(this.childrenAfterGroup)},t.prototype.dispatchCellChangedEvent=function(e,o,n){var i={type:t.EVENT_CELL_CHANGED,node:this,column:e,newValue:o,oldValue:n};this.dispatchLocalEvent(i)},t.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},t.prototype.isExpandable=function(){return!(!this.hasChildren()&&!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,n=!1;if(this.childrenAfterGroup)for(var i=0;i<this.childrenAfterGroup.length;i++){var r=this.childrenAfterGroup[i];if(r.selectable)switch(r.isSelected()){case!0:e=!0;break;case!1:o=!0;break;default:n=!0}}t=n?void 0:!(!e||o)||!(!e&&o)&&void 0,this.selectThisNode(t)},t.prototype.setSelectedInitialValue=function(t){this.selected=t},t.prototype.setSelected=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:t,clearSelection:e,suppressFinishActions:o,rangeSelect:!1})},t.prototype.isRowPinned=function(){return this.rowPinned===dt.PINNED_TOP||this.rowPinned===dt.PINNED_BOTTOM},t.prototype.setSelectedParams=function(t){var e=this.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===t.newValue,n=!0===t.clearSelection,i=!0===t.suppressFinishActions,r=!0===t.rangeSelect,s=e&&!0===t.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(t);if(r&&this.selectionController.getLastSelectedNode()){var a=this.selectionController.getLastSelectedNode()!==this,l=this.gridOptionsWrapper.isRowSelectionMulti();if(a&&l)return this.doRowRangeSelection()}var p=0;s&&this.group||this.selectThisNode(o)&&p++;if(e&&this.group&&(p+=this.selectChildNodes(o,s)),!i){if(o&&(n||!this.gridOptionsWrapper.isRowSelectionMulti())&&(p+=this.selectionController.clearOtherNodes(this)),p>0){this.selectionController.updateGroupsFromChildrenSelections();var u={type:Ht.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(u)}o&&this.selectionController.setLastSelectedNode(this)}return p},t.prototype.doRowRangeSelection=function(){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),e=this.selectionController.getLastSelectedNode(),o=this.rowModel.getNodesInRangeForSelection(this,e),n=0;o.forEach((function(e){e.group&&t||e.selectThisNode(!0)&&n++})),this.selectionController.updateGroupsFromChildrenSelections();var i={type:Ht.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(i),n},t.prototype.isParentOfNode=function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1},t.prototype.selectThisNode=function(e){var o=!this.selectable&&e,n=this.selected===e;if(o||n)return!1;this.selected=e,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_ROW_SELECTED));var i=this.createGlobalRowEvent(Ht.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(i),!0},t.prototype.selectChildNodes=function(t,e){var n=e?this.childrenAfterFilter:this.childrenAfterGroup;if(!o(n)){for(var i=0,r=0;r<n.length;r++)i+=n[r].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:e});return i}},t.prototype.addEventListener=function(t,e){this.eventService||(this.eventService=new ct),this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},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,n=this,i=!0,r=!1;i&&!r;){var s=n.parent;e(s)&&n.firstChild?s.rowGroupColumn===t&&(r=!0,o=s):i=!1,n=s}return r?o:null},t.prototype.isFullWidthCell=function(){var t=this.gridOptionsWrapper.getIsFullWidthCellFunc();return!!t&&t(this)},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_MOUSE_ENTER="mouseEnter",t.EVENT_MOUSE_LEAVE="mouseLeave",t.EVENT_HEIGHT_CHANGED="heightChanged",t.EVENT_TOP_CHANGED="topChanged",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",di([nt("eventService")],t.prototype,"mainEventService",void 0),di([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),di([nt("selectionController")],t.prototype,"selectionController",void 0),di([nt("columnController")],t.prototype,"columnController",void 0),di([nt("valueService")],t.prototype,"valueService",void 0),di([nt("rowModel")],t.prototype,"rowModel",void 0),di([nt("context")],t.prototype,"context",void 0),di([nt("valueCache")],t.prototype,"valueCache",void 0),di([nt("columnApi")],t.prototype,"columnApi",void 0),di([nt("gridApi")],t.prototype,"gridApi",void 0),t}(),fi=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},yi=function(t){function e(){return t.call(this,'\n            <div class="ag-selection-checkbox">\n                <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n            </div>')||this}return fi(e,t),e.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},e.prototype.onDataChanged=function(){this.onSelectionChanged()},e.prototype.onSelectableChanged=function(){this.showOrHideSelect()},e.prototype.onSelectionChanged=function(){var t=this.rowNode.isSelected(),e=void 0===t?"indeterminate":!0===t?"checked":"unchecked";this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel("Press Space to toggle row selection ("+e+")")},e.prototype.onCheckedClicked=function(){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:t})},e.prototype.onUncheckedClicked=function(t){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:t.shiftKey,groupSelectsFiltered:e})},e.prototype.init=function(t){var e=this;this.rowNode=t.rowNode,this.column=t.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(t){return Ot(t)})),this.addGuiEventListener("dblclick",(function(t){return Ot(t)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){void 0===t.previousValue?0===e.onUncheckedClicked(t.event||{})&&e.onCheckedClicked():t.selected?e.onUncheckedClicked(t.event||{}):e.onCheckedClicked()})),this.addManagedListener(this.rowNode,hi.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addManagedListener(this.eventService,Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect()),this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},e.prototype.showOrHideSelect=function(){var t=this.rowNode.selectable;t&&this.checkboxCallbackExists()&&(t=this.column.isCellCheckboxSelection(this.rowNode)),this.setDisplayed(t)},e.prototype.checkboxCallbackExists=function(){var t=this.column?this.column.getColDef():null;return t&&"function"==typeof t.checkboxSelection},gi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),gi([In("eCheckbox")],e.prototype,"eCheckbox",void 0),gi([tt],e.prototype,"postConstruct",null),e}(Fn),vi={propertyName:"dateComponent",isCellRenderer:function(){return!1}},mi={propertyName:"headerComponent",isCellRenderer:function(){return!1}},Ci={propertyName:"headerGroupComponent",isCellRenderer:function(){return!1}},wi={propertyName:"cellRenderer",isCellRenderer:function(){return!0}},Ei={propertyName:"pinnedRowCellRenderer",isCellRenderer:function(){return!0}},Ri={propertyName:"cellEditor",isCellRenderer:function(){return!1}},Oi={propertyName:"innerRenderer",isCellRenderer:function(){return!0}},Pi={propertyName:"loadingOverlayComponent",isCellRenderer:function(){return!1}},bi={propertyName:"noRowsOverlayComponent",isCellRenderer:function(){return!1}},Si={propertyName:"tooltipComponent",isCellRenderer:function(){return!1}},Di={propertyName:"filter",isCellRenderer:function(){return!1}},Ti={propertyName:"floatingFilterComponent",isCellRenderer:function(){return!1}},_i={propertyName:"toolPanel",isCellRenderer:function(){return!1}},Ai={propertyName:"statusPanel",isCellRenderer:function(){return!1}},Fi=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ni=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",t[t.HARDCODED=2]="HARDCODED"}(Zn||(Zn={}));!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Fi(e,t),e.prototype.newDateComponent=function(t){return this.createAndInitUserComponent(this.gridOptions,t,vi,"agDateInput")},e.prototype.newHeaderComponent=function(t){return this.createAndInitUserComponent(t.column.getColDef(),t,mi,"agColumnHeader")},e.prototype.newHeaderGroupComponent=function(t){return this.createAndInitUserComponent(t.columnGroup.getColGroupDef(),t,Ci,"agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(t){return this.createAndInitUserComponent(this.gridOptions.groupRowRendererParams,t,Oi,null,!0)},e.prototype.newFullWidthCellRenderer=function(t,e,o){return this.createAndInitUserComponent(null,t,{propertyName:e,isCellRenderer:function(){return!0}},o)},e.prototype.newCellRenderer=function(t,e,o){return void 0===o&&(o=!1),this.createAndInitUserComponent(t,e,o?Ei:wi,null,!0)},e.prototype.newCellEditor=function(t,e){return this.createAndInitUserComponent(t,e,Ri,"agCellEditor")},e.prototype.newInnerCellRenderer=function(t,e){return this.createAndInitUserComponent(t,e,Oi,null)},e.prototype.newLoadingOverlayComponent=function(t){return this.createAndInitUserComponent(this.gridOptions,t,Pi,"agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(t){return this.createAndInitUserComponent(this.gridOptions,t,bi,"agNoRowsOverlay")},e.prototype.newTooltipComponent=function(t){return this.createAndInitUserComponent(t.colDef,t,Si,"agTooltipComponent")},e.prototype.newFilterComponent=function(t,e,o){return this.createAndInitUserComponent(t,e,Di,o,!1)},e.prototype.newSetFilterCellRenderer=function(t,e){return this.createAndInitUserComponent(t,e,wi,null,!0)},e.prototype.newFloatingFilterComponent=function(t,e,o){return this.createAndInitUserComponent(t,e,Ti,o,!0)},e.prototype.newToolPanelComponent=function(t,e){return this.createAndInitUserComponent(t,e,_i)},e.prototype.newStatusPanelComponent=function(t,e){return this.createAndInitUserComponent(t,e,Ai)},e.prototype.createAndInitUserComponent=function(t,e,o,n,i){void 0===i&&(i=!1),t||(t=this.gridOptions);var r=this.createComponentInstance(t,o,e,n,i);if(!r)return null;var s=r.componentInstance,a=this.createFinalParams(t,o.propertyName,e,r.paramsFromSelector);this.addReactHacks(a);var l=this.initComponent(s,a);return null==l?Dn.resolve(s):l.then((function(){return s}))},e.prototype.addReactHacks=function(t){var e=this.context.getBean("agGridReact");e&&(t.agGridReact=_(e));var o=this.context.getBean("frameworkComponentWrapper");o&&(t.frameworkComponentWrapper=o)},e.prototype.createUserComponentFromConcreteClass=function(t,e){var o=new t;return this.initComponent(o,e),o},e.prototype.lookupComponentClassDef=function(t,e,o,n){void 0===o&&(o=null);var i,r=null,s=null,a=null,l=null;if(null!=t){var p=t[e];null==p||!0===p||("string"==typeof p?r=p:"boolean"==typeof p||(this.agComponentUtils.doesImplementIComponent(p)?s=p:a=p)),l=t[e+"Framework"],i=t[e+"Selector"]}if(s&&l||r&&l||a&&l)throw Error("ag-grid: you are trying to specify: "+e+" twice as a component.");if(l&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+e);if(i&&(r||s||a||l))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+e);if(l)return{componentFromFramework:!0,component:l,source:Zn.HARDCODED,paramsFromSelector:null};if(s)return{componentFromFramework:!1,component:s,source:Zn.HARDCODED,paramsFromSelector:null};if(a)return this.agComponentUtils.adaptFunction(e,a,!1,Zn.HARDCODED);var u,c=i?i(o):null;if(!(u=c&&c.component?c.component:r||n))return null;var d=this.lookupFromRegisteredComponents(e,u);return d?{componentFromFramework:d.componentFromFramework,component:d.component,source:d.source,paramsFromSelector:c?c.params:null}:null},e.prototype.lookupFromRegisteredComponents=function(t,e){var o=null!=e?e:t,n=this.userComponentRegistry.retrieve(o);return null==n?null:n.componentFromFramework?{component:n.component,componentFromFramework:!0,source:Zn.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(n.component)?{component:n.component,componentFromFramework:!1,source:n.source==Li.REGISTERED?Zn.REGISTERED_BY_NAME:Zn.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(t,n.component,n.componentFromFramework,n.source==Li.REGISTERED?Zn.REGISTERED_BY_NAME:Zn.DEFAULT)},e.prototype.createFinalParams=function(t,e,o,n){void 0===n&&(n=null);var i={};M(i,o);var r=t?t[e+"Params"]:null;null!=r&&("function"==typeof r?M(i,r(o)):"object"==typeof r&&M(i,r));return M(i,n),i},e.prototype.createComponentInstance=function(t,e,o,n,i){var r,s=e.propertyName,a=this.lookupComponentClassDef(t,s,o,n);if(!a||!a.component){var l=t?t[s]:n,p=l||n;return i||console.error("Could not find component "+p+", did you forget to configure this component?"),null}if(a.componentFromFramework){var u=a.component,c=this.componentMetadataProvider.retrieve(s);r=this.frameworkComponentWrapper.wrap(u,c.mandatoryMethodList,c.optionalMethodList,e,n)}else r=new a.component;return{componentInstance:r,paramsFromSelector:a.paramsFromSelector}},e.prototype.initComponent=function(t,e){if(this.context.createBean(t),null!=t.init)return t.init(e)},Ni([nt("gridOptions")],e.prototype,"gridOptions",void 0),Ni([nt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),Ni([nt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),Ni([nt("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Ni([it("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),e=Ni([ot("userComponentFactory")],e)}(Gt);
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */var Li,Ii=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Mi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gi=function(t){function n(){return t.call(this,n.TEMPLATE)||this}return Ii(n,t),n.prototype.init=function(t){this.params=t,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(t);var e=this.isEmbeddedRowMismatch(),o=null==t.value,n=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var i=t.node;if(i.footer)n=(t.colDef&&t.colDef.showRowGroup)!==(i.rowGroupColumn&&i.rowGroupColumn.getColId())}this.cellIsBlank=e||o||n,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},n.prototype.assignBlankValueToGroupFooterCell=function(t){t.value||-1!=t.node.level||(t.value="")},n.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var t=this.params.pinned===dt.PINNED_LEFT,e=this.params.pinned===dt.PINNED_RIGHT,o=!t&&!e;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!e:!o:this.columnController.isPinningLeft()?!t:!o},n.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var t=this.params,e=t.node,o=!!!t.colDef||!0===t.colDef.showRowGroup?e.uiLevel:0;t.padding>=0?this.setPaddingDeprecatedWay(o,t.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+o,this.addCssClass(this.indentClass))}},n.prototype.setPaddingDeprecatedWay=function(t,e){U((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var o=t*e,n=this.getGui(),i=this.gridOptionsWrapper.isEnableRtl()?"paddingRight":"paddingLeft";n.style[i]=o+"px"},n.prototype.setupIndent=function(){var t=this.params.node;this.params.suppressPadding||(this.addManagedListener(t,hi.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},n.prototype.addValueElement=function(){var t=this.params,e=this.displayedGroup;e.footer?this.createFooterCell():e.hasChildren()||x(t.colDef,"cellRendererParams.innerRenderer",null)||x(t.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),this.addChildCount()):this.createLeafCell()},n.prototype.createFooterCell=function(){var t,e=this.params.footerValueGetter;if(e){var o=_(this.params);o.value=this.params.value,"function"==typeof e?t=e(o):"string"==typeof e?t=this.expressionService.evaluate(e,o):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+this.params.value;this.eValue.innerHTML=t},n.prototype.createGroupCell=function(){var t,e=this,o=this.params,n=this.displayedGroup.rowGroupColumn,i=n||o.column,r=this.params.value,s=i?this.valueFormatterService.formatValue(i,o.node,o.scope,r):null;o.valueFormatted=s,(t=o.fullWidth?this.useFullWidth(o):this.useInnerRenderer(this.params.colDef.cellRendererParams,i.getColDef(),o))&&t.then((function(t){e.innerCellRenderer=t}))},n.prototype.useInnerRenderer=function(t,e,o){var n=this,i=null,r=this.userComponentFactory.lookupComponentClassDef(t,"innerRenderer");if(r&&null!=r.component&&r.source!=Zn.DEFAULT)i=this.userComponentFactory.newInnerCellRenderer(t,o);else{var s=this.userComponentFactory.lookupComponentClassDef(e,"cellRenderer");i=s&&s.source!=Zn.DEFAULT?this.userComponentFactory.newCellRenderer(e,o):s&&s.source==Zn.DEFAULT&&x(e,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(e.cellRendererParams,o):this.userComponentFactory.newCellRenderer({},o)}return null!=i?i.then((function(t){null!=t?So(i,n.eValue):n.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value})):this.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,i},n.prototype.useFullWidth=function(t){var e=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(t);return null!=e?So(e,this.eValue):this.eValue.innerText=null!=t.valueFormatted?t.valueFormatted:t.value,e},n.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroup,hi.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},n.prototype.updateChildCount=function(){var t=this.displayedGroup.allChildrenCount,e=null!=t&&t>=0?"("+t+")":"";this.eChildCount.innerHTML=e},n.prototype.createLeafCell=function(){e(this.params.value)&&(this.eValue.innerText=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},n.prototype.isUserWantsSelected=function(){var t=this.params.checkbox;return"function"==typeof t?t(this.params):!0===t},n.prototype.addCheckboxIfNeeded=function(){var t=this,e=this.displayedGroup,o=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(o){var n=new yi;this.getContext().createBean(n),n.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc((function(){return t.getContext().destroyBean(n)}))}We(this.eCheckbox,"ag-invisible",!o)},n.prototype.addExpandAndContract=function(){var t=this.params,e=t.eGridCell,o=un("groupExpanded",this.gridOptionsWrapper,null),n=un("groupContracted",this.gridOptionsWrapper,null);xo(e,!!t.node.expanded),this.eExpanded.appendChild(o),this.eContracted.appendChild(n),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,hi.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var i=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroup,hi.EVENT_ALL_CHILDREN_COUNT_CHANGED,i),this.addManagedListener(this.displayedGroup,hi.EVENT_MASTER_CHANGED,i),this.addManagedListener(this.displayedGroup,hi.EVENT_HAS_CHILDREN_CHANGED,i),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(e,"dblclick",this.onCellDblClicked.bind(this))},n.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},n.prototype.onKeyDown=function(t){dn(t,xn.ENTER)&&!this.params.suppressEnterExpand&&(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract())},n.prototype.setupDragOpenParents=function(){var t=this.params.column,e=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.hasChildren()){var n=e.rowGroupColumn;this.draggedFromHideOpenParents=!!n&&!t.isRowGroupDisplayed(n.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var i=e.parent;!o(i);){if(i.rowGroupColumn&&t.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroup=i;break}i=i.parent}o(this.displayedGroup)&&(this.displayedGroup=e)},n.prototype.onExpandClicked=function(t){Pt(t)||(Ot(t),this.onExpandOrContract())},n.prototype.onCellDblClicked=function(t){Pt(t)||(_t(this.eExpanded,t)||_t(this.eContracted,t)||this.onExpandOrContract())},n.prototype.onExpandOrContract=function(){var t=this.displayedGroup,e=this.params,o=!t.expanded;t.setExpanded(o),xo(e.eGridCell,o)},n.prototype.isExpandable=function(){var t=this.params.node,e=this.columnController.isPivotMode()&&t.leafGroup;return this.draggedFromHideOpenParents||t.isExpandable()&&!t.footer&&!e},n.prototype.showExpandAndContractIcons=function(){var t=this,e=t.eContracted,o=t.eExpanded,n=t.params,i=t.displayedGroup,r=t.columnController,s=n.eGridCell,a=n.node;if(this.isExpandable()){var l=!!this.draggedFromHideOpenParents||a.expanded;ke(e,!l),ke(o,l)}else Vo(s),ke(o,!1),ke(e,!1);var p=r.isPivotMode()&&i.leafGroup,u=!i.isExpandable(),c=i.footer||u||p;this.addOrRemoveCssClass("ag-row-group",!c),this.addOrRemoveCssClass("ag-row-group-leaf-indent",c)},n.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),t.prototype.destroy.call(this)},n.prototype.refresh=function(){return!1},n.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>',Mi([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Mi([nt("expressionService")],n.prototype,"expressionService",void 0),Mi([nt("valueFormatterService")],n.prototype,"valueFormatterService",void 0),Mi([nt("columnController")],n.prototype,"columnController",void 0),Mi([nt("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Mi([In("eExpanded")],n.prototype,"eExpanded",void 0),Mi([In("eContracted")],n.prototype,"eContracted",void 0),Mi([In("eCheckbox")],n.prototype,"eCheckbox",void 0),Mi([In("eValue")],n.prototype,"eValue",void 0),Mi([In("eChildCount")],n.prototype,"eChildCount",void 0),n}(Fn),xi=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Vi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Wi=function(t){function o(){var e=t.call(this,o.TEMPLATE)||this;return e.refreshCount=0,e}return xi(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 n=Math.abs(o),i=t.formatValue(n),r=e(i)?i:n,s=o>=0;this.eDelta.innerHTML=s?"\u2191"+r:"\u2193"+r,We(this.eDelta,"ag-value-change-delta-up",s),We(this.eDelta,"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(){Ve(this.eValue,"ag-value-change-value-highlight"),Je(this.eDelta)},o.prototype.refresh=function(t){var o=t.value;if(o!==this.lastValue&&(e(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:e(t.value)?this.eValue.innerHTML=o:Je(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())){if("number"==typeof o&&"number"==typeof this.lastValue){var n=o-this.lastValue;this.showDelta(t,n)}return this.lastValue&&xe(this.eValue,"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>',Vi([nt("filterManager")],o.prototype,"filterManager",void 0),o}(Fn),Hi=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ki=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Bi=function(t){function n(){var e=t.call(this,n.TEMPLATE)||this;return e.refreshCount=0,e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return Hi(n,t),n.prototype.init=function(t){this.params=t,this.refresh(t)},n.prototype.addSlideAnimation=function(){var t=this;this.refreshCount++;var e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=oo('<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&&xe(t.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){e===t.refreshCount&&(t.getGui().removeChild(t.ePrevious),t.ePrevious=null)}),3e3)},n.prototype.refresh=function(t){var n=t.value;if(o(n)&&(n=""),n!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering())return this.addSlideAnimation(),this.lastValue=n,e(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:e(t.value)?this.eCurrent.innerHTML=n:Je(this.eCurrent),!0},n.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',ki([nt("filterManager")],n.prototype,"filterManager",void 0),n}(Fn),ji=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ui=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},zi=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return ji(e,t),e.prototype.init=function(t){var e=un("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(e);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=o("loadingOoo","Loading")},e.prototype.refresh=function(t){return!1},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>',Ui([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ui([In("eLoadingIcon")],e.prototype,"eLoadingIcon",void 0),Ui([In("eLoadingText")],e.prototype,"eLoadingText",void 0),e}(Fn),Ki=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Yi=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},qi=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 Ki(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=t.keyPress===xn.ENTER;var n=!1;t.values.forEach((function(o){var i={value:o},r=e.valueFormatterService.formatValue(t.column,null,null,o),s=null!=r;i.text=s?r:o,e.eSelect.addOption(i),n=n||t.value===o})),n?this.eSelect.setValue(t.value,!0):t.values.length&&this.eSelect.setValue(t.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((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},Yi([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Yi([nt("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Yi([In("eSelect")],e.prototype,"eSelect",void 0),e}(Ln),Xi=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xi(e,t),e.prototype.isPopup=function(){return!0},e}(Hn),$i=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Zi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $i(e,t),e.prototype.isPopup=function(){return!0},e}(qi),Ji=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),tr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},er=function(t){function o(){return t.call(this,o.TEMPLATE)||this}return Ji(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)&&this.eTextArea.setValue(t.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},o.prototype.onKeyDown=function(t){var e=t.which||t.keyCode;(e===xn.LEFT||e===xn.UP||e===xn.RIGHT||e===xn.DOWN||t.shiftKey&&e===xn.ENTER)&&t.stopPropagation()},o.prototype.afterGuiAttached=function(){this.eTextArea.setInputAriaLabel("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>',tr([In("eTextArea")],o.prototype,"eTextArea",void 0),o}(Ln),or=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),nr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ir=function(e){function o(){return e.call(this,"numberFilter")||this}return or(o,e),o.prototype.mapRangeFromModel=function(t){return{from:t.filter,to:t.filterTo}},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.resetUiToDefaults=function(t){var o=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){[o.eValueFrom1,o.eValueFrom2,o.eValueTo1,o.eValueTo2].forEach((function(e){return e.setValue(null,t)})),o.resetPlaceholder()}))},o.prototype.setConditionIntoUi=function(t,e){var o=e===Gn.One,n=o?this.eValueFrom1:this.eValueFrom2,i=o?this.eValueTo1:this.eValueTo2;n.setValue(t?""+t.filter:null),i.setValue(t?""+t.filterTo:null)},o.prototype.setValueFromFloatingFilter=function(t){this.eValueFrom1.setValue(t),this.eValueTo1.setValue(null),this.eValueFrom2.setValue(null),this.eValueTo2.setValue(null)},o.prototype.comparator=function(){return function(t,e){return t===e?0:t<e?1:-1}},o.prototype.setParams=function(t){this.numberFilterParams=t;var o=t.allowedCharPattern;if(o){var n={allowedCharPattern:o};this.resetTemplate({eValueFrom1:n,eValueTo1:n,eValueFrom2:n,eValueTo2:n})}e.prototype.setParams.call(this,t),this.addValueChangedListeners()},o.prototype.addValueChangedListeners=function(){var t=this,e=function(){return t.onUiChanged()};this.eValueFrom1.onValueChange(e),this.eValueTo1.onValueChange(e),this.eValueFrom2.onValueChange(e),this.eValueTo2.onValueChange(e)},o.prototype.resetPlaceholder=function(){var t=this.showValueTo(this.getCondition1Type()),e=this.showValueTo(this.getCondition2Type());this.eValueFrom1.setInputPlaceholder(this.translate(t?"inRangeStart":"filterOoo")),this.eValueFrom1.setInputAriaLabel(t?"Filter from value":"Filter value"),this.eValueTo1.setInputPlaceholder(this.translate("inRangeEnd")),this.eValueTo1.setInputAriaLabel("Filter to value"),this.eValueFrom2.setInputPlaceholder(this.translate(e?"inRangeStart":"filterOoo")),this.eValueFrom2.setInputAriaLabel(e?"Filter from value":"Filter value"),this.eValueTo2.setInputPlaceholder(this.translate("inRangeEnd")),this.eValueTo2.setInputAriaLabel("Filter to value")},o.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),t&&t.suppressFocus||this.eValueFrom1.getInputElement().focus()},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.createValueTemplate=function(t){var e=t===Gn.One?"1":"2",o=(this.numberFilterParams||{}).allowedCharPattern?"ag-input-text-field":"ag-input-number-field";return'\n            <div class="ag-filter-body" ref="eCondition'+e+'Body" role="presentation">\n                <'+o+' class="ag-filter-from ag-filter-filter" ref="eValueFrom'+e+'"></'+o+">\n                <"+o+' class="ag-filter-to ag-filter-filter" ref="eValueTo'+e+'"></'+o+">\n            </div>"},o.prototype.isConditionUiComplete=function(t){var e=t===Gn.One,o=e?this.getCondition1Type():this.getCondition2Type();if(o===Jn.EMPTY)return!1;if(this.doesFilterHaveHiddenInput(o))return!0;var n=e?this.eValueFrom1:this.eValueFrom2,i=e?this.eValueTo1:this.eValueTo2;return null!=this.stringToFloat(n.getValue())&&(!this.showValueTo(o)||null!=this.stringToFloat(i.getValue()))},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.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=t===Gn.One,o=e?this.getCondition1Type():this.getCondition2Type(),n=e?this.eValueFrom1:this.eValueFrom2,i=this.stringToFloat(n.getValue()),r={filterType:this.getFilterType(),type:o};if(!this.doesFilterHaveHiddenInput(o)&&(r.filter=i,this.showValueTo(o))){var s=e?this.eValueTo1:this.eValueTo2,a=this.stringToFloat(s.getValue());r.filterTo=a}return r},o.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),this.resetPlaceholder();var t=this.getCondition1Type(),o=this.getCondition2Type();ke(this.eValueFrom1.getGui(),this.showValueFrom(t)),ke(this.eValueTo1.getGui(),this.showValueTo(t)),ke(this.eValueFrom2.getGui(),this.showValueFrom(o)),ke(this.eValueTo2.getGui(),this.showValueTo(o))},o.DEFAULT_FILTER_OPTIONS=[ei.EQUALS,ei.NOT_EQUAL,ei.LESS_THAN,ei.LESS_THAN_OR_EQUAL,ei.GREATER_THAN,ei.GREATER_THAN_OR_EQUAL,ei.IN_RANGE],nr([In("eValueFrom1")],o.prototype,"eValueFrom1",void 0),nr([In("eValueTo1")],o.prototype,"eValueTo1",void 0),nr([In("eValueFrom2")],o.prototype,"eValueFrom2",void 0),nr([In("eValueTo2")],o.prototype,"eValueTo2",void 0),o}(ei),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),sr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ar=function(t){function e(){return t.call(this)||this}return rr(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():e.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),i=o.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(i)},e.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',sr([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(Fn),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),pr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ur=function(t){function e(){return t.call(this)||this}return lr(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():e.DEFAULT_NO_ROWS_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),i=o.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(i)},e.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',pr([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(Fn),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),dr=function(t){function e(){return t.call(this,'<div class="ag-tooltip"></div>')||this}return cr(e,t),e.prototype.init=function(t){var e=t.value;this.getGui().innerHTML=e},e}(Ln),hr=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),fr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},gr=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 hr(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var e=this;this.shouldUseBrowserDatePicker(t)&&(Pe()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.getInputElement().type="date"),this.listener=t.onDateChanged,this.addManagedListener(this.eDateInput.getInputElement(),"input",(function(t){t.target===document.activeElement&&e.listener()}))},e.prototype.getDate=function(){return Jo(this.eDateInput.getValue())},e.prototype.setDate=function(t){this.eDateInput.setValue(Zo(t,!1))},e.prototype.setInputPlaceholder=function(t){this.eDateInput.setInputPlaceholder(t)},e.prototype.shouldUseBrowserDatePicker=function(t){return t.filterParams&&null!=t.filterParams.browserDatePicker?t.filterParams.browserDatePicker:De()||Te()},fr([In("eDateInput")],e.prototype,"eDateInput",void 0),e}(Fn),yr=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),vr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yr(e,t),e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.getTextFromModel=function(t){if(!t)return null;if(t.operator){var e=t,o=this.conditionToString(e.condition1),n=this.conditionToString(e.condition2);return o+" "+e.operator+" "+n}var i=t;return this.conditionToString(i)},e.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},e.prototype.getLastType=function(){return this.lastType},e.prototype.setLastTypeFromModel=function(t){if(t){var e;if(t.operator)e=t.condition1;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 Bn,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var e=this.isTypeEditable(this.lastType);this.setEditable(e)},e.prototype.doesFilterHaveHiddenInput=function(t){var e=this.optionsFactory.getCustomOption(t);return e&&e.hideFilterInput},e.prototype.isTypeEditable=function(t){return!this.doesFilterHaveHiddenInput(t)&&t&&t!==Jn.IN_RANGE&&t!==Jn.EMPTY},e}(Fn),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},wr=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 mr(e,t),e.prototype.getDefaultFilterOptions=function(){return ii.DEFAULT_FILTER_OPTIONS},e.prototype.conditionToString=function(t){return t.type===Jn.IN_RANGE?t.dateFrom+"-"+t.dateTo:null==t.dateFrom?""+t.type:""+t.dateFrom},e.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.createDateComponent(),this.eReadOnlyText.setDisabled(!0).setInputAriaLabel("Date Filter Input")},e.prototype.setEditable=function(t){ke(this.eDateWrapper,t),ke(this.eReadOnlyText.getGui(),!t)},e.prototype.onParentModelChanged=function(e,o){if(!this.isEventFromFloatingFilter(o)){t.prototype.setLastTypeFromModel.call(this,e);var n=this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(n),n){if(e){var i=e;this.dateComp.setDate(Jo(i.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(e)),this.dateComp.setDate(null)}},e.prototype.onDateChanged=function(){var t=this,e=Zo(this.dateComp.getDate());this.params.parentFilterInstance((function(o){o&&o.onFloatingFilterChanged(t.getLastType(),e)}))},e.prototype.createDateComponent=function(){var t=this,e=Xn.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:Q(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new kn(this.getContext(),this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc((function(){return t.dateComp.destroy()}))},Cr([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Cr([In("eReadOnlyText")],e.prototype,"eReadOnlyText",void 0),Cr([In("eDateWrapper")],e.prototype,"eDateWrapper",void 0),e}(vr),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Rr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Or=function(e){function o(){return e.call(this,"textFilter")||this}return Er(o,e),o.cleanInput=function(t){var e=t&&t.trim();return""===e?t:e},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.getCleanValue=function(e){return o.cleanInput(t(e.getValue()))},o.prototype.addValueChangedListeners=function(){var t=this,e=function(){return t.onUiChanged()};this.eValue1.onValueChange(e),this.eValue2.onValueChange(e)},o.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.textFilterParams=t,this.comparator=this.textFilterParams.textCustomComparator||o.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter||(1==this.textFilterParams.caseSensitive?o.DEFAULT_FORMATTER:o.DEFAULT_LOWERCASE_FORMATTER),this.addValueChangedListeners()},o.prototype.setConditionIntoUi=function(t,e){(e===Gn.One?this.eValue1:this.eValue2).setValue(t?t.filter:null)},o.prototype.createCondition=function(t){var e=t===Gn.One,o=e?this.getCondition1Type():this.getCondition2Type(),n=e?this.eValue1:this.eValue2,i=this.getCleanValue(n);n.setValue(i,!0);var r={filterType:this.getFilterType(),type:o};return this.doesFilterHaveHiddenInput(o)||(r.filter=i),r},o.prototype.getFilterType=function(){return"text"},o.prototype.areSimpleModelsEqual=function(t,e){return t.filter===e.filter&&t.type===e.type},o.prototype.resetUiToDefaults=function(t){var o=this;return e.prototype.resetUiToDefaults.call(this,t).then((function(){o.forEachInput((function(e){return e.setValue(null,t)})),o.resetPlaceholder()}))},o.prototype.resetPlaceholder=function(){var t=this.translate("filterOoo");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel("Filter value")}))},o.prototype.forEachInput=function(t){P([this.eValue1,this.eValue2],t)},o.prototype.setValueFromFloatingFilter=function(t){this.eValue1.setValue(t),this.eValue2.setValue(null)},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.createValueTemplate=function(t){var e=t===Gn.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+e+'Body" role="presentation">\n                <ag-input-text-field class="ag-filter-filter" ref="eValue'+e+'"></ag-input-text-field>\n            </div>'},o.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this),ke(this.eCondition1Body,this.showValueFrom(this.getCondition1Type())),ke(this.eCondition2Body,this.isCondition2Enabled()&&this.showValueFrom(this.getCondition2Type()))},o.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),t&&t.suppressFocus||this.eValue1.getInputElement().focus()},o.prototype.isConditionUiComplete=function(t){var e=t===Gn.One,o=e?this.getCondition1Type():this.getCondition2Type();return o!==Jn.EMPTY&&(!!this.doesFilterHaveHiddenInput(o)||null!=this.getCleanValue(e?this.eValue1:this.eValue2))},o.prototype.individualConditionPasses=function(t,e){var o=e.filter,n=e.type,i=this.textFilterParams.valueGetter(t.node),r=this.formatter(i),s=this.optionsFactory.getCustomOption(n);if(s&&(null!=o||s.hideFilterInput))return s.test(o,r);if(null==i)return n===Jn.NOT_EQUAL||n===Jn.NOT_CONTAINS;var a=this.formatter(o);return this.comparator(n,r,a)},o.DEFAULT_FILTER_OPTIONS=[Jn.CONTAINS,Jn.NOT_CONTAINS,Jn.EQUALS,Jn.NOT_EQUAL,Jn.STARTS_WITH,Jn.ENDS_WITH],o.DEFAULT_FORMATTER=function(t){return t},o.DEFAULT_LOWERCASE_FORMATTER=function(t){return null==t?null:t.toString().toLowerCase()},o.DEFAULT_COMPARATOR=function(t,e,n){switch(t){case o.CONTAINS:return e.indexOf(n)>=0;case o.NOT_CONTAINS:return e.indexOf(n)<0;case o.EQUALS:return e===n;case o.NOT_EQUAL:return e!=n;case o.STARTS_WITH:return 0===e.indexOf(n);case o.ENDS_WITH:var i=e.lastIndexOf(n);return i>=0&&i===e.length-n.length;default:return console.warn("invalid filter type "+t),!1}},Rr([In("eValue1")],o.prototype,"eValue1",void 0),Rr([In("eValue2")],o.prototype,"eValue2",void 0),o}(Jn),Pr=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),br=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pr(e,t),e.prototype.postConstruct=function(){this.setTemplate('\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n            </div>')},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.onParentModelChanged=function(t,e){this.isEventFromFloatingFilter(e)||(this.setLastTypeFromModel(t),this.eFloatingFilterInput.setValue(this.getTextFromModel(t)),this.setEditable(this.canWeEditAfterModelFromParentFilter(t)))},e.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.applyActive=Xn.isUseApplyButton(this.params.filterParams);var o=Xn.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n=Q(this.syncUpWithParentFilter.bind(this),o),i=this.eFloatingFilterInput.getGui();this.addManagedListener(i,"input",n),this.addManagedListener(i,"keypress",n),this.addManagedListener(i,"keydown",n);var r=e.column.getDefinition();r.filterParams&&r.filterParams.filterOptions&&1===r.filterParams.filterOptions.length&&"inRange"===r.filterParams.filterOptions[0]&&this.eFloatingFilterInput.setDisabled(!0);var s=this.columnController.getDisplayNameForColumn(e.column,"header",!0);this.eFloatingFilterInput.setInputAriaLabel(s+" Filter Input")},e.prototype.syncUpWithParentFilter=function(t){var e=this,o=dn(t,xn.ENTER);if(!this.applyActive||o){var n=Or.cleanInput(this.eFloatingFilterInput.getValue());this.eFloatingFilterInput.setValue(n,!0),this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(e.getLastType(),n)}))}},e.prototype.setEditable=function(t){this.eFloatingFilterInput.setDisabled(!t)},br([nt("columnController")],e.prototype,"columnController",void 0),br([In("eFloatingFilterInput")],e.prototype,"eFloatingFilterInput",void 0),br([tt],e.prototype,"postConstruct",null),e}(vr),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dr(e,t),e.prototype.getDefaultFilterOptions=function(){return ir.DEFAULT_FILTER_OPTIONS},e.prototype.conditionToString=function(t){return t.type==Jn.IN_RANGE?t.filter+"-"+t.filterTo:null!=t.filter?""+t.filter:""+t.type},e}(Sr),_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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ar=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _r(e,t),e.prototype.conditionToString=function(t){return null!=t.filter?""+t.filter:""+t.type},e.prototype.getDefaultFilterOptions=function(){return Or.DEFAULT_FILTER_OPTIONS},e}(Sr),Fr=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Nr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.REGISTERED=1]="REGISTERED"}(Li||(Li={}));!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:gr,agColumnHeader:li,agColumnGroupHeader:ci,agTextColumnFloatingFilter:Ar,agNumberColumnFloatingFilter:Tr,agDateColumnFloatingFilter:wr,agAnimateShowChangeCellRenderer:Wi,agAnimateSlideCellRenderer:Bi,agGroupCellRenderer:Gi,agGroupRowRenderer:Gi,agLoadingCellRenderer:zi,agCellEditor:Hn,agTextCellEditor:Hn,agSelectCellEditor:qi,agPopupTextCellEditor:Qi,agPopupSelectCellEditor:Zi,agLargeTextCellEditor:er,agTextColumnFilter:Or,agNumberColumnFilter:ir,agDateColumnFilter:ii,agLoadingOverlay:ar,agNoRowsOverlay:ur,agTooltipComponent:dr},e.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},e.jsComponents={},e.frameworkComponents={},e}Fr(e,t),e.prototype.init=function(){var t=this;null!=this.gridOptions.components&&T(this.gridOptions.components,(function(e,o){return t.registerComponent(e,o)})),null!=this.gridOptions.frameworkComponents&&T(this.gridOptions.frameworkComponents,(function(e,o){return t.registerFwComponent(e,o)}))},e.prototype.registerDefaultComponent=function(t,e){var o=this.translateIfDeprecated(t);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=e},e.prototype.registerComponent=function(t,e){var o=this.translateIfDeprecated(t);this.frameworkComponents[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComponents[o]=e},e.prototype.registerFwComponent=function(t,e){var o=this.translateIfDeprecated(t);this.jsComponents[o]?console.error("Trying to register a component that you have already registered for plain javascript: "+o):this.frameworkComponents[o]=e},e.prototype.retrieve=function(t){var e=this.translateIfDeprecated(t),o=this.frameworkComponents[e];if(o)return{componentFromFramework:!0,component:o,source:Li.REGISTERED};var n=this.jsComponents[e];if(n)return{componentFromFramework:!1,component:n,source:Li.REGISTERED};var i=this.agGridDefaults[e];return i?{componentFromFramework:!1,component:i,source:Li.DEFAULT}:(Object.keys(this.agGridDefaults).indexOf(e)<0&&console.warn("ag-Grid: Looking for component ["+e+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(t){var e=this.agDeprecatedNames[t];return null!=e?(U((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+e.propertyHolder+":"+t+" to "+e.propertyHolder+":"+e.newComponentName)}),"DEPRECATE_COMPONENT_"+t),e.newComponentName):t},Nr([nt("gridOptions")],e.prototype,"gridOptions",void 0),Nr([tt],e.prototype,"init",null),e=Nr([ot("userComponentRegistry")],e)}(Gt);
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */var Lr=function(){function t(){}return t.parse=function(e){if(!e)return null;if(!0===e)return{toolPanels:[t.DEFAULT_COLUMN_COMP,t.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof e)return t.parse([e]);if(Array.isArray(e)){var o=[];return e.forEach((function(e){var n=t.DEFAULT_BY_KEY[e];n?o.push(n):console.warn("ag-grid: the key "+e+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:t.parseComponents(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position}},t.parseComponents=function(e){var o=[];return e.forEach((function(e){var n=null;if("string"==typeof e){var i=t.DEFAULT_BY_KEY[e];if(!i)return void console.warn("ag-grid: the key "+e+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","));n=i}else n=e;o.push(n)})),o},t.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},t.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},t.DEFAULT_BY_KEY={columns:t.DEFAULT_COLUMN_COMP,filters:t.DEFAULT_FILTER_COMP},t}(),Ir=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Mr=function(t,e){return function(o,n){e(o,n,t)}},Gr=function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<o;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,i++)n[i]=r[s];return n};function xr(t){return!0===t||"true"===t}var Vr,Wr,Hr=function(){function t(){this.propertyEventService=new ct,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[],this.destroyed=!1}var n;return n=t,t.prototype.agWire=function(t,e){this.gridOptions.api=t,this.gridOptions.columnApi=e,this.checkForDeprecated(),this.checkForViolations()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.removeEventListener(n.PROP_DOM_LAYOUT,this.updateLayoutClassesListener),this.destroyed=!0},t.prototype.init=function(){var t=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=Lr.parse(this.gridOptions.sideBar));var o=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),o),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("ag-Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isRowModelServerSide()){var i=function(t){return"ag-Grid: '"+t+"' is not supported on the Server-Side Row Model"};e(this.gridOptions.groupDefaultExpanded)&&console.warn(i("groupDefaultExpanded")),e(this.gridOptions.groupDefaultExpanded)&&console.warn(i("groupIncludeFooter")),e(this.gridOptions.groupDefaultExpanded)&&console.warn(i("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&ht.assertRegistered(lt.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("ag-Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var r=function(e){t.gridOptions.icons&&t.gridOptions.icons[e]&&console.warn("gridOptions.icons."+e+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};r("radioButtonOff"),r("radioButtonOn"),r("checkboxChecked"),r("checkboxUnchecked"),r("checkboxIndeterminate"),this.updateLayoutClassesListener=this.updateLayoutClasses.bind(this),this.addEventListener(n.PROP_DOM_LAYOUT,this.updateLayoutClassesListener),this.getScrollbarWidth()},t.prototype.checkColumnDefProperties=function(){var t=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(e){var o=Object.getOwnPropertyNames(e),n=Gr(ge.ALL_PROPERTIES,ge.FRAMEWORK_PROPERTIES);t.checkProperties(o,n,n,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},t.prototype.checkGridOptionsProperties=function(){var t=Object.getOwnPropertyNames(this.gridOptions),e=Gr(ce.ALL_PROPERTIES,ce.FRAMEWORK_PROPERTIES,l(Ht).map((function(t){return he.getCallbackForEvent(t)}))),o=Gr(e,["api","columnApi"]);this.checkProperties(t,o,e,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},t.prototype.checkProperties=function(t,e,o,n,i){var r=en(t,e,o);T(r,(function(t,e){console.warn("ag-grid: invalid "+n+" 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 "+n+" properties please check: "+i)},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,n){var i=this.getDomDataKey(),r=t[i];o(r)&&(r={},t[i]=r),r[e]=n},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.isSuppressRowDeselection=function(){return xr(this.gridOptions.suppressRowDeselection)},t.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},t.prototype.isRowMultiSelectWithClick=function(){return xr(this.gridOptions.rowMultiSelectWithClick)},t.prototype.getContext=function(){return this.gridOptions.context},t.prototype.isPivotMode=function(){return xr(this.gridOptions.pivotMode)},t.prototype.isSuppressExpandablePivotGroups=function(){return xr(this.gridOptions.suppressExpandablePivotGroups)},t.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},t.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},t.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===dt.ROW_MODEL_TYPE_INFINITE},t.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===dt.ROW_MODEL_TYPE_VIEWPORT},t.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===dt.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.isRowModelDefault=function(){return o(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===dt.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},t.prototype.isSuppressFocusAfterRefresh=function(){return xr(this.gridOptions.suppressFocusAfterRefresh)},t.prototype.isSuppressBrowserResizeObserver=function(){return xr(this.gridOptions.suppressBrowserResizeObserver)},t.prototype.isSuppressMaintainUnsortedOrder=function(){return xr(this.gridOptions.suppressMaintainUnsortedOrder)},t.prototype.isSuppressClearOnFillReduction=function(){return xr(this.gridOptions.suppressClearOnFillReduction)},t.prototype.isShowToolPanel=function(){return xr(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.isSuppressTouch=function(){return xr(this.gridOptions.suppressTouch)},t.prototype.isApplyColumnDefOrder=function(){return xr(this.gridOptions.applyColumnDefOrder)},t.prototype.isSuppressRowTransform=function(){return xr(this.gridOptions.suppressRowTransform)},t.prototype.isSuppressColumnStateEvents=function(){return xr(this.gridOptions.suppressColumnStateEvents)},t.prototype.isAllowDragFromColumnsToolPanel=function(){return xr(this.gridOptions.allowDragFromColumnsToolPanel)},t.prototype.useAsyncEvents=function(){return!xr(this.gridOptions.suppressAsyncEvents)},t.prototype.isEnableCellChangeFlash=function(){return xr(this.gridOptions.enableCellChangeFlash)},t.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},t.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},t.prototype.isGroupSelectsChildren=function(){var t=xr(this.gridOptions.groupSelectsChildren);return t&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):t},t.prototype.isSuppressRowHoverHighlight=function(){return xr(this.gridOptions.suppressRowHoverHighlight)},t.prototype.isGroupSelectsFiltered=function(){return xr(this.gridOptions.groupSelectsFiltered)},t.prototype.isGroupHideOpenParents=function(){return xr(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupMultiAutoColumn=function(){return xr(this.gridOptions.groupMultiAutoColumn)||xr(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupRemoveSingleChildren=function(){return xr(this.gridOptions.groupRemoveSingleChildren)},t.prototype.isGroupRemoveLowestSingleChildren=function(){return xr(this.gridOptions.groupRemoveLowestSingleChildren)},t.prototype.isGroupIncludeFooter=function(){return xr(this.gridOptions.groupIncludeFooter)},t.prototype.isGroupIncludeTotalFooter=function(){return xr(this.gridOptions.groupIncludeTotalFooter)},t.prototype.isGroupSuppressBlankHeader=function(){return xr(this.gridOptions.groupSuppressBlankHeader)},t.prototype.isSuppressRowClickSelection=function(){return xr(this.gridOptions.suppressRowClickSelection)},t.prototype.isSuppressCellSelection=function(){return xr(this.gridOptions.suppressCellSelection)},t.prototype.isSuppressMultiSort=function(){return xr(this.gridOptions.suppressMultiSort)},t.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},t.prototype.isGroupSuppressAutoColumn=function(){return xr(this.gridOptions.groupSuppressAutoColumn)},t.prototype.isPivotSuppressAutoColumn=function(){return xr(this.gridOptions.pivotSuppressAutoColumn)},t.prototype.isSuppressDragLeaveHidesColumns=function(){return xr(this.gridOptions.suppressDragLeaveHidesColumns)},t.prototype.isSuppressScrollOnNewData=function(){return xr(this.gridOptions.suppressScrollOnNewData)},t.prototype.isRowDragManaged=function(){return xr(this.gridOptions.rowDragManaged)},t.prototype.isSuppressRowDrag=function(){return xr(this.gridOptions.suppressRowDrag)},t.prototype.isSuppressMoveWhenRowDragging=function(){return xr(this.gridOptions.suppressMoveWhenRowDragging)},t.prototype.isEnableMultiRowDragging=function(){return xr(this.gridOptions.enableMultiRowDragging)},t.prototype.getDomLayout=function(){var t=this.gridOptions.domLayout||dt.DOM_LAYOUT_NORMAL;return-1===[dt.DOM_LAYOUT_PRINT,dt.DOM_LAYOUT_AUTO_HEIGHT,dt.DOM_LAYOUT_NORMAL].indexOf(t)?(U((function(){return console.warn("ag-Grid: "+t+" is not valid for DOM Layout, valid values are "+dt.DOM_LAYOUT_NORMAL+", "+dt.DOM_LAYOUT_AUTO_HEIGHT+" and "+dt.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),dt.DOM_LAYOUT_NORMAL):t},t.prototype.isSuppressHorizontalScroll=function(){return xr(this.gridOptions.suppressHorizontalScroll)},t.prototype.isSuppressMaxRenderedRowRestriction=function(){return xr(this.gridOptions.suppressMaxRenderedRowRestriction)},t.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return xr(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},t.prototype.isAlwaysShowVerticalScroll=function(){return xr(this.gridOptions.alwaysShowVerticalScroll)},t.prototype.isDebounceVerticalScrollbar=function(){return xr(this.gridOptions.debounceVerticalScrollbar)},t.prototype.isSuppressLoadingOverlay=function(){return xr(this.gridOptions.suppressLoadingOverlay)},t.prototype.isSuppressNoRowsOverlay=function(){return xr(this.gridOptions.suppressNoRowsOverlay)},t.prototype.isSuppressFieldDotNotation=function(){return xr(this.gridOptions.suppressFieldDotNotation)},t.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},t.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},t.prototype.isFunctionsPassive=function(){return xr(this.gridOptions.functionsPassive)},t.prototype.isSuppressChangeDetection=function(){return xr(this.gridOptions.suppressChangeDetection)},t.prototype.isSuppressAnimationFrame=function(){return xr(this.gridOptions.suppressAnimationFrame)},t.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},t.prototype.isCacheQuickFilter=function(){return xr(this.gridOptions.cacheQuickFilter)},t.prototype.isUnSortIcon=function(){return xr(this.gridOptions.unSortIcon)},t.prototype.isSuppressMenuHide=function(){return xr(this.gridOptions.suppressMenuHide)},t.prototype.isEnterMovesDownAfterEdit=function(){return xr(this.gridOptions.enterMovesDownAfterEdit)},t.prototype.isEnterMovesDown=function(){return xr(this.gridOptions.enterMovesDown)},t.prototype.isUndoRedoCellEditing=function(){return xr(this.gridOptions.undoRedoCellEditing)},t.prototype.getUndoRedoCellEditingLimit=function(){return this.gridOptions.undoRedoCellEditingLimit},t.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},t.prototype.getRowClass=function(){return this.gridOptions.rowClass},t.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},t.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},t.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},t.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},t.prototype.getPopupParent=function(){return this.gridOptions.popupParent},t.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},t.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},t.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},t.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},t.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},t.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},t.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},t.prototype.isEmbedFullWidthRows=function(){return xr(this.gridOptions.embedFullWidthRows)||xr(this.gridOptions.deprecatedEmbedFullWidthRows)},t.prototype.isDetailRowAutoHeight=function(){return xr(this.gridOptions.detailRowAutoHeight)},t.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},t.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},t.prototype.getApi=function(){return this.gridOptions.api},t.prototype.getColumnApi=function(){return this.gridOptions.columnApi},t.prototype.isImmutableData=function(){return xr(this.gridOptions.immutableData)},t.prototype.isEnsureDomOrder=function(){return xr(this.gridOptions.ensureDomOrder)},t.prototype.isEnableCharts=function(){return!!xr(this.gridOptions.enableCharts)&&ht.assertRegistered(lt.GridChartsModule,"enableCharts")},t.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},t.prototype.isSingleClickEdit=function(){return xr(this.gridOptions.singleClickEdit)},t.prototype.isSuppressClickEdit=function(){return xr(this.gridOptions.suppressClickEdit)},t.prototype.isStopEditingWhenGridLosesFocus=function(){return xr(this.gridOptions.stopEditingWhenGridLosesFocus)},t.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},t.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},t.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},t.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},t.prototype.getPaginationPageSize=function(){return"number"==typeof(t=this.gridOptions.paginationPageSize)?t:"string"==typeof t?parseInt(t,10):void 0;var t},t.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||xr(this.gridOptions.paginateChildRows)},t.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},t.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},t.prototype.isPurgeClosedRowNodes=function(){return xr(this.gridOptions.purgeClosedRowNodes)},t.prototype.isSuppressPaginationPanel=function(){return xr(this.gridOptions.suppressPaginationPanel)},t.prototype.getRowData=function(){return this.gridOptions.rowData},t.prototype.isGroupUseEntireRow=function(t){return!t&&xr(this.gridOptions.groupUseEntireRow)},t.prototype.isEnableRtl=function(){return xr(this.gridOptions.enableRtl)},t.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},t.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},t.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},t.prototype.isAngularCompileRows=function(){return xr(this.gridOptions.angularCompileRows)},t.prototype.isAngularCompileFilters=function(){return xr(this.gridOptions.angularCompileFilters)},t.prototype.isDebug=function(){return xr(this.gridOptions.debug)},t.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},t.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},t.prototype.getDatasource=function(){return this.gridOptions.datasource},t.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},t.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},t.prototype.isAccentedSort=function(){return xr(this.gridOptions.accentedSort)},t.prototype.isEnableBrowserTooltips=function(){return xr(this.gridOptions.enableBrowserTooltips)},t.prototype.isEnableCellExpressions=function(){return xr(this.gridOptions.enableCellExpressions)},t.prototype.isEnableGroupEdit=function(){return xr(this.gridOptions.enableGroupEdit)},t.prototype.isSuppressMiddleClickScrolls=function(){return xr(this.gridOptions.suppressMiddleClickScrolls)},t.prototype.isPreventDefaultOnContextMenu=function(){return xr(this.gridOptions.preventDefaultOnContextMenu)},t.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return xr(this.gridOptions.suppressPreventDefaultOnMouseWheel)},t.prototype.isSuppressColumnVirtualisation=function(){return xr(this.gridOptions.suppressColumnVirtualisation)},t.prototype.isSuppressContextMenu=function(){return xr(this.gridOptions.suppressContextMenu)},t.prototype.isAllowContextMenuWithControlKey=function(){return xr(this.gridOptions.allowContextMenuWithControlKey)},t.prototype.isSuppressCopyRowsToClipboard=function(){return xr(this.gridOptions.suppressCopyRowsToClipboard)},t.prototype.isCopyHeadersToClipboard=function(){return xr(this.gridOptions.copyHeadersToClipboard)},t.prototype.isSuppressClipboardPaste=function(){return xr(this.gridOptions.suppressClipboardPaste)},t.prototype.isSuppressLastEmptyLineOnPaste=function(){return xr(this.gridOptions.suppressLastEmptyLineOnPaste)},t.prototype.isPagination=function(){return xr(this.gridOptions.pagination)},t.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return xr(this.gridOptions.suppressEnterpriseResetOnNewColumns)},t.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},t.prototype.getAsyncTransactionWaitMillis=function(){return e(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:dt.BATCH_WAIT_MILLIS},t.prototype.isSuppressMovableColumns=function(){return xr(this.gridOptions.suppressMovableColumns)},t.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&xr(this.gridOptions.animateRows)},t.prototype.isSuppressColumnMoveAnimation=function(){return xr(this.gridOptions.suppressColumnMoveAnimation)},t.prototype.isSuppressAggFuncInHeader=function(){return xr(this.gridOptions.suppressAggFuncInHeader)},t.prototype.isSuppressAggAtRootLevel=function(){return xr(this.gridOptions.suppressAggAtRootLevel)},t.prototype.isEnableRangeSelection=function(){return ht.isRegistered(lt.RangeSelectionModule)&&xr(this.gridOptions.enableRangeSelection)},t.prototype.isEnableRangeHandle=function(){return xr(this.gridOptions.enableRangeHandle)},t.prototype.isEnableFillHandle=function(){return xr(this.gridOptions.enableFillHandle)},t.prototype.getFillHandleDirection=function(){var t=this.gridOptions.fillHandleDirection;return t?"x"!==t&&"y"!==t&&"xy"!==t?(U((function(){return console.warn("ag-Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):t:"xy"},t.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},t.prototype.isSuppressMultiRangeSelection=function(){return xr(this.gridOptions.suppressMultiRangeSelection)},t.prototype.isPaginationAutoPageSize=function(){return xr(this.gridOptions.paginationAutoPageSize)},t.prototype.isRememberGroupStateWhenNewData=function(){return xr(this.gridOptions.rememberGroupStateWhenNewData)},t.prototype.getIcons=function(){return this.gridOptions.icons},t.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},t.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},t.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},t.prototype.isMasterDetail=function(){return!!xr(this.gridOptions.masterDetail)&&ht.assertRegistered(lt.MasterDetailModule,"masterDetail")},t.prototype.isKeepDetailRows=function(){return xr(this.gridOptions.keepDetailRows)},t.prototype.getKeepDetailRowsCount=function(){return this.gridOptions.keepDetailRowsCount>0?this.gridOptions.keepDetailRowsCount:10},t.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},t.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},t.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},t.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},t.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},t.prototype.isSuppressAutoSize=function(){return xr(this.gridOptions.suppressAutoSize)},t.prototype.isEnableCellTextSelection=function(){return xr(this.gridOptions.enableCellTextSelection)},t.prototype.isSuppressParentsInRowNodes=function(){return xr(this.gridOptions.suppressParentsInRowNodes)},t.prototype.isFunctionsReadOnly=function(){return xr(this.gridOptions.functionsReadOnly)},t.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},t.prototype.isEnableCellTextSelect=function(){return xr(this.gridOptions.enableCellTextSelection)},t.prototype.isEnableOldSetFilterModel=function(){return xr(this.gridOptions.enableOldSetFilterModel)},t.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},t.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},t.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},t.prototype.isSuppressCsvExport=function(){return xr(this.gridOptions.suppressCsvExport)},t.prototype.isAllowShowChangeAfterFilter=function(){return xr(this.gridOptions.allowShowChangeAfterFilter)},t.prototype.isSuppressExcelExport=function(){return xr(this.gridOptions.suppressExcelExport)},t.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return xr(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},t.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},t.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},t.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},t.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},t.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},t.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},t.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},t.prototype.getNavigateToNextHeaderFunc=function(){return this.gridOptions.navigateToNextHeader},t.prototype.getTabToNextHeaderFunc=function(){return this.gridOptions.tabToNextHeader},t.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},t.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},t.prototype.isTreeData=function(){return!!xr(this.gridOptions.treeData)&&ht.assertRegistered(lt.RowGroupingModule,"Tree Data")},t.prototype.isValueCache=function(){return xr(this.gridOptions.valueCache)},t.prototype.isValueCacheNeverExpires=function(){return xr(this.gridOptions.valueCacheNeverExpires)},t.prototype.isDeltaSort=function(){return xr(this.gridOptions.deltaSort)},t.prototype.isAggregateOnlyChangedColumns=function(){return xr(this.gridOptions.aggregateOnlyChangedColumns)},t.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},t.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},t.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},t.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},t.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},t.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},t.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},t.prototype.getViewportRowModelPageSize=function(){return t=this.gridOptions.viewportRowModelPageSize,e=5,t>0?t:e;var t,e},t.prototype.getViewportRowModelBufferSize=function(){return t=this.gridOptions.viewportRowModelBufferSize,e=5,t>=0?t:e;var t,e},t.prototype.isServerSideSortingAlwaysResets=function(){return xr(this.gridOptions.serverSideSortingAlwaysResets)},t.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},t.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},t.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},t.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},t.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},t.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},t.prototype.getClipboardDeliminator=function(){return e(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},t.prototype.setProperty=function(t,e,o){void 0===o&&(o=!1);var n=this.gridOptions,i=n[t];if(o||i!==e){n[t]=e;var r={type:t,currentValue:e,previousValue:i};this.propertyEventService.dispatchEvent(r)}},t.prototype.addLayoutElement=function(t){this.layoutElements.push(t),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var t=this.getDomLayout(),e=t===dt.DOM_LAYOUT_AUTO_HEIGHT,o=t===dt.DOM_LAYOUT_PRINT,n=t===dt.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(t){We(t,"ag-layout-auto-height",e),We(t,"ag-layout-normal",n),We(t,"ag-layout-print",o)}))},t.prototype.addEventListener=function(t,e){this.propertyEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.propertyEventService.removeEventListener(t,e)},t.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},t.prototype.getAutoSizePadding=function(){var t=this.gridOptions.autoSizePadding;return null!=t&&t>=0?t:20},t.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},t.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},t.prototype.doesExternalFilterPass=function(t){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(t)},t.prototype.getTooltipShowDelay=function(){var t=this.gridOptions.tooltipShowDelay;return e(t)?(t<0&&console.warn("ag-grid: tooltipShowDelay should not be lower than 0"),Math.max(200,t)):null},t.prototype.isTooltipMouseTrack=function(){return xr(this.gridOptions.tooltipMouseTrack)},t.prototype.getDocument=function(){var t=null;return this.gridOptions.getDocument&&e(this.gridOptions.getDocument)&&(t=this.gridOptions.getDocument()),t&&e(t)?t:document},t.prototype.getMinColWidth=function(){if(this.gridOptions.minColWidth>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var t=this.getFromTheme(null,"headerCellMinWidth");return Math.max(t,n.MIN_COL_WIDTH)},t.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},t.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},t.prototype.getRowBuffer=function(){var t=this.gridOptions.rowBuffer;return"number"==typeof t?t<0&&(U((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=t=0):t=dt.ROW_BUFFER_SIZE,t},t.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},t.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var t="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:Ne();null!=t&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:Ht.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.checkForDeprecated=function(){var t=this.gridOptions;t.deprecatedEmbedFullWidthRows&&console.warn("ag-Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.enableOldSetFilterModel&&console.warn("ag-Grid: since v22.x, enableOldSetFilterModel is deprecated. Please move to the new Set Filter Model as the old one may not be supported in v23 onwards."),t.floatingFilter&&(console.warn("ag-Grid: since v23.1, floatingFilter on the gridOptions is deprecated. Please use floatingFilter on the colDef instead."),t.defaultColDef||(t.defaultColDef={}),null==t.defaultColDef.floatingFilter&&(t.defaultColDef.floatingFilter=!0)),t.rowDeselection&&console.warn("ag-Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected.");var e=function(e,o,n){null!=t[e]&&(console.warn("ag-grid: since version "+n+", '"+e+"' is deprecated / renamed, please use the new property name '"+o+"' instead."),null==t[o]&&(t[o]=t[e]))};if(e("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),e("deltaRowDataMode","immutableData","23.1.x"),(t.immutableColumns||t.deltaColumnMode)&&console.warn("ag-Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),e("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),t.groupRowInnerRenderer||t.groupRowInnerRendererParams||t.groupRowInnerRendererFramework){console.warn("ag-Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn("  Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn("  For example instead of this:"),console.warn('    groupRowInnerRenderer: "myRenderer"'),console.warn("    groupRowInnerRendererParams: {x: a}"),console.warn("  Replace with this:"),console.warn("    groupRowRendererParams: {"),console.warn('      innerRenderer: "myRenderer",'),console.warn("      innerRendererParams: {x: a}"),console.warn("    }"),console.warn("  We have copied the properties over for you. However to stop this error message, please change your application code."),t.groupRowRendererParams||(t.groupRowRendererParams={});var o=t.groupRowRendererParams;t.groupRowInnerRenderer&&(o.innerRenderer=t.groupRowInnerRenderer),t.groupRowInnerRendererParams&&(o.innerRendererParams=t.groupRowInnerRendererParams),t.groupRowInnerRendererFramework&&(o.innerRendererFramework=t.groupRowInnerRendererFramework)}t.rememberGroupStateWhenNewData&&console.warn("ag-Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),t.detailCellRendererParams&&t.detailCellRendererParams.autoHeight&&(console.warn("ag-Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),t.detailRowAutoHeight=!0),t.suppressKeyboardEvent&&console.warn("ag-Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n                 future versions of ag-Grid. If you need this to be set for every column use the defaultColDef property.")},t.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.isRowModelDefault()&&o(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(o(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),o(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},t.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var t=this.gridOptions.localeText;return function(e,o){return t&&t[e]?t[e]:o}},t.prototype.globalEventHandler=function(t,e){if(!this.destroyed){var o=he.getCallbackForEvent(t);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](e)}},t.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||o(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},t.prototype.getRowHeightForNode=function(t,e){if(void 0===e&&(e=!1),"function"==typeof this.gridOptions.getRowHeight){if(e)return{height:this.getDefaultRowHeight(),estimated:!0};var o={node:t,data:t.data,api:this.gridOptions.api,context:this.gridOptions.context},n=this.gridOptions.getRowHeight(o);if(this.isNumeric(n))return{height:n,estimated:!1}}if(t.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var i=this.getDefaultRowHeight(),r=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:i,s=Math.min(i,r);if(this.columnController.isAutoRowHeightActive()){if(e)return{height:r,estimated:!0};var a=this.autoHeightCalculator.getPreferredHeightForRow(t);return{height:Math.max(a,s),estimated:!1}}return{height:r,estimated:!1}},t.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},t.prototype.isNumeric=function(t){return!isNaN(t)&&"number"==typeof t&&isFinite(t)},t.prototype.getFromTheme=function(t,e){var o=this.environment.getTheme().theme;return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,e):t},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},t.MIN_COL_WIDTH=10,t.PROP_HEADER_HEIGHT="headerHeight",t.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",t.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",t.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",t.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",t.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",t.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",t.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",t.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",t.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",t.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",t.PROP_POPUP_PARENT="popupParent",t.PROP_DOM_LAYOUT="domLayout",t.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",Ir([nt("gridOptions")],t.prototype,"gridOptions",void 0),Ir([nt("columnController")],t.prototype,"columnController",void 0),Ir([nt("eventService")],t.prototype,"eventService",void 0),Ir([nt("environment")],t.prototype,"environment",void 0),Ir([nt("autoHeightCalculator")],t.prototype,"autoHeightCalculator",void 0),Ir([Mr(0,st("gridApi")),Mr(1,st("columnApi"))],t.prototype,"agWire",null),Ir([et],t.prototype,"destroy",null),Ir([tt],t.prototype,"init",null),t=n=Ir([ot("gridOptionsWrapper")],t)}(),kr=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 n=0;n<t.childrenAfterGroup.length;n++){var i=t.childrenAfterGroup[n];i.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[n],e,o):o&&e(i)}e(t)},t.prototype.forEachChangedNodeDepthFirst=function(t,e){void 0===e&&(e=!1),this.active?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 n={rowNode:e,children:null};this.mapToItems[e.id]=n,o++,e=e.parent}return o},t.prototype.populateColumnsMap=function(t,e){var o=this;if(this.keepingColumns&&e)for(var n=t;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),e.forEach((function(t){return o.nodeIdsToColumns[n.id][t.getId()]=!0})),n=n.parent},t.prototype.linkPathItems=function(t,e){for(var o=t,n=0;n<e;n++){var i=this.mapToItems[o.id],r=this.mapToItems[o.parent.id];r.children||(r.children=[]),r.children.push(i),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}(),Br=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),jr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ur=function(t,e){return function(o,n){e(o,n,t)}},zr=(function(t){function o(){return null!==t&&t.apply(this,arguments)||this}Br(o,t),o.prototype.setBeans=function(t){this.logger=t.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()&&this.addManagedListener(this.eventService,Ht.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))},o.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,Ht.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},o.prototype.setLastSelectedNode=function(t){this.lastSelectedNode=t},o.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},o.prototype.getSelectedNodes=function(){var t=[];return T(this.selectedNodes,(function(e,o){o&&t.push(o)})),t},o.prototype.getSelectedRows=function(){var t=[];return T(this.selectedNodes,(function(e,o){o&&o.data&&t.push(o.data)})),t},o.prototype.removeGroupsFromSelection=function(){var t=this;T(this.selectedNodes,(function(e,o){o&&o.group&&(t.selectedNodes[o.id]=void 0)}))},o.prototype.updateGroupsFromChildrenSelections=function(t){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===dt.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getRootNode();t||(t=new kr(!0,e)).setInactive(),t.forEachChangedNodeDepthFirst((function(t){t!==e&&t.calculateSelectedFromChildren()}))}},o.prototype.getNodeForIdIfSelected=function(t){return this.selectedNodes[t]},o.prototype.clearOtherNodes=function(t){var e=this,o={},n=0;return T(this.selectedNodes,(function(i,r){if(r&&r.id!==t.id){var s=e.selectedNodes[r.id];n+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),e.groupSelectsChildren&&r.parent&&(o[r.parent.id]=r.parent)}})),T(o,(function(t,e){e.calculateSelectedFromChildren()})),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){e(o)&&t.id!==o.id&&(e(this.selectedNodes[o.id])&&(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(this.rowModel.getType()===dt.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getTopLevelNodes();if(null!==t){var e=[];return function t(o){for(var n=0,i=o.length;n<i;n++){var r=o[n];r.isSelected()?e.push(r):r.group&&r.children&&t(r.children)}}(t),e}console.warn("selectAll not available doing rowModel=virtual")}else console.warn("getBestCostNodeSelection is only available when using normal row model")},o.prototype.setRowModel=function(t){this.rowModel=t},o.prototype.isEmpty=function(){var t=0;return T(this.selectedNodes,(function(e,o){o&&t++})),0===t},o.prototype.deselectAllRowNodes=function(t){void 0===t&&(t=!1);var e=function(t){return t.selectThisNode(!1)},o=this.rowModel.getType()===dt.ROW_MODEL_TYPE_CLIENT_SIDE;if(t){if(!o)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(e)}else T(this.selectedNodes,(function(t,o){o&&e(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:Ht.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},o.prototype.selectAllRowNodes=function(t){if(void 0===t&&(t=!1),this.rowModel.getType()!==dt.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var e=this.rowModel,o=function(t){return t.selectThisNode(!0)};t?e.forEachNodeAfterFilter(o):e.forEachNode(o),this.rowModel.getType()===dt.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:Ht.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},o.prototype.selectNode=function(t,e){t&&t.setSelectedParams({newValue:!0,clearSelection:!e})},o.prototype.deselectIndex=function(t){var e=this.rowModel.getRow(t);this.deselectNode(e)},o.prototype.deselectNode=function(t){t&&t.setSelectedParams({newValue:!1,clearSelection:!1})},o.prototype.selectIndex=function(t,e){var o=this.rowModel.getRow(t);this.selectNode(o,e)},jr([nt("rowModel")],o.prototype,"rowModel",void 0),jr([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),jr([nt("columnApi")],o.prototype,"columnApi",void 0),jr([nt("gridApi")],o.prototype,"gridApi",void 0),jr([Ur(0,st("loggerFactory"))],o.prototype,"setBeans",null),jr([tt],o.prototype,"init",null),o=jr([ot("selectionController")],o)}(Gt),function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s});
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */!function(){function t(){}t.prototype.sizeColumnsToFit=function(t){void 0===t&&console.error("ag-Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnController.sizeColumnsToFit(t,"api")},t.prototype.setColumnGroupOpened=function(t,e){this.columnController.setColumnGroupOpened(t,e,"api")},t.prototype.getColumnGroup=function(t,e){return this.columnController.getColumnGroup(t,e)},t.prototype.getOriginalColumnGroup=function(t){return this.columnController.getOriginalColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,e){return this.columnController.getDisplayNameForColumn(t,e)||""},t.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnController.getDisplayNameForColumnGroup(t,e)||""},t.prototype.getColumn=function(t){return this.columnController.getPrimaryColumn(t)},t.prototype.applyColumnState=function(t){return this.columnController.applyColumnState(t,"api")},t.prototype.getColumnState=function(){return this.columnController.getColumnState()},t.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},t.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},t.prototype.setColumnGroupState=function(t){this.columnController.setColumnGroupState(t,"api")},t.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},t.prototype.getDisplayedColAfter=function(t){return this.columnController.getDisplayedColAfter(t)},t.prototype.getDisplayedColBefore=function(t){return this.columnController.getDisplayedColBefore(t)},t.prototype.setColumnVisible=function(t,e){this.columnController.setColumnVisible(t,e,"api")},t.prototype.setColumnsVisible=function(t,e){this.columnController.setColumnsVisible(t,e,"api")},t.prototype.setColumnPinned=function(t,e){this.columnController.setColumnPinned(t,e,"api")},t.prototype.setColumnsPinned=function(t,e){this.columnController.setColumnsPinned(t,e,"api")},t.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},t.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},t.prototype.moveColumn=function(t,e){"number"==typeof t?(console.warn("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(t,e,"api")):this.columnController.moveColumn(t,e,"api")},t.prototype.moveColumnByIndex=function(t,e){this.columnController.moveColumnByIndex(t,e,"api")},t.prototype.moveColumns=function(t,e){this.columnController.moveColumns(t,e,"api")},t.prototype.moveRowGroupColumn=function(t,e){this.columnController.moveRowGroupColumn(t,e)},t.prototype.setColumnAggFunc=function(t,e){this.columnController.setColumnAggFunc(t,e)},t.prototype.setColumnWidth=function(t,e,o){void 0===o&&(o=!0),this.columnController.setColumnWidths([{key:t,newWidth:e}],!1,o)},t.prototype.setColumnWidths=function(t,e){void 0===e&&(e=!0),this.columnController.setColumnWidths(t,!1,e)},t.prototype.setPivotMode=function(t){this.columnController.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},t.prototype.getSecondaryPivotColumn=function(t,e){return this.columnController.getSecondaryPivotColumn(t,e)},t.prototype.setValueColumns=function(t){this.columnController.setValueColumns(t,"api")},t.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},t.prototype.removeValueColumn=function(t){this.columnController.removeValueColumn(t,"api")},t.prototype.removeValueColumns=function(t){this.columnController.removeValueColumns(t,"api")},t.prototype.addValueColumn=function(t){this.columnController.addValueColumn(t,"api")},t.prototype.addValueColumns=function(t){this.columnController.addValueColumns(t,"api")},t.prototype.setRowGroupColumns=function(t){this.columnController.setRowGroupColumns(t,"api")},t.prototype.removeRowGroupColumn=function(t){this.columnController.removeRowGroupColumn(t,"api")},t.prototype.removeRowGroupColumns=function(t){this.columnController.removeRowGroupColumns(t,"api")},t.prototype.addRowGroupColumn=function(t){this.columnController.addRowGroupColumn(t,"api")},t.prototype.addRowGroupColumns=function(t){this.columnController.addRowGroupColumns(t,"api")},t.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},t.prototype.setPivotColumns=function(t){this.columnController.setPivotColumns(t,"api")},t.prototype.removePivotColumn=function(t){this.columnController.removePivotColumn(t,"api")},t.prototype.removePivotColumns=function(t){this.columnController.removePivotColumns(t,"api")},t.prototype.addPivotColumn=function(t){this.columnController.addPivotColumn(t,"api")},t.prototype.addPivotColumns=function(t){this.columnController.addPivotColumns(t,"api")},t.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},t.prototype.autoSizeColumn=function(t,e){return this.columnController.autoSizeColumn(t,e,"api")},t.prototype.autoSizeColumns=function(t,e){return this.columnController.autoSizeColumns(t,e,"api")},t.prototype.autoSizeAllColumns=function(t){this.columnController.autoSizeAllColumns(t,"api")},t.prototype.setSecondaryColumns=function(t){this.columnController.setSecondaryColumns(t,"api")},t.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},t.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(bn.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.columnGroupOpened=function(t,e){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(t,e)},t.prototype.hideColumns=function(t,e){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(t,!e,"api")},t.prototype.hideColumn=function(t,e){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(t,!e,"api")},t.prototype.setState=function(t){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(t)},t.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},t.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},t.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},t.prototype.removeAggregationColumn=function(t){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(t,"api")},t.prototype.removeAggregationColumns=function(t){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(t,"api")},t.prototype.addAggregationColumn=function(t){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(t,"api")},t.prototype.addAggregationColumns=function(t){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(t,"api")},t.prototype.setColumnAggFunction=function(t,e){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(t,e,"api")},t.prototype.getDisplayNameForCol=function(t){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(t,null)},t.prototype.setColumnState=function(t){return this.columnController.applyColumnState({state:t,applyOrder:!0},"api")},zr([nt("columnController")],t.prototype,"columnController",void 0),zr([et],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=zr([ot("columnApi")],t)}();!function(t){t[t.FILL=0]="FILL",t[t.RANGE=1]="RANGE"}(Vr||(Vr={})),function(t){t[t.VALUE=0]="VALUE",t[t.DIMENSION=1]="DIMENSION"}(Wr||(Wr={}));
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
var Kr,Yr,qr,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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Qr=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.ToolPanel=0]="ToolPanel",t[t.HeaderCell=1]="HeaderCell",t[t.RowDrag=2]="RowDrag",t[t.ChartPanel=3]="ChartPanel"}(Kr||(Kr={})),function(t){t[t.Up=0]="Up",t[t.Down=1]="Down"}(Yr||(Yr={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(qr||(qr={}));var $r,Zr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragSourceAndParamsList=[],e.dropTargets=[],e}var o;return Xr(e,t),o=e,e.prototype.init=function(){this.ePinnedIcon=pn("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=pn("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=pn("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=pn("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=pn("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=pn("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=pn("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=pn("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=pn("dropNotAllowed",this.gridOptionsWrapper,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=a(this.dragSourceAndParamsList,(function(e){return e.dragSource===t}));e&&(this.dragService.removeDragSource(e.params),g(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},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=this.getHorizontalDirection(t),n=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var i=a(this.dropTargets,this.isMouseOnDropTarget.bind(this,t));if(i!==this.lastDropTarget)this.leaveLastTargetIfExists(t,o,n,e),this.enterDragTargetIfExists(i,t,o,n,e),this.lastDropTarget=i;else if(i&&i.onDragging){var r=this.createDropTargetEvent(i,t,o,n,e);i.onDragging(r)}},e.prototype.enterDragTargetIfExists=function(t,e,o,n,i){if(t){if(t.onDragEnter){var r=this.createDropTargetEvent(t,e,o,n,i);t.onDragEnter(r)}this.setGhostIcon(t.getIconName?t.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(t,e,o,n){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var i=this.createDropTargetEvent(this.lastDropTarget,t,e,o,n);this.lastDropTarget.onDragLeave(i)}this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(t){var e=[t.getContainer()],o=t.getSecondaryContainers?t.getSecondaryContainers():null;return o&&(e=e.concat(o)),e},e.prototype.isMouseOnDropTarget=function(t,e){var o=!1;return this.getAllContainersFromDropTarget(e).filter((function(t){return t})).forEach((function(e){var n=e.getBoundingClientRect();if(0!==n.width&&0!==n.height){var i=t.clientX>=n.left&&t.clientX<=n.right,r=t.clientY>=n.top&&t.clientY<=n.bottom;i&&r&&(o=!0)}})),o&&e.isInterestedIn(this.dragSource.type)},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 a(this.dropTargets.filter((function(t){return t.external})),(function(e){return e.getContainer()===t.getContainer()}))},e.prototype.getHorizontalDirection=function(t){var e=this.eventLastTime.clientX,o=t.clientX;return e===o?null:e>o?qr.Left:qr.Right},e.prototype.getVerticalDirection=function(t){var e=this.eventLastTime.clientY,o=t.clientY;return e===o?null:e>o?Yr.Up:Yr.Down},e.prototype.createDropTargetEvent=function(t,e,o,n,i){var r=t.getContainer(),s=r.getBoundingClientRect(),a=this.gridApi,l=this.columnApi,p=this.dragItem,u=this.dragSource;return{event:e,x:e.clientX-s.left,y:e.clientY-s.top,vDirection:n,hDirection:o,dragSource:u,fromNudge:i,dragItem:p,api:a,columnApi:l,dropZoneTarget:r}},e.prototype.positionGhost=function(t){var e=this.eGhost,o=e.getBoundingClientRect().height,n=Le()-2,i=Ie()-2,r=t.pageY-o/2,s=t.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=window.pageYOffset||a.documentElement.scrollTop,p=window.pageXOffset||a.documentElement.scrollLeft;n>0&&s+e.clientWidth>n+p&&(s=n+p-e.clientWidth),s<0&&(s=0),i>0&&r+e.clientHeight>i+l&&(r=i+l-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=oo(o.GHOST_TEMPLATE);var t=this.environment.getTheme().theme;t&&xe(this.eGhost,t),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var e=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;K(n)&&(n=n()),e.innerHTML=Kt(n),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var i=this.gridOptionsWrapper.getDocument();this.eGhostParent=i.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(t,e){var n;switch(void 0===e&&(e=!1),Je(this.eGhostIcon),t||(t=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),t){case o.ICON_PINNED:n=this.ePinnedIcon;break;case o.ICON_MOVE:n=this.eMoveIcon;break;case o.ICON_LEFT:n=this.eLeftIcon;break;case o.ICON_RIGHT:n=this.eRightIcon;break;case o.ICON_GROUP:n=this.eGroupIcon;break;case o.ICON_AGGREGATE:n=this.eAggregateIcon;break;case o.ICON_PIVOT:n=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:n=this.eHideIcon}We(this.eGhostIcon,"ag-shake-left-to-right",e),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},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>',Qr([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Qr([nt("dragService")],e.prototype,"dragService",void 0),Qr([nt("environment")],e.prototype,"environment",void 0),Qr([nt("columnApi")],e.prototype,"columnApi",void 0),Qr([nt("gridApi")],e.prototype,"gridApi",void 0),Qr([tt],e.prototype,"init",null),Qr([et],e.prototype,"clearDragSourceParamsList",null),e=o=Qr([ot("dragAndDropService")],e)}(Gt),Jr=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ts=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},es=function(t){function e(e,o,n,i){var r=t.call(this,'<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>')||this;return r.rowNode=e,r.column=o,r.cellValueFn=n,r.beans=i,r}return Jr(e,t),e.prototype.postConstruct=function(){this.getGui().appendChild(un("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility();var t=this.beans.gridOptionsWrapper.isRowDragManaged()?new is(this,this.beans,this.rowNode,this.column):new ns(this,this.beans,this.rowNode,this.column);this.createManagedBean(t,this.beans.context)},e.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isEnableMultiRowDragging())return 1;var t=this.beans.selectionController.getSelectedNodes();return-1!==t.indexOf(this.rowNode)?t.length:1},e.prototype.checkCompatibility=function(){var t=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&t&&U((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},e.prototype.addDragSource=function(){var t=this,e={rowNode:this.rowNode,columns:[this.column],defaultTextValue:this.cellValueFn()},o=this.column.getColDef().rowDragText,n={type:Kr.RowDrag,eElement:this.getGui(),dragItemName:function(){var n=t.getSelectedCount();return o?o(e,n):1===n?t.cellValueFn():n+" rows"},getDragItem:function(){return e},dragStartPixels:0,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()};this.beans.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return t.beans.dragAndDropService.removeDragSource(n)}))},ts([tt],e.prototype,"postConstruct",null),e}(Fn),os=function(t){function e(e,o,n){var i=t.call(this)||this;return i.parent=e,i.column=n,i.rowNode=o,i}return Jr(e,t),e.prototype.setDisplayedOrVisible=function(t){if(t)this.parent.setDisplayed(!1);else{var e=this.column.isRowDrag(this.rowNode);K(this.column.getColDef().rowDrag)?(this.parent.setDisplayed(!0),this.parent.setVisible(e)):this.parent.setDisplayed(e)}},e}(Gt),ns=function(t){function e(e,o,n,i){var r=t.call(this,e,n,i)||this;return r.beans=o,r}return Jr(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(t)},ts([tt],e.prototype,"postConstruct",null),e}(os),is=function(t){function e(e,o,n,i){var r=t.call(this,e,n,i)||this;return r.beans=o,r}return Jr(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Ht.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ht.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ht.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.beans.gridPanel.getRowDragFeature(),e=t&&t.shouldPreventRowMove(),o=this.beans.gridOptionsWrapper.isSuppressRowDrag(),n=this.beans.dragAndDropService.hasExternalDropZones(),i=e&&!n||o;this.setDisplayedOrVisible(i)},ts([tt],e.prototype,"postConstruct",null),e}(os),rs=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ss=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},as=function(t){function e(e){var o=t.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.getGuiCalledOnChild=!1,o.cellEditor=e,o}return rs(e,t),e.prototype.onKeyDown=function(t){fn(this.gridOptionsWrapper,t,this.params.node,this.params.column,!0)||this.params.onKeyDown(t)},e.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),t.prototype.getGui.call(this)},e.prototype.init=function(o){var n=this;this.params=o,this.gridOptionsWrapper.setDomData(this.getGui(),e.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){return n.destroyBean(n.cellEditor)})),this.addManagedListener(t.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},e.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},e.prototype.getValue=function(){return this.cellEditor.getValue()},e.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},e.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},e.prototype.getPopupPosition=function(){if(this.cellEditor.getPopupPosition)return this.cellEditor.getPopupPosition()},e.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},e.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},e.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",ss([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(Ln),ls=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ps=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},us=function(t){function e(e,o,n,i,r){var s=t.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return s.rowNode=e,s.column=o,s.cellValue=n,s.beans=i,s.eCell=r,s}return ls(e,t),e.prototype.postConstruct=function(){this.getGui().appendChild(un("rowDrag",this.beans.gridOptionsWrapper,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,n=Pe();n||t.dataTransfer.setDragImage(this.eCell,0,0);o?o({rowNode:this.rowNode,dragEvent:t}):function(){try{var o=JSON.stringify(e.rowNode.data);n?t.dataTransfer.setData("text",o):(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)},ps([tt],e.prototype,"postConstruct",null),e}(Fn),cs=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ds=function(){return(ds=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},hs=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */!function(t){t[t.NOTHING=0]="NOTHING",t[t.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",t[t.SHOWING=2]="SHOWING"}($r||($r={}));var fs,gs=function(t){function o(e){var o=t.call(this)||this;return o.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,o.SHOW_QUICK_TOOLTIP_DIFF=1e3,o.FADE_OUT_TOOLTIP_TIMEOUT=1e3,o.state=$r.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=e,o}return cs(o,t),o.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipShowDelay()||2e3,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();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(this.state==$r.NOTHING){var e=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),e),this.lastMouseEvent=t,this.state=$r.WAITING_TO_SHOW}},o.prototype.onMouseLeave=function(){this.setToDoNothing()},o.prototype.onKeyDown=function(){this.setToDoNothing()},o.prototype.setToDoNothing=function(){this.state===$r.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=$r.NOTHING},o.prototype.onMouseMove=function(t){this.lastMouseEvent=t,this.tooltipMouseTrack&&this.state===$r.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},o.prototype.onMouseDown=function(){this.setToDoNothing()},o.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),o.lastTooltipHideTime=(new Date).getTime()),this.state=$r.NOTHING},o.prototype.destroyTooltipComp=function(){var t=this;xe(this.tooltipComp.getGui(),"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=ds({api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},this.parentComp.getTooltipParams());if(e(t.value)){this.state=$r.SHOWING,this.tooltipInstanceCount++;var o=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.newTooltipComponent(t).then(o)}else this.setToDoNothing()},o.prototype.newTooltipComponentCallback=function(t,e){if(this.state!==$r.SHOWING||this.tooltipInstanceCount!==t)this.getContext().destroyBean(e);else{var o=e.getGui();this.tooltipComp=e,He(o,"ag-tooltip")||xe(o,"ag-tooltip-custom"),this.tooltipPopupDestroyFunc=this.popupService.addPopup({eChild:o}),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}},o.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},o.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},hs([nt("popupService")],o.prototype,"popupService",void 0),hs([nt("userComponentFactory")],o.prototype,"userComponentFactory",void 0),hs([nt("columnApi")],o.prototype,"columnApi",void 0),hs([nt("gridApi")],o.prototype,"gridApi",void 0),hs([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),hs([tt],o.prototype,"postConstruct",null),o}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),vs=function(){return(vs=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},ms=function(t){function n(e,o,n,i,r,s,a){var l=t.call(this)||this;if(l.hasChartRange=!1,l.editingCell=!1,l.suppressRefreshCell=!1,l.tooltipFeatureEnabled=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=e,l.beans=o,l.column=n,l.rowNode=i,l.rowComp=r,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=l.beans.rangeController&&o.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusController.isCellFocused(l.cellPosition),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled&&l.beans.rangeController){var p=l.beans.rangeController;l.rangeCount=p.getCellRangeCount(l.cellPosition),l.hasChartRange=l.getHasChartRange()}return l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return ys(n,t),n.prototype.getCreateTemplate=function(){var t=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',o=[],n=this.column,i=this.getCellWidth(),r=this.modifyLeftForPrintLayout(this.getCellLeft()),s=this.getInitialValueToRender(),a=x(this.column,"colDef.template",null)?s:Kt(s);this.tooltip=this.getToolTip();var l=Kt(this.tooltip),p=Kt(n.getId()),u="",c="",d=this.preProcessStylesFromColDef(),h=this.getInitialCssClasses(),f=this.getStylesForRowSpanning(),g=Kt(this.beans.columnController.getAriaColumnIndex(this.column).toString());return o.push("<div"),o.push(' tabindex="-1"'),o.push(" "+t),o.push(' role="gridcell"'),o.push(' aria-colindex="'+g+'"'),o.push(' comp-id="'+this.getCompId()+'" '),o.push(' col-id="'+p+'"'),o.push(' class="'+Kt(h.join(" "))+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&e(l)&&o.push(' title="'+l+'"'),this.rangeSelectionEnabled&&o.push(' aria-selected="'+(this.rangeCount?"true":"false")+'"'),this.usingWrapper&&(u='<div ref="eCellWrapper" class="ag-cell-wrapper" role="presentation">\n                    <span ref="eCellValue" role="presentation" class="ag-cell-value" '+t+">",c="</span></div>"),o.push(' style="width: '+Number(i)+"px; left: "+Number(r)+"px; "+Kt(d)+" "+Kt(f)+'">'),o.push(u),e(a,!0)&&o.push(a),o.push(c),o.push("</div>"),o.join("")},n.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},n.prototype.afterAttached=function(){var t='[comp-id="'+this.getCompId()+'"]',o=this.eParentRow.querySelector(t);this.setGui(o),this.addDomData(),this.populateTemplate(),this.createCellRendererInstance(!0),this.angular1Compile(),this.refreshHandle(),e(this.tooltip)&&this.createTooltipFeatureIfNeeded()},n.prototype.createTooltipFeatureIfNeeded=function(){this.beans.gridOptionsWrapper.isEnableBrowserTooltips()||this.tooltipFeatureEnabled||(this.createManagedBean(new gs(this),this.beans.context),this.tooltipFeatureEnabled=!0)},n.prototype.onColumnHover=function(){var t=this.beans.columnHoverService.isHovered(this.column);this.addOrRemoveCssClass("ag-column-hover",t)},n.prototype.onCellChanged=function(t){t.column===this.column&&this.refreshCell({})},n.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?d(this.colsSpanning):this.column).getLeft()},n.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(t,e){return t+e.getActualWidth()}),0):this.column.getActualWidth()},n.prototype.onFlashCells=function(t){var e=this.beans.cellPositionUtils.createId(this.cellPosition);t.cells[e]&&this.animateCell("highlight")},n.prototype.setupColSpan=function(){o(this.getComponentHolder().colSpan)||(this.addManagedListener(this.beans.eventService,Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,Ht.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},n.prototype.getColSpanningList=function(){var t=this.column.getColSpan(this.rowNode),e=[];if(1===t)e.push(this.column);else for(var n=this.column,i=this.column.getPinned(),r=0;n&&r<t&&(e.push(n),(n=this.beans.columnController.getDisplayedColAfter(n))&&!o(n))&&i===n.getPinned();r++);return e},n.prototype.onDisplayColumnsChanged=function(){var t=this.getColSpanningList();h(this.colsSpanning,t)||(this.colsSpanning=t,this.onWidthChanged(),this.onLeftChanged())},n.prototype.refreshAriaIndex=function(){var t=this.beans.columnController.getAriaColumnIndex(this.column);zo(this.getGui(),t)},n.prototype.getInitialCssClasses=function(){var t=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||t.push("ag-cell-auto-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&t.push("ag-cell-focus"),this.firstRightPinned&&t.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&t.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&t.push("ag-column-hover"),w(t,this.preProcessClassesFromColDef()),w(t,this.preProcessCellClassRules()),w(t,this.getInitialRangeClasses()),this.usingWrapper||t.push("ag-cell-value"),this.column.getColDef().wrapText&&t.push("ag-cell-wrap-text"),t},n.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var t=this.getComponentHolder();return t.template?t.template:t.templateUrl?this.beans.templateService.getTemplate(t.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},n.prototype.getRenderedRow=function(){return this.rowComp},n.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},n.prototype.getCellRenderer=function(){return this.cellRenderer},n.prototype.getCellEditor=function(){return this.cellEditor},n.prototype.refreshCell=function(t){if(!this.suppressRefreshCell&&!this.editingCell){var e=this.getComponentHolder(),o=t&&t.newData,n=t&&t.suppressFlash||e.suppressCellFlash,i=t&&t.forceRefresh,r=this.value;this.value=this.getValue();var s=!this.valuesAreEqual(r,this.value);if(i||s){this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value),!o&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh();var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!n&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||e.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()}this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},n.prototype.flashCell=function(t){var e=t&&t.flashDelay,o=t&&t.fadeDelay;this.animateCell("data-changed",e,o)},n.prototype.animateCell=function(t,e,o){var n=this,i="ag-cell-"+t,r="ag-cell-"+t+"-animation",s=this.getGui(),a=this.beans.gridOptionsWrapper;e||(e=a.getCellFlashDelay()),o||(o=a.getCellFadeDelay()),this.addCssClass(i),this.removeCssClass(r),window.setTimeout((function(){n.removeCssClass(i),n.addCssClass(r),s.style.transition="background-color "+o+"ms",window.setTimeout((function(){n.removeCssClass(r),s.style.transition=null}),o)}),e)},n.prototype.replaceContentsAfterRefresh=function(){Je(this.eCellValue),this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},n.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=vs({},this.rowNode.data),this.angular1Compile())},n.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var t=this.getGui();if(!t.classList.contains("ng-scope")||0===t.childElementCount){var e=this.beans.$compile(t)(this.scope);this.addDestroyFunc((function(){return e.remove()}))}}},n.prototype.postProcessStylesFromColDef=function(){var t=this.processStylesFromColDef();t&&po(this.getGui(),t)},n.prototype.preProcessStylesFromColDef=function(){return bo(this.processStylesFromColDef())},n.prototype.processStylesFromColDef=function(){var t=this.getComponentHolder();if(t.cellStyle){var e=void 0;if("function"==typeof t.cellStyle){var o={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};e=(0,t.cellStyle)(o)}else e=t.cellStyle;return e}},n.prototype.postProcessClassesFromColDef=function(){var t=this;this.processClassesFromColDef((function(e){return t.addCssClass(e)}))},n.prototype.preProcessClassesFromColDef=function(){var t=[];return this.processClassesFromColDef((function(e){return t.push(e)})),t},n.prototype.processClassesFromColDef=function(t){var e=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(e,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},t)},n.prototype.putDataIntoCellAfterRefresh=function(){var t=this.getComponentHolder();if(t.template)this.eCellValue.innerHTML=t.template;else if(t.templateUrl){var e=this.beans.templateService.getTemplate(t.templateUrl,this.refreshCell.bind(this,!0));e&&(this.eCellValue.innerHTML=e)}else if(this.chooseCellRenderer(),this.usingCellRenderer)this.createCellRendererInstance();else{var o=this.getValueToUse();null!=o&&(this.eCellValue.innerHTML=Kt(o))}},n.prototype.attemptCellRendererRefresh=function(){if(o(this.cellRenderer)||!this.cellRenderer||o(this.cellRenderer.refresh))return!1;var t=this.createCellRendererParams(),e=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,t),n=this.cellRenderer.refresh(e);return!0===n||void 0===n},n.prototype.refreshToolTip=function(){var t=this.getToolTip();if(this.tooltip!==t){this.createTooltipFeatureIfNeeded();var o=e(t);o&&this.tooltip===t.toString()||(this.tooltip=t,this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&(o?this.eCellValue.setAttribute("title",this.tooltip):this.eCellValue.removeAttribute("title")))}},n.prototype.valuesAreEqual=function(t,e){var o=this.getComponentHolder(),n=o?o.equals:null;return n?n(t,e):t===e},n.prototype.getToolTip=function(){var t=this.getComponentHolder(),o=this.rowNode.data;if(t.tooltipField&&e(o))return V(o,t.tooltipField,this.column.isTooltipFieldContainsDots());var n=t.tooltipValueGetter;return n?n(vs(vs({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},this.getTooltipParams()),{value:this.value})):null},n.prototype.getTooltipParams=function(){return{location:"cell",colDef:this.getComponentHolder(),column:this.getColumn(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,value:this.getTooltipText(),valueFormatted:this.valueFormatted}},n.prototype.getTooltipText=function(t){return void 0===t&&(t=!0),t?Kt(this.tooltip):this.tooltip},n.prototype.processCellClassRules=function(t,e){var o=this.getComponentHolder();this.beans.stylingService.processClassRules(o.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:o,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},t,e)},n.prototype.postProcessCellClassRules=function(){var t=this;this.processCellClassRules((function(e){return t.addCssClass(e)}),(function(e){return t.removeCssClass(e)}))},n.prototype.preProcessCellClassRules=function(){var t=[];return this.processCellClassRules((function(e){return t.push(e)}),(function(t){})),t},n.prototype.setUsingWrapper=function(){var t=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,this.includeRowDraggingComponent=!1,void(this.includeDndSourceComponent=!1);var e="function"==typeof t.checkboxSelection,o="function"==typeof t.rowDrag,n="function"==typeof t.dndSource;this.includeSelectionComponent=e||!0===t.checkboxSelection,this.includeRowDraggingComponent=o||!0===t.rowDrag,this.includeDndSourceComponent=n||!0===t.dndSource;var i=this.beans.gridOptionsWrapper.isEnableCellTextSelection();this.usingWrapper=i||this.includeRowDraggingComponent||this.includeSelectionComponent||this.includeDndSourceComponent},n.prototype.chooseCellRenderer=function(){var t=this.getComponentHolder();if(t.template||t.templateUrl)this.usingCellRenderer=!1;else{var e=this.createCellRendererParams();this.rowNode.rowPinned&&this.beans.userComponentFactory.lookupComponentClassDef(t,"pinnedRowCellRenderer",e)?(this.cellRendererType=n.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):this.beans.userComponentFactory.lookupComponentClassDef(t,"cellRenderer",e)?(this.cellRendererType=n.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},n.prototype.createCellRendererInstance=function(t){var e=this;if(void 0===t&&(t=!1),this.usingCellRenderer){var o=this.beans.gridOptionsWrapper.isAngularCompileRows(),i=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(o||i||this.autoHeightCell)&&(t=!1);var r=this.createCellRendererParams();this.cellRendererVersion++;var s=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),a=this.cellRendererType===n.CELL_RENDERER_TYPE_NORMAL;this.createCellRendererFunc=function(){e.createCellRendererFunc=null;var t=e.beans.userComponentFactory.newCellRenderer(e.getComponentHolder(),r,!a);t&&t.then(s)},t?this.beans.taskQueue.createTask(this.createCellRendererFunc,this.rowNode.rowIndex,"createTasksP2"):this.createCellRendererFunc()}},n.prototype.afterCellRendererCreated=function(t,e){this.isAlive()&&t===this.cellRendererVersion?(this.cellRenderer=e,this.cellRendererGui=this.cellRenderer.getGui(),o(this.cellRendererGui)||this.editingCell||this.eCellValue.appendChild(this.cellRendererGui)):this.beans.context.destroyBean(e)},n.prototype.createCellRendererParams=function(){var t=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.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,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eCellValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(e,o){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),t.rowComp&&t.rowComp.addEventListener(e,o)}}},n.prototype.formatValue=function(t){var e=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,t);return null!=e?e:t},n.prototype.getValueToUse=function(){return null!=this.valueFormatted?this.valueFormatted:this.value},n.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},n.prototype.getValue=function(){var t=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),e=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!t,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),n=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),i=e&&o&&!n;return this.beans.valueService.getValue(this.column,this.rowNode,!1,i)},n.prototype.onMouseEvent=function(t,e){if(!Pt(e))switch(t){case"click":this.onCellClicked(e);break;case"mousedown":this.onMouseDown(e);break;case"dblclick":this.onCellDoubleClicked(e);break;case"mouseout":this.onMouseOut(e);break;case"mouseover":this.onMouseOver(e)}},n.prototype.dispatchCellContextMenuEvent=function(t){var e=this.getComponentHolder(),o=this.createEvent(t,Ht.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),e.onCellContextMenu&&window.setTimeout((function(){return e.onCellContextMenu(o)}),0)},n.prototype.createEvent=function(t,e){var o={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:t,type:e,rowIndex:this.rowNode.rowIndex};return this.scope&&(o.$scope=this.scope),o},n.prototype.onMouseOut=function(t){var e=this.createEvent(t,Ht.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.clearMouseOver()},n.prototype.onMouseOver=function(t){var e=this.createEvent(t,Ht.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.setMouseOver([this.column])},n.prototype.onCellDoubleClicked=function(t){var e=this.getComponentHolder(),o=this.createEvent(t,Ht.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof e.onCellDoubleClicked&&window.setTimeout((function(){return e.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.startRowOrCellEdit=function(t,e){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(t,e,this):this.startEditingIfEnabled(t,e,!0)},n.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},n.prototype.startEditingIfEnabled=function(t,e,n){if(void 0===t&&(t=null),void 0===e&&(e=null),void 0===n&&(n=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var i=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),r=this.createCellEditorParams(t,e,n);this.createCellEditor(r).then(i),o(this.cellEditor)&&n&&this.focusCell(!0)}},n.prototype.createCellEditor=function(t){var e=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),t).then((function(o){if(!(o.isPopup&&o.isPopup()))return o;e.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var n=new as(o);return e.beans.context.createBean(n),n.init(t),n}))},n.prototype.afterCellEditorCreated=function(t,e){if(t!==this.cellEditorVersion||!this.editingCell)this.beans.context.destroyBean(e);else{if(e.isCancelBeforeStart&&e.isCancelBeforeStart())return this.beans.context.destroyBean(e),void(this.editingCell=!1);if(!e.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),e.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),this.beans.context.destroyBean(e),void(this.editingCell=!1);this.cellEditor=e,this.cellEditorInPopup=void 0!==e.isPopup&&e.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),e.afterGuiAttached&&e.afterGuiAttached();var o=this.createEvent(null,Ht.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(o)}},n.prototype.addInCellEditor=function(){Je(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},n.prototype.addPopupCellEditor=function(){var t=this,e=this.cellEditor?this.cellEditor.getGui():null,o=this.beans.gridOptionsWrapper.isStopEditingWhenGridLosesFocus();this.hideEditorPopup=this.beans.popupService.addPopup({modal:o,eChild:e,closeOnEsc:!0,closedCallback:function(){t.onPopupEditorClosed()}});var n={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:e,keepWithinBounds:!0};"under"===(this.cellEditor&&this.cellEditor.getPopupPosition?this.cellEditor.getPopupPosition():"over")?this.beans.popupService.positionPopupUnderComponent(n):this.beans.popupService.positionPopupOverComponent(n),this.angular1Compile()},n.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusController.isCellFocused(this.cellPosition)&&this.focusCell(!0))},n.prototype.setInlineEditingClass=function(){if(this.isAlive()){var t=this.editingCell&&!this.cellEditorInPopup,e=this.editingCell&&this.cellEditorInPopup;this.addOrRemoveCssClass("ag-cell-inline-editing",t),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!t),this.addOrRemoveCssClass("ag-cell-popup-editing",e),We(this.getGui().parentNode,"ag-row-inline-editing",t),We(this.getGui().parentNode,"ag-row-not-inline-editing",!t)}},n.prototype.createCellEditorParams=function(t,e,o){return{value:this.getValue(),keyPress:t,charPress:e,column:this.column,colDef:this.column.getColDef(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},n.prototype.stopEditingAndFocus=function(t){void 0===t&&(t=!1),this.stopRowOrCellEdit(),this.focusCell(!0),t||this.navigateAfterEdit()},n.prototype.parseValue=function(t){var o=this.getComponentHolder(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:t,colDef:o,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},i=o.valueParser;return e(i)?this.beans.expressionService.evaluate(i,n):t},n.prototype.focusCell=function(t){void 0===t&&(t=!1),this.beans.focusController.setFocusedCell(this.cellPosition.rowIndex,this.column,this.rowNode.rowPinned,t)},n.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},n.prototype.isEditing=function(){return this.editingCell},n.prototype.onKeyDown=function(t){var e=t.which||t.keyCode;switch(e){case xn.ENTER:this.onEnterKeyDown(t);break;case xn.F2:this.onF2KeyDown();break;case xn.ESCAPE:this.onEscapeKeyDown();break;case xn.TAB:this.onTabKeyDown(t);break;case xn.BACKSPACE:case xn.DELETE:this.onBackspaceOrDeleteKeyPressed(e);break;case xn.DOWN:case xn.UP:case xn.RIGHT:case xn.LEFT:this.onNavigationKeyPressed(t,e)}},n.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},n.prototype.onNavigationKeyPressed=function(t,e){this.editingCell||(t.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(e):this.beans.rowRenderer.navigateToNextCell(t,e,this.cellPosition,!0),t.preventDefault())},n.prototype.onShiftRangeSelect=function(t){if(this.beans.rangeController){var e=this.beans.rangeController.extendLatestRangeInDirection(t);e&&this.beans.rowRenderer.ensureCellVisible(e)}},n.prototype.onTabKeyDown=function(t){this.beans.rowRenderer.onTabKeyDown(this,t)},n.prototype.onBackspaceOrDeleteKeyPressed=function(t){this.editingCell||this.startRowOrCellEdit(t)},n.prototype.onEnterKeyDown=function(t){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,xn.DOWN,this.cellPosition,!1):(this.startRowOrCellEdit(xn.ENTER),this.editingCell&&t.preventDefault())},n.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,xn.DOWN,this.cellPosition,!1)},n.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(xn.F2)},n.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},n.prototype.onKeyPress=function(t){if(!(Tt(t)!==this.getGui())&&!this.editingCell){var e=String.fromCharCode(t.charCode);" "===e?this.onSpaceKeyPressed(t):hn(t)&&(this.startRowOrCellEdit(null,e),t.preventDefault())}},n.prototype.onSpaceKeyPressed=function(t){var e=this.beans.gridOptionsWrapper;if(!this.editingCell&&e.isRowSelection()){var o=this.rowNode.isSelected(),n=!o;if(n||!e.isSuppressRowDeselection()){var i=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),r=this.rowNode.setSelectedParams({newValue:n,rangeSelect:t.shiftKey,groupSelectsFiltered:i});void 0===o&&0===r&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:i})}}t.preventDefault()},n.prototype.onMouseDown=function(t){var e=t.ctrlKey,o=t.metaKey,n=t.shiftKey,i=t.target,r=this.beans,s=r.eventService,a=r.rangeController;if(!this.isRightClickInExistingRange(t)){if(!n||a&&!a.getCellRanges().length){var l=(Pe()||be())&&!this.editingCell;this.focusCell(l)}else a&&t.preventDefault();if(!this.containsWidget(i)){if(a){var p=this.cellPosition;if(n)a.extendLatestRangeToCell(p);else{var u=e||o;a.setRangeToCell(p,u)}}s.dispatchEvent(this.createEvent(t,Ht.EVENT_CELL_MOUSE_DOWN))}}},n.prototype.isRightClickInExistingRange=function(t){var e=this.beans.rangeController;if(e&&(e.isCellInAnyRange(this.getCellPosition())&&2===t.button))return!0;return!1},n.prototype.containsWidget=function(t){return Ue(t,"ag-selection-checkbox",3)},n.prototype.isDoubleClickOnIPad=function(){if(!_e()||St("dblclick"))return!1;var t=(new Date).getTime(),e=t-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=t,e},n.prototype.onCellClicked=function(t){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(t),void t.preventDefault();var e=this.beans,o=e.eventService,n=e.gridOptionsWrapper,i=this.createEvent(t,Ht.EVENT_CELL_CLICKED);o.dispatchEvent(i);var r=this.getComponentHolder();r.onCellClicked&&window.setTimeout((function(){return r.onCellClicked(i)}),0),(n.isSingleClickEdit()||r.singleClickEdit)&&!n.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.createGridCellVo=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},n.prototype.getCellPosition=function(){return this.cellPosition},n.prototype.getParentRow=function(){return this.eParentRow},n.prototype.setParentRow=function(t){this.eParentRow=t},n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},n.prototype.destroy=function(){this.createCellRendererFunc&&this.beans.taskQueue.cancelTask(this.createCellRendererFunc),this.stopEditing(),this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),this.beans.context.destroyBean(this.selectionHandle),t.prototype.destroy.call(this)},n.prototype.onLeftChanged=function(){var t=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=t+"px",this.refreshAriaIndex()},n.prototype.modifyLeftForPrintLayout=function(t){return this.printLayout&&this.column.getPinned()!==dt.PINNED_LEFT?this.column.getPinned()===dt.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},n.prototype.onWidthChanged=function(){var t=this.getCellWidth();this.getGui().style.width=t+"px"},n.prototype.getRangeBorders=function(){var t,e,o=this,n=this.beans.gridOptionsWrapper.isEnableRtl(),i=!1,r=!1,s=!1,a=!1,l=this.cellPosition.column,p=this.beans,u=p.rangeController,c=p.columnController;n?(t=c.getDisplayedColAfter(l),e=c.getDisplayedColBefore(l)):(t=c.getDisplayedColBefore(l),e=c.getDisplayedColAfter(l));var d=u.getCellRanges().filter((function(t){return u.isCellInSpecificRange(o.cellPosition,t)}));t||(a=!0),e||(r=!0);for(var h=0;h<d.length&&!(i&&r&&s&&a);h++){var f=d[h],g=u.getRangeStartRow(f),y=u.getRangeEndRow(f);!i&&this.beans.rowPositionUtils.sameRow(g,this.cellPosition)&&(i=!0),!s&&this.beans.rowPositionUtils.sameRow(y,this.cellPosition)&&(s=!0),!a&&f.columns.indexOf(t)<0&&(a=!0),!r&&f.columns.indexOf(e)<0&&(r=!0)}return{top:i,right:r,bottom:s,left:a}},n.prototype.getInitialRangeClasses=function(){var t=[];if(!this.rangeSelectionEnabled||!this.rangeCount)return t;t.push("ag-cell-range-selected"),this.hasChartRange&&t.push("ag-cell-range-chart");var e=Math.min(this.rangeCount,4);if(t.push("ag-cell-range-selected-"+e),this.isSingleCell()&&t.push("ag-cell-range-single-cell"),this.rangeCount>0){var o=this.getRangeBorders();o.top&&t.push("ag-cell-range-top"),o.right&&t.push("ag-cell-range-right"),o.bottom&&t.push("ag-cell-range-bottom"),o.left&&t.push("ag-cell-range-left")}return this.selectionHandle&&t.push("ag-cell-range-handle"),t},n.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){var t=this.beans.rangeController;if(t){var e=this.cellPosition,o=this.rangeCount,n=t.getCellRangeCount(e),i=this.getGui();o!==n&&(this.addOrRemoveCssClass("ag-cell-range-selected",0!==n),this.addOrRemoveCssClass("ag-cell-range-selected-1",1===n),this.addOrRemoveCssClass("ag-cell-range-selected-2",2===n),this.addOrRemoveCssClass("ag-cell-range-selected-3",3===n),this.addOrRemoveCssClass("ag-cell-range-selected-4",n>=4),this.rangeCount=n),Xo(i,this.rangeCount>0);var r=this.getHasChartRange();r!==this.hasChartRange&&(this.hasChartRange=r,this.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange)),this.updateRangeBorders(),this.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.refreshHandle()}},n.prototype.getHasChartRange=function(){var t=this.beans.rangeController;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every((function(t){return C([Wr.DIMENSION,Wr.VALUE],t.type)}))},n.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,e=t.gridOptionsWrapper,o=t.rangeController,n=o.getCellRanges(),i=n.length;if(this.rangeCount<1||i<1)return!1;var r=d(n),s=this.getCellPosition(),a=1===i&&(e.isEnableFillHandle()||e.isEnableRangeHandle())&&!this.editingCell;if(this.hasChartRange){var l=n[0].type===Wr.DIMENSION&&o.isCellInSpecificRange(s,n[0]);this.addOrRemoveCssClass("ag-cell-range-chart-category",l),a=r.type===Wr.VALUE}return a&&null!=r.endRow&&o.isContiguousRange(r)&&o.isBottomRightCell(r,s)},n.prototype.addSelectionHandle=function(){var t=this.beans,e=t.gridOptionsWrapper,n=(t.context,d(t.rangeController.getCellRanges()).type),i=e.isEnableFillHandle()&&o(n)?Vr.FILL:Vr.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(i)),this.selectionHandle.refresh(this)},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.refreshHandle=function(){if(this.beans.rangeController){var t=this.shouldHaveSelectionHandle();this.selectionHandle&&!t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),t&&this.addSelectionHandle(),this.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},n.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),o=!e&&t.top,n=!e&&t.right,i=!e&&t.bottom,r=!e&&t.left;this.addOrRemoveCssClass("ag-cell-range-top",o),this.addOrRemoveCssClass("ag-cell-range-right",n),this.addOrRemoveCssClass("ag-cell-range-bottom",i),this.addOrRemoveCssClass("ag-cell-range-left",r)},n.prototype.onFirstRightPinnedChanged=function(){var t=this.column.isFirstRightPinned();this.firstRightPinned!==t&&(this.firstRightPinned=t,this.addOrRemoveCssClass("ag-cell-first-right-pinned",t))},n.prototype.onLastLeftPinnedChanged=function(){var t=this.column.isLastLeftPinned();this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.addOrRemoveCssClass("ag-cell-last-left-pinned",t))},n.prototype.populateTemplate=function(){this.usingWrapper?(this.eCellValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeDndSourceComponent&&this.addDndSource(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eCellValue=this.getGui()},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.addRowDragging=function(){var t=this,e=this.beans.gridOptionsWrapper.isPagination(),o=this.beans.gridOptionsWrapper.isRowDragManaged(),n=this.beans.gridOptionsWrapper.isRowModelDefault();if(o){if(!n)return void U((function(){return console.warn("ag-Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(e)return void U((function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var i=new es(this.rowNode,this.column,(function(){return t.value}),this.beans);this.createManagedBean(i,this.beans.context),this.eCellWrapper.insertBefore(i.getGui(),this.eCellValue)},n.prototype.addDndSource=function(){var t=new us(this.rowNode,this.column,this.getValueToUse(),this.beans,this.getGui());this.createManagedBean(t,this.beans.context),this.eCellWrapper.insertBefore(t.getGui(),this.eCellValue)},n.prototype.addSelectionCheckbox=function(){var t=this,e=new yi;this.beans.context.createBean(e);var o=this.getComponentHolder().checkboxSelection;o="function"==typeof o?o:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:o}),this.addDestroyFunc((function(){return t.beans.context.destroyBean(e)})),this.eCellWrapper.insertBefore(e.getGui(),this.eCellValue)},n.prototype.addDomData=function(){var t=this,e=this.getGui();this.beans.gridOptionsWrapper.setDomData(e,n.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return t.beans.gridOptionsWrapper.setDomData(e,n.DOM_DATA_KEY_CELL_COMP,null)}))},n.prototype.isSingleCell=function(){var t=this.beans.rangeController;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},n.prototype.onCellFocused=function(t){var e=this.beans.focusController.isCellFocused(this.cellPosition);e!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.addOrRemoveCssClass("ag-cell-focus",e),this.cellFocused=e);if(e&&t&&t.forceBrowserFocus){var o=this.getFocusableElement();o.focus(),document.activeElement&&document.activeElement!==document.body||o.focus()}var n=this.beans.gridOptionsWrapper.isFullRowEdit();e||n||!this.editingCell||this.stopRowOrCellEdit()},n.prototype.stopRowOrCellEdit=function(t){void 0===t&&(t=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(t):this.stopEditing(t)},n.prototype.stopEditing=function(t){if(void 0===t&&(t=!1),this.editingCell)if(this.cellEditor){var e,o=this.getValue(),n=!1;if(!t)this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(e=this.cellEditor.getValue(),n=!0);if(this.editingCell=!1,this.cellEditor=this.beans.context.destroyBean(this.cellEditor),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(Je(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var i=this.cellRendererGui;i&&this.getGui().appendChild(i)}this.setInlineEditingClass(),this.refreshHandle(),n&&e!==o&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,e),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var r=vs(vs({},this.createEvent(null,Ht.EVENT_CELL_EDITING_STOPPED)),{oldValue:o,newValue:e});this.beans.eventService.dispatchEvent(r)}else this.editingCell=!1},n.DOM_DATA_KEY_CELL_COMP="cellComp",n.CELL_RENDERER_TYPE_NORMAL="cellRenderer",n.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",n}(Fn),Cs=function(){return(Cs=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},ws=function(){function t(){}return t.createChildScopeOrNull=function(t,e,o){if(!o.isAngularCompileRows())return null;var n=e.$new();n.data=Cs({},t.data),n.rowNode=t,n.context=o.getContext();return{scope:n,scopeDestroyFunc:function(){n.$destroy(),n.data=null,n.rowNode=null,n.context=null}}},t}(),Es=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Rs=function(t){function n(e,o,n,i,r,s,a,l,p,u,c){var d=t.call(this)||this;return d.eAllRowContainers=[],d.fullWidthRowDestroyFuncs=[],d.active=!0,d.rowContainerReadyCount=0,d.refreshNeeded=!1,d.columnRefreshPending=!1,d.cellComps={},d.createSecondPassFuncs=[],d.removeFirstPassFuncs=[],d.removeSecondPassFuncs=[],d.initialised=!1,d.elementOrderChanged=!1,d.lastMouseDownOnDragger=!1,d.parentScope=e,d.beans=a,d.bodyContainerComp=o,d.pinnedLeftContainerComp=n,d.pinnedRightContainerComp=i,d.fullWidthContainerComp=r,d.rowNode=s,d.rowIsEven=d.rowNode.rowIndex%2==0,d.paginationPage=d.beans.paginationProxy.getCurrentPage(),d.useAnimationFrameForCreate=p,d.printLayout=u,d.embedFullWidth=c,d.setAnimateFlags(l),d}return Es(n,t),n.prototype.init=function(){var t=this;this.rowFocused=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.setupAngular1Scope(),this.rowLevel=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){t.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){t.eAllRowContainers.forEach((function(t){return Ve(t,"ag-opacity-zero")}))}))},n.prototype.setupAngular1Scope=function(){var t=ws.createChildScopeOrNull(this.rowNode,this.parentScope,this.beans.gridOptionsWrapper);t&&(this.scope=t.scope,this.addDestroyFunc(t.scopeDestroyFunc))},n.prototype.createTemplate=function(t,e){void 0===e&&(e=null);var o=[],n=this.rowNode.rowHeight,i=this.getInitialRowClasses(e).join(" "),r=Kt(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=Kt(a),p=this.getInitialRowTopStyle(),u=this.rowNode.getRowIndexString(),c=this.beans.headerNavigationService.getHeaderRowCount();return o.push("<div"),o.push(' role="row"'),o.push(' row-index="'+u+'" aria-rowindex="'+(c+this.rowNode.rowIndex+1)+'"'),o.push(r?' row-id="'+r+'"':""),o.push(a?' row-business-key="'+l+'"':""),o.push(' comp-id="'+this.getCompId()+'"'),o.push(' class="'+i+'"'),this.beans.gridOptionsWrapper.isRowSelection()&&o.push(' aria-selected="'+(this.rowNode.isSelected()?"true":"false")+'"'),this.rowNode.group&&o.push(" aria-expanded="+(this.rowNode.expanded?"true":"false")),o.push(' style="height: '+n+"px; "+p+" "+s+'">'),o.push(t),o.push("</div>"),o.join("")},n.prototype.getCellForCol=function(t){var e=this.cellComps[t.getColId()];return e?e.getGui():null},n.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},n.prototype.executeProcessRowPostCreateFunc=function(){var t=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();t&&t({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},n.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var t=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,e=this.applyPaginationOffset(t),o=this.rowNode.isRowPinned()?e:this.beans.maxDivHeightScaler.getRealPixelPosition(e);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+o+"px; ":"transform: translateY("+o+"px);"},n.prototype.getRowBusinessKey=function(){var t=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof t)return t(this.rowNode)},n.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},n.prototype.lazyCreateCells=function(t,e){if(this.active){var o=this.createCells(t);e.innerHTML=o.template,this.callAfterRowAttachedOnCells(o.cellComps,e),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},n.prototype.createRowContainer=function(t,e,o){var n=this,i=this.useAnimationFrameForCreate,r=i?{cellComps:[],template:""}:this.createCells(e),s=this.createTemplate(r.template);t.appendRowTemplate(s,(function(){var s=t.getRowElement(n.getCompId());n.refreshAriaLabel(s,n.rowNode.isSelected()),n.afterRowAttached(t,s),o(s),i?n.beans.taskQueue.createTask(n.lazyCreateCells.bind(n,e,s),n.rowNode.rowIndex,"createTasksP1"):(n.callAfterRowAttachedOnCells(r.cellComps,s),n.rowContainerReadyCount=3)}))},n.prototype.setupRowContainers=function(){var t=this.rowNode.isFullWidthCell(),e=this.beans.doingMasterDetail&&this.rowNode.detail,o=this.beans.columnController.isPivotMode(),i=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(o);this.rowNode.stub?this.createFullWidthRows(n.LOADING_CELL_RENDERER,n.LOADING_CELL_RENDERER_COMP_NAME,!1):e?this.createFullWidthRows(n.DETAIL_CELL_RENDERER,n.DETAIL_CELL_RENDERER_COMP_NAME,!0):t?this.createFullWidthRows(n.FULL_WIDTH_CELL_RENDERER,null,!1):i?this.createFullWidthRows(n.GROUP_ROW_RENDERER,n.GROUP_ROW_RENDERER_COMP_NAME,!1):this.setupNormalRowContainers()},n.prototype.setupNormalRowContainers=function(){var t,e=this,o=[],n=[];this.printLayout?t=this.beans.columnController.getAllDisplayedColumns():(t=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,t,(function(t){return e.eBodyRow=t})),this.createRowContainer(this.pinnedRightContainerComp,n,(function(t){return e.ePinnedRightRow=t})),this.createRowContainer(this.pinnedLeftContainerComp,o,(function(t){return e.ePinnedLeftRow=t}))},n.prototype.createFullWidthRows=function(t,e,o){var n=this;if(this.fullWidthRow=!0,this.embedFullWidth){if(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,t,e,(function(t){n.eFullWidthRowBody=t}),(function(t){n.fullWidthRowComponentBody=t}),o),this.printLayout)return;this.createFullWidthRowContainer(this.pinnedLeftContainerComp,dt.PINNED_LEFT,"ag-cell-last-left-pinned",t,e,(function(t){n.eFullWidthRowLeft=t}),(function(t){n.fullWidthRowComponentLeft=t}),o),this.createFullWidthRowContainer(this.pinnedRightContainerComp,dt.PINNED_RIGHT,"ag-cell-first-right-pinned",t,e,(function(t){n.eFullWidthRowRight=t}),(function(t){n.fullWidthRowComponentRight=t}),o)}else this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,t,e,(function(t){n.eFullWidthRow=t}),(function(t){n.fullWidthRowComponent=t}),o)},n.prototype.setAnimateFlags=function(t){if(t){var o=e(this.rowNode.oldRowTop);this.slideRowIn=o,this.fadeRowIn=!o}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(t){this.stopEditing(t)},n.prototype.isFullWidth=function(){return this.fullWidthRow},n.prototype.refreshFullWidth=function(){var t=this,e=function(e,o,n){if(!e||!o)return!0;if(!o.refresh)return!1;var i=t.createFullWidthParams(e,n);return o.refresh(i)},o=e(this.eFullWidthRow,this.fullWidthRowComponent,null),n=e(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),i=e(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,dt.PINNED_LEFT),r=e(this.eFullWidthRowRight,this.fullWidthRowComponentRight,dt.PINNED_RIGHT);return o&&n&&i&&r},n.prototype.addListeners=function(){this.addManagedListener(this.rowNode,hi.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,hi.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,Ht.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,Ht.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,Ht.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,Ht.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(t,Ht.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(t,Ht.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,Ht.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,Ht.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.addListenersForCellComps=function(){var t=this;this.addManagedListener(this.rowNode,hi.EVENT_ROW_INDEX_CHANGED,(function(){t.forEachCellComp((function(t){return t.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,hi.EVENT_CELL_CHANGED,(function(e){t.forEachCellComp((function(t){return t.onCellChanged(e)}))}))},n.prototype.onRowNodeDataChanged=function(t){this.forEachCellComp((function(e){return e.refreshCell({suppressFlash:!t.update,newData:!t.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var t=this.rowNode.highlighted;this.eAllRowContainers.forEach((function(e){Ve(e,"ag-row-highlight-above"),Ve(e,"ag-row-highlight-below"),t&&xe(e,"ag-row-highlight-"+t)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var t=this.rowNode.dragging;this.eAllRowContainers.forEach((function(e){return We(e,"ag-row-dragging",t)}))},n.prototype.updateExpandedCss=function(){var t=this.rowNode.isExpandable(),e=1==this.rowNode.expanded;this.eAllRowContainers.forEach((function(o){We(o,"ag-row-group",t),We(o,"ag-row-group-expanded",t&&e),We(o,"ag-row-group-contracted",t&&!e),xo(o,t&&e)}))},n.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.destroyFullWidthComponents=function(){this.fullWidthRowDestroyFuncs.forEach((function(t){return t()})),this.fullWidthRowDestroyFuncs=[],this.fullWidthRowComponent&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponent),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponentBody),this.fullWidthRowComponentBody=null),this.fullWidthRowComponentLeft&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,dt.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,dt.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponentRight=null)},n.prototype.getContainerForCell=function(t){switch(t){case dt.PINNED_LEFT:return this.ePinnedLeftRow;case dt.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},n.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},n.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.createTask(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex,"createTasksP1")}else this.refreshNeeded=!0},n.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var t,e,o;this.columnRefreshPending=!1,this.printLayout?(t=this.beans.columnController.getAllDisplayedColumns(),e=[],o=[]):(t=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),e=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,t),this.insertCellsIntoContainer(this.ePinnedLeftRow,e),this.insertCellsIntoContainer(this.ePinnedRightRow,o),this.elementOrderChanged=!1;var n=Object.keys(this.cellComps);t.forEach((function(t){return g(n,t.getId())})),e.forEach((function(t){return g(n,t.getId())})),o.forEach((function(t){return g(n,t.getId())}));var i=n.filter(this.isCellEligibleToBeRemoved.bind(this));this.destroyCells(i)}},n.prototype.onColumnMoved=function(){this.elementOrderChanged=!0},n.prototype.destroyCells=function(t){var e=this;t.forEach((function(t){var n=e.cellComps[t];o(n)||(n.detach(),n.destroy(),e.cellComps[t]=null)}))},n.prototype.isCellEligibleToBeRemoved=function(t){var e=this.beans.columnController.getAllDisplayedColumns(),o=this.cellComps[t];if(!o||this.isCellInWrongRow(o))return!0;var n=o.isEditing(),i=this.beans.focusController.isCellFocused(o.getCellPosition());if(n||i){var r=o.getColumn();return!(e.indexOf(r)>=0)}return!0},n.prototype.ensureCellInCorrectContainer=function(t){if(!this.printLayout){var e=t.getGui(),o=t.getColumn().getPinned(),n=this.getContainerForCell(o),i=t.getParentRow();i!==n&&(i&&i.removeChild(e),n.appendChild(e),t.setParentRow(n),this.elementOrderChanged=!0)}},n.prototype.isCellInWrongRow=function(t){var e=t.getColumn(),o=this.getContainerForCell(e.getPinned());return t.getParentRow()!==o},n.prototype.insertCellsIntoContainer=function(t,e){var o=this;if(t){var n=[],i=[];if(e.forEach((function(e){var r=e.getId(),s=o.cellComps[r];s&&s.getColumn()==e?o.ensureCellInCorrectContainer(s):(s&&o.destroyCells([r]),o.createNewCell(e,t,n,i))})),n.length>0&&(no(t,n.join("")),this.callAfterRowAttachedOnCells(i,t)),this.elementOrderChanged&&this.beans.gridOptionsWrapper.isEnsureDomOrder()){var r=e.map((function(t){return o.getCellForCol(t)}));ao(t,r)}}},n.prototype.addDomData=function(t){var e=this.beans.gridOptionsWrapper;e.setDomData(t,n.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){e.setDomData(t,n.DOM_DATA_KEY_RENDERED_ROW,null)}))},n.prototype.createNewCell=function(t,e,o,n){var i=new ms(this.scope,this.beans,t,this.rowNode,this,!1,this.printLayout),r=i.getCreateTemplate();o.push(r),n.push(i),this.cellComps[t.getId()]=i,i.setParentRow(e),this.elementOrderChanged=!0},n.prototype.onMouseEvent=function(t,e){switch(t){case"dblclick":this.onRowDblClick(e);break;case"click":this.onRowClick(e);break;case"mousedown":this.onRowMouseDown(e)}},n.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.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:e}},n.prototype.createRowEventWithSource=function(t,e){var o=this.createRowEvent(t,e);return o.source=this,o},n.prototype.onRowDblClick=function(t){if(!Pt(t)){var e=this.createRowEventWithSource(Ht.EVENT_ROW_DOUBLE_CLICKED,t);this.beans.eventService.dispatchEvent(e)}},n.prototype.onRowMouseDown=function(t){this.lastMouseDownOnDragger=Ue(t.target,"ag-row-drag",3)},n.prototype.onRowClick=function(t){if(!(Pt(t)||this.lastMouseDownOnDragger)){var e=this.createRowEventWithSource(Ht.EVENT_ROW_CLICKED,t);this.beans.eventService.dispatchEvent(e);var o=t.ctrlKey||t.metaKey,n=t.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var i=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),r=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())i?this.rowNode.setSelectedParams({newValue:!1}):o?r&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!i&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:n})}}}},n.prototype.createFullWidthRowContainer=function(t,e,o,n,i,r,s,a){var l=this,p=this.createTemplate("",o);t.appendRowTemplate(p,(function(){var o=t.getRowElement(l.getCompId()),p=l.createFullWidthParams(o,e),u=function(t){if(l.isAlive()){var e=t.getGui();o.appendChild(e),a&&l.setupDetailRowAutoHeight(e),s(t)}else l.beans.context.destroyBean(t)},c=l.beans.detailRowCompCache.get(l.rowNode,e);if(c)u(c);else{var d=l.beans.userComponentFactory.newFullWidthCellRenderer(p,n,i);if(!d){var h=ht.isRegistered(lt.MasterDetailModule);return void("agDetailCellRenderer"!==i||h?console.error("ag-Grid: fullWidthCellRenderer "+i+" not found"):console.warn("ag-Grid: cell renderer agDetailCellRenderer (for master detail) not found. Did you forget to include the master detail module?"))}d.then(u)}l.afterRowAttached(t,o),r(o),l.angular1Compile(o)}))},n.prototype.setupDetailRowAutoHeight=function(t){var e=this;if(this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){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)}},n=this.beans.resizeObserverService.observeResize(t,o);this.fullWidthRowDestroyFuncs.push(n),o()}},n.prototype.angular1Compile=function(t){this.scope&&this.beans.$compile(t)(this.scope)},n.prototype.createFullWidthParams=function(t,e){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:t,eParentOfValue:t,pinned:e,addRenderedRowListener:this.addEventListener.bind(this)}},n.prototype.getInitialRowClasses=function(t){var e={rowNode:this.rowNode,extraCssClass:t,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowIsEven,rowLevel:this.rowLevel,fullWidthRow:this.fullWidthRow,firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),scope:this.scope};return this.beans.rowCssClassCalculator.getInitialRowClasses(e)},n.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.eAllRowContainers.forEach((function(t){xe(t,e),Ve(t,o)}))}this.rowLevel=t},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){var t=this.isFirstRowOnPage(),e=this.isLastRowOnPage();this.firstRowOnPage!==t&&(this.firstRowOnPage=t,this.eAllRowContainers.forEach((function(e){return We(e,"ag-row-first",t)}))),this.lastRowOnPage!==e&&(this.lastRowOnPage=e,this.eAllRowContainers.forEach((function(t){return We(t,"ag-row-last",e)})))},n.prototype.stopEditing=function(t){if(void 0===t&&(t=!1),this.forEachCellComp((function(e){e.stopEditing(t)})),this.editingRow){if(!t){var e=this.createRowEvent(Ht.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(e)}this.setEditingRow(!1)}},n.prototype.setEditingRow=function(t){this.editingRow=t,this.eAllRowContainers.forEach((function(e){return We(e,"ag-row-editing",t)}));var e=t?this.createRowEvent(Ht.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Ht.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(e)},n.prototype.startRowEditing=function(t,e,o){void 0===t&&(t=null),void 0===e&&(e=null),void 0===o&&(o=null),this.editingRow||(this.forEachCellComp((function(n){var i=n===o;i?n.startEditingIfEnabled(t,e,i):n.startEditingIfEnabled(null,null,i)})),this.setEditingRow(!0))},n.prototype.forEachCellComp=function(t){T(this.cellComps,(function(e,o){o&&t(o)}))},n.prototype.postProcessClassesFromGridOptions=function(){var t=this,e=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);e&&e.length&&e.forEach((function(e){t.eAllRowContainers.forEach((function(t){return xe(t,e)}))}))},n.prototype.postProcessRowClassRules=function(){var t=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,this.scope,(function(e){t.eAllRowContainers.forEach((function(t){return xe(t,e)}))}),(function(e){t.eAllRowContainers.forEach((function(t){return Ve(t,e)}))}))},n.prototype.preProcessStylesFromGridOptions=function(){return bo(this.processStylesFromGridOptions())},n.prototype.postProcessStylesFromGridOptions=function(){var t=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(e){return po(e,t)}))},n.prototype.processStylesFromGridOptions=function(){var t=this.beans.gridOptionsWrapper.getRowStyle();if(!t||"function"!=typeof t){var e,o=this.beans.gridOptionsWrapper.getRowStyleFunc();if(o)e=o({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope});return G({},t,e)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.createCells=function(t){var e=this,o=[],n=[];return t.forEach((function(t){var i=new ms(e.scope,e.beans,t,e.rowNode,e,!1,e.printLayout),r=i.getCreateTemplate();o.push(r),n.push(i),e.cellComps[t.getId()]=i})),{template:o.join(""),cellComps:n}},n.prototype.onRowSelected=function(){var t=this,e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(o){Xo(o,e),We(o,"ag-row-selected",e),t.refreshAriaLabel(o,e)}))},n.prototype.refreshAriaLabel=function(t,e){e&&this.beans.gridOptionsWrapper.isSuppressRowDeselection()?t.removeAttribute("aria-label"):Lo(t,"Press SPACE to "+(e?"deselect":"select")+" this row.")},n.prototype.callAfterRowAttachedOnCells=function(t,e){var o=this;t.forEach((function(t){t.setParentRow(e),t.afterAttached(),o.editingRow&&t.startEditingIfEnabled()}))},n.prototype.afterRowAttached=function(t,o){var n=this;this.addDomData(o),this.removeSecondPassFuncs.push((function(){t.removeRowElement(o)})),this.removeFirstPassFuncs.push((function(){if(e(n.rowNode.rowTop)){var t=n.roundRowTopToBounds(n.rowNode.rowTop);n.setRowTop(t)}else xe(o,"ag-opacity-zero")})),this.eAllRowContainers.push(o),this.useAnimationFrameForCreate?this.beans.taskQueue.createTask(this.addHoverFunctionality.bind(this,o),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(o)},n.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,hi.EVENT_MOUSE_ENTER,(function(){e.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||xe(t,"ag-row-hover")})),this.addManagedListener(this.rowNode,hi.EVENT_MOUSE_LEAVE,(function(){Ve(t,"ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(t){var e=this.beans.gridPanel.getVScrollPosition(),o=this.applyPaginationOffset(e.top,!0)-100,n=this.applyPaginationOffset(e.bottom,!0)+100;return Math.min(Math.max(o,t),n)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(e(this.rowNode.rowHeight)){var t=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach((function(e){return e.style.height=t}))}},n.prototype.addEventListener=function(e,o){"renderedRowRemoved"!==e&&"rowRemoved"!==e||(e=Ht.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+Ht.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.addEventListener.call(this,e,o)},n.prototype.removeEventListener=function(e,o){"renderedRowRemoved"!==e&&"rowRemoved"!==e||(e=Ht.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Ht.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.removeEventListener.call(this,e,o)},n.prototype.destroy=function(e){(void 0===e&&(e=!1),this.active=!1,this.destroyFullWidthComponents(),e)?(this.removeFirstPassFuncs.forEach((function(t){return t()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(t){return t()})));var o=this.createRowEvent(Ht.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(o),this.beans.eventService.dispatchEvent(o),t.prototype.destroy.call(this)},n.prototype.destroyContainingCells=function(){var t=Object.keys(this.cellComps);this.destroyCells(t)},n.prototype.getAndClearDelayedDestroyFunctions=function(){var t=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],t},n.prototype.onCellFocusChanged=function(){var t=this.beans.focusController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.eAllRowContainers.forEach((function(e){return We(e,"ag-row-focus",t)})),this.eAllRowContainers.forEach((function(e){return We(e,"ag-row-no-focus",!t)})),this.rowFocused=t),!t&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var t=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==t&&(this.paginationPage=t,this.onTopChanged())},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},n.prototype.applyPaginationOffset=function(t,e){return void 0===e&&(e=!1),this.rowNode.isRowPinned()?t:t+this.beans.paginationProxy.getPixelOffset()*(e?1:-1)},n.prototype.setRowTop=function(t){if(!this.printLayout&&e(t)){var o=this.applyPaginationOffset(t),n=(this.rowNode.isRowPinned()?o:this.beans.maxDivHeightScaler.getRealPixelPosition(o))+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(t){return t.style.top=n})):this.eAllRowContainers.forEach((function(t){return t.style.transform="translateY("+n+")"}))}},n.prototype.getAndClearNextVMTurnFunctions=function(){var t=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],t},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getRenderedCellForColumn=function(t){var e=this,o=this.cellComps[t.getColId()];if(o)return o;var n=Object.keys(this.cellComps).map((function(t){return e.cellComps[t]})).filter((function(e){return e&&-1!==e.getColSpanningList().indexOf(t)}));return n.length?n[0]:void 0},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes())},n.prototype.updateRowIndexes=function(){var t=this,e=this.rowNode.getRowIndexString(),o=this.rowNode.rowIndex%2==0,n=this.rowIsEven!==o,i=this.beans.headerNavigationService.getHeaderRowCount();n&&(this.rowIsEven=o),this.eAllRowContainers.forEach((function(r){r.setAttribute("row-index",e),jo(r,i+t.rowNode.rowIndex+1),n&&(We(r,"ag-row-even",o),We(r,"ag-row-odd",!o))}))},n.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(t){t.el&&t.ct.ensureDomOrder(t.el)}))},n.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},n.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},n.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},n.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},n.DOM_DATA_KEY_RENDERED_ROW="renderedRow",n.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",n.GROUP_ROW_RENDERER="groupRowRenderer",n.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",n.LOADING_CELL_RENDERER="loadingCellRenderer",n.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",n.DETAIL_CELL_RENDERER="detailCellRenderer",n.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",n}(Fn),Os=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ps=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},bs=function(t,e){return function(o,n){e(o,n,t)}},Ss=(function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCompsByIndex={},e.floatingTopRowComps=[],e.floatingBottomRowComps=[],e.refreshInProgress=!1,e}Os(n,t),n.prototype.registerGridCore=function(t){this.gridCore=t},n.prototype.getGridCore=function(){return this.gridCore},n.prototype.agWire=function(t){this.logger=t.create("RowRenderer")},n.prototype.registerGridComp=function(t){this.gridPanel=t,this.rowContainers=this.gridPanel.getRowContainers(),this.addManagedListener(this.eventService,Ht.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},n.prototype.registerCellEventListeners=function(){var t=this;this.addManagedListener(this.eventService,Ht.EVENT_CELL_FOCUSED,(function(e){t.forEachCellComp((function(t){return t.onCellFocused(e)}))})),this.addManagedListener(this.eventService,Ht.EVENT_FLASH_CELLS,(function(e){t.forEachCellComp((function(t){return t.onFlashCells(e)}))})),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_HOVER_CHANGED,(function(){t.forEachCellComp((function(t){return t.onColumnHover()}))})),this.addManagedListener(this.eventService,Ht.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){t.printLayout&&t.forEachCellComp((function(t){return t.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,Ht.EVENT_RANGE_SELECTION_CHANGED,(function(){t.forEachCellComp((function(t){return t.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_MOVED,(function(){t.forEachCellComp((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_PINNED,(function(){t.forEachCellComp((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_VISIBLE,(function(){t.forEachCellComp((function(t){return t.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,Ht.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},n.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(t){return t()})),this.destroyFuncsForColumnListeners.length=0},n.prototype.refreshListenersToColumnsForCellComps=function(){var t=this;this.removeGridColumnListeners();var e=this.columnController.getAllGridColumns();e&&e.forEach((function(e){var o=function(o){t.forEachCellComp((function(t){t.getColumn()===e&&o(t)}))},n=function(){o((function(t){return t.onLeftChanged()}))},i=function(){o((function(t){return t.onWidthChanged()}))},r=function(){o((function(t){return t.onFirstRightPinnedChanged()}))},s=function(){o((function(t){return t.onLastLeftPinnedChanged()}))};e.addEventListener(gt.EVENT_LEFT_CHANGED,n),e.addEventListener(gt.EVENT_WIDTH_CHANGED,i),e.addEventListener(gt.EVENT_FIRST_RIGHT_PINNED_CHANGED,r),e.addEventListener(gt.EVENT_LAST_LEFT_PINNED_CHANGED,s),t.destroyFuncsForColumnListeners.push((function(){e.removeEventListener(gt.EVENT_LEFT_CHANGED,n),e.removeEventListener(gt.EVENT_WIDTH_CHANGED,i),e.removeEventListener(gt.EVENT_FIRST_RIGHT_PINNED_CHANGED,r),e.removeEventListener(gt.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},n.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_PRINT,e=t||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=e!==this.embedFullWidthRows||this.printLayout!==t;this.printLayout=t,this.embedFullWidthRows=e,o&&this.redrawAfterModelUpdate()},n.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},n.prototype.onPageLoaded=function(t){o(t)&&(t={type:Ht.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(t)},n.prototype.getAllCellsForColumn=function(t){var e=[];function o(o,n){var i=n.getCellForCol(t);i&&e.push(i)}return T(this.rowCompsByIndex,o),T(this.floatingBottomRowComps,o),T(this.floatingTopRowComps,o),e},n.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWidth)},n.prototype.refreshFloatingRows=function(t,e,o,n,i,r){var s=this;t.forEach((function(t){t.destroy()})),t.length=0,e&&e.forEach((function(e){var a=new Rs(s.$scope,i,o,n,r,e,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),t.push(a)})),this.flushContainers(t)},n.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},n.prototype.onModelUpdated=function(t){var e={recycleRows:t.keepRenderedRows,animate:t.animate,newData:t.newData,newPage:t.newPage,onlyBody:!0};this.redrawAfterModelUpdate(e)},n.prototype.getRenderedIndexesForRowNodes=function(t){var e=[];return o(t)||T(this.rowCompsByIndex,(function(o,n){var i=n.getRowNode();t.indexOf(i)>=0&&e.push(o)})),e},n.prototype.redrawRows=function(t){if(t&&0!=t.length){var e=this.getRenderedIndexesForRowNodes(t);this.removeRowComps(e),this.redrawAfterModelUpdate({recycleRows:!0})}},n.prototype.getCellToRestoreFocusToAfterRefresh=function(t){var e=t.suppressKeepFocus?null:this.focusController.getFocusCellToUseAfterRefresh();if(o(e))return null;var n=document.activeElement;return o(this.gridOptionsWrapper.getDomData(n,ms.DOM_DATA_KEY_CELL_COMP))?null:e},n.prototype.redrawAfterModelUpdate=function(t){void 0===t&&(t={}),this.getLockOnRefresh();var e=this.getCellToRestoreFocusToAfterRefresh(t);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(t);var o=!this.printLayout&&t.recycleRows,n=t.animate&&this.gridOptionsWrapper.isAnimateRows(),i=this.binRowComps(o),r=function(){if(null==e||null==i)return!1;var t=!1;return T(i,(function(o,n){var i=n.getRowNode(),r=i.rowIndex==e.rowIndex,s=i.rowPinned==e.rowPinned;r&&s&&(t=!0)})),t}();this.redraw(i,n),t.onlyBody||this.refreshFloatingRowComps(),r||this.restoreFocusedCell(e),this.releaseLockOnRefresh()},n.prototype.scrollToTopIfNewData=function(t){var e=t.newData||t.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();e&&!o&&this.gridPanel.scrollToTop()},n.prototype.sizeContainerToPageHeight=function(){var t=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)t.forEach((function(t){return t.setHeight(null)}));else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.maxDivHeightScaler.setModelHeight(e);var o=this.maxDivHeightScaler.getUiContainerHeight();t.forEach((function(t){return t.setHeight(o)}))}},n.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.refreshView(), call setTimeout(function() { api.refreshView(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},n.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},n.prototype.restoreFocusedCell=function(t){t&&this.focusController.setFocusedCell(t.rowIndex,t.column,t.rowPinned,!0)},n.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.forEachRowComp((function(e,o){o.stopEditing(t)}))},n.prototype.forEachCellComp=function(t){this.forEachRowComp((function(e,o){return o.forEachCellComp(t)}))},n.prototype.forEachRowComp=function(t){T(this.rowCompsByIndex,t),T(this.floatingTopRowComps,t),T(this.floatingBottomRowComps,t)},n.prototype.addRenderedRowListener=function(t,e,o){var n=this.rowCompsByIndex[e];n&&n.addEventListener(t,o)},n.prototype.flashCells=function(t){void 0===t&&(t={});var e=t.flashDelay,o=t.fadeDelay;this.forEachCellCompFiltered(t.rowNodes,t.columns,(function(t){return t.flashCell({flashDelay:e,fadeDelay:o})}))},n.prototype.refreshCells=function(t){void 0===t&&(t={});var e={forceRefresh:t.force,newData:!1,suppressFlash:t.suppressFlash};this.forEachCellCompFiltered(t.rowNodes,t.columns,(function(t){return t.refreshCell(e)}))},n.prototype.getCellRendererInstances=function(t){var e=[];return this.forEachCellCompFiltered(t.rowNodes,t.columns,(function(t){var o=t.getCellRenderer();o&&e.push(o)})),e},n.prototype.getCellEditorInstances=function(t){var e=[];return this.forEachCellCompFiltered(t.rowNodes,t.columns,(function(t){var o=t.getCellEditor();o&&e.push(o)})),e},n.prototype.getEditingCells=function(){var t=[];return this.forEachCellComp((function(e){if(e.isEditing()){var o=e.getCellPosition();t.push(o)}})),t},n.prototype.forEachCellCompFiltered=function(t,o,n){var i,r,s=this;e(t)&&(i={top:{},bottom:{},normal:{}},t.forEach((function(t){t.rowPinned===dt.PINNED_TOP?i.top[t.id]=!0:t.rowPinned===dt.PINNED_BOTTOM?i.bottom[t.id]=!0:i.normal[t.id]=!0}))),e(o)&&(r={},o.forEach((function(t){var o=s.columnController.getGridColumn(t);e(o)&&(r[o.getId()]=!0)})));var a=function(t){var o=t.getRowNode(),s=o.id,a=o.rowPinned;if(e(i))if(a===dt.PINNED_BOTTOM){if(!i.bottom[s])return}else if(a===dt.PINNED_TOP){if(!i.top[s])return}else if(!i.normal[s])return;t.forEachCellComp((function(t){var e=t.getColumn().getId();r&&!r[e]||n(t)}))};T(this.rowCompsByIndex,(function(t,e){a(e)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(a),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(a)},n.prototype.destroy=function(){var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e),t.prototype.destroy.call(this)},n.prototype.binRowComps=function(t){var o,n=this,i={};return t?(o=[],T(this.rowCompsByIndex,(function(t,r){var s=r.getRowNode();e(s.id)?(i[s.id]=r,delete n.rowCompsByIndex[t]):o.push(t)}))):o=Object.keys(this.rowCompsByIndex),this.removeRowComps(o),i},n.prototype.removeRowComps=function(t){var e=this;t.forEach((function(t){e.rowCompsByIndex[t].destroy(),delete e.rowCompsByIndex[t]}))},n.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},n.prototype.removeRowCompsNotToDraw=function(t){var e={};t.forEach((function(t){return e[t]=!0}));var o=Object.keys(this.rowCompsByIndex).filter((function(t){return!e[t]}));this.removeRowComps(o)},n.prototype.calculateIndexesToDraw=function(t){var e=this,o=te(this.firstRenderedRow,this.lastRenderedRow),n=function(t,n){var i=Number(t);(i<e.firstRenderedRow||i>e.lastRenderedRow)&&e.doNotUnVirtualiseRow(n)&&o.push(i)};return T(this.rowCompsByIndex,n),T(t,n),o.sort((function(t,e){return t-e})),o},n.prototype.redraw=function(t,o,n){var i=this;void 0===o&&(o=!1),void 0===n&&(n=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw(t);this.removeRowCompsNotToDraw(r),this.printLayout&&(o=!1);var s=[],a=[];r.forEach((function(r){var l=i.createOrUpdateRowComp(r,t,o,n);e(l)&&(a.push(l),w(s,l.getAndClearNextVMTurnFunctions()))})),this.flushContainers(a),q(s),n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addDestroyTask(this.destroyRowComps.bind(this,t,o)):this.destroyRowComps(t,o),this.checkAngularCompile(),this.gridPanel.updateRowCount()},n.prototype.flushContainers=function(t){T(this.rowContainers,(function(t,e){e&&e.flushRowTemplates()})),t.forEach((function(t){return t.afterFlush()}))},n.prototype.onDisplayedColumnsChanged=function(){var t=this.columnController.isPinningLeft(),e=this.columnController.isPinningRight();(this.pinningLeft!==t||e!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=e,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},n.prototype.redrawFullWidthEmbeddedRows=function(){var t=[];T(this.rowCompsByIndex,(function(e,o){if(o.isFullWidth()){var n=o.getRowNode().rowIndex;t.push(n.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(t),this.redrawAfterScroll()},n.prototype.refreshFullWidthRows=function(t){var e=[],o=!!t,n=o?{}:void 0;o&&t.forEach((function(t){return n[t.id]=!0})),T(this.rowCompsByIndex,(function(t,i){if(i.isFullWidth()){var r=i.getRowNode();if(o){var s=r.level>0&&r.parent?r.parent.id:void 0;if(!n[r.id]&&!n[s])return}if(!i.refreshFullWidth()){var a=i.getRowNode().rowIndex;e.push(a.toString())}}})),this.removeRowComps(e),this.redrawAfterScroll()},n.prototype.createOrUpdateRowComp=function(t,o,n,i){var r,s=this.rowCompsByIndex[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.createRowComp(r,n,i)}else s.ensureDomOrder();return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[t]=s,s},n.prototype.destroyRowComps=function(t,e){var o=[];T(t,(function(t,n){n&&(n.destroy(e),w(o,n.getAndClearDelayedDestroyFunctions()))})),Y(o)},n.prototype.checkAngularCompile=function(){var t=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){t.$scope.$apply()}),0)},n.prototype.workOutFirstAndLastRowsToRender=function(){var t,e,o=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)t=this.paginationProxy.getPageFirstRow(),e=this.paginationProxy.getPageLastRow();else{var n=this.paginationProxy.getPixelOffset(),i=this.maxDivHeightScaler.getOffset(),r=this.gridPanel.getVScrollPosition(),s=r.top,a=r.bottom,l=this.gridOptionsWrapper.getRowBufferInPixels(),p=s+n+i-l,u=a+n+i+l;this.ensureAllRowsInRangeHaveHeightsCalculated(p,u);var c=this.paginationProxy.getRowIndexAtPixel(p),d=this.paginationProxy.getRowIndexAtPixel(u),h=this.paginationProxy.getPageFirstRow(),f=this.paginationProxy.getPageLastRow();c<h&&(c=h),d>f&&(d=f),t=c,e=d}else t=0,e=-1;var g=this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_NORMAL,y=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),v=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);g&&!y&&e-t>v&&(e=t+v);var m=t!==this.firstRenderedRow,C=e!==this.lastRenderedRow;if(m||C){this.firstRenderedRow=t,this.lastRenderedRow=e;var w={type:Ht.EVENT_VIEWPORT_CHANGED,firstRow:t,lastRow:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var E={type:Ht.EVENT_FIRST_DATA_RENDERED,firstRow:t,lastRow:e,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return o.eventService.dispatchEventOnce(E)}),50)}},n.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(t,e){this.paginationProxy.ensureRowHeightsValid(t,e,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},n.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},n.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},n.prototype.doNotUnVirtualiseRow=function(t){var e=t.getRowNode(),o=this.focusController.isRowNodeFocused(e),n=t.isEditing(),i=e.detail;return!!(o||n||i)&&!!this.paginationProxy.isRowPresent(e)},n.prototype.createRowComp=function(t,e,o){var n=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=o&&!n&&!this.printLayout,r=new Rs(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,t,this.beans,e,i,this.printLayout,this.embedFullWidthRows);return r.init(),r},n.prototype.getRenderedNodes=function(){var t=this.rowCompsByIndex;return Object.keys(t).map((function(e){return t[e].getRowNode()}))},n.prototype.navigateToNextCell=function(t,n,i,r){for(var s=i,a=!1;s&&(s===i||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?n===xn.LEFT&&(s=this.getLastCellOfColSpan(s)):n===xn.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=o(s=this.cellNavigationService.getNextCellToFocus(n,s));if(a&&t&&t.keyCode===xn.UP&&(s={rowIndex:-1,rowPinned:null,column:i.column}),r){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(e(l)){var p=l({key:n,previousCellPosition:i,nextCellPosition:s||null,event:t});e(p)?(p.floating&&(U((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"),p.rowPinned=p.floating),s={rowPinned:p.rowPinned,rowIndex:p.rowIndex,column:p.column}):s=null}}if(s)if(s.rowIndex<0){var u=this.beans.headerNavigationService.getHeaderRowCount();this.focusController.focusHeaderPosition({headerRowIndex:u+s.rowIndex,column:i.column})}else{this.ensureCellVisible(s);var c=this.getComponentForCell(s);c&&(s=c.getCellPosition(),this.ensureCellVisible(s),this.focusController.setFocusedCell(s.rowIndex,s.column,s.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(s))}},n.prototype.isValidNavigateCell=function(t){var e=this.rowPositionUtils.getRowNode(t);if(e.detail||e.isFullWidthCell())return!1;if(!e.group)return!0;var o=this.columnController.isPivotMode();return!this.gridOptionsWrapper.isGroupUseEntireRow(o)},n.prototype.getLastCellOfColSpan=function(t){var e=this.getComponentForCell(t);if(!e)return t;var o=e.getColSpanningList();return 1===o.length?t:{rowIndex:t.rowIndex,column:d(o),rowPinned:t.rowPinned}},n.prototype.ensureCellVisible=function(t){o(t.rowPinned)&&this.gridPanel.ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridPanel.ensureColumnVisible(t.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},n.prototype.startEditingCell=function(t,e,o){var n=this.getComponentForCell(t);n&&n.startRowOrCellEdit(e,o)},n.prototype.getComponentForCell=function(t){var e;switch(t.rowPinned){case dt.PINNED_TOP:e=this.floatingTopRowComps[t.rowIndex];break;case dt.PINNED_BOTTOM:e=this.floatingBottomRowComps[t.rowIndex];break;default:e=this.rowCompsByIndex[t.rowIndex]}return e?e.getRenderedCellForColumn(t.column):null},n.prototype.getRowNode=function(t){switch(t.rowPinned){case dt.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case dt.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},n.prototype.onTabKeyDown=function(t,e){var o=e.shiftKey;if(this.moveToCellAfter(t,o))e.preventDefault();else if(o){var n=t.getCellPosition(),i=n.rowIndex;if(n.rowPinned?0===i:i===this.paginationProxy.getPageFirstRow()){e.preventDefault();var r=this.beans.headerNavigationService.getHeaderRowCount()-1,s=d(this.columnController.getAllDisplayedColumns());this.focusController.focusHeaderPosition({headerRowIndex:r,column:s})}}else t.focusCell(!0),this.focusController.focusNextGridCoreContainer(!1)&&e.preventDefault()},n.prototype.tabToNextCell=function(t){var e=this.focusController.getFocusedCell();if(o(e))return!1;var n=this.getComponentForCell(e);return!o(n)&&this.moveToCellAfter(n,t)},n.prototype.moveToCellAfter=function(t,e){return(t.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(t,e):this.moveToNextEditingCell(t,e):this.moveToNextCellNotEditing(t,e))||!!this.focusController.getFocusedHeader()},n.prototype.moveToNextEditingCell=function(t,o){var n=t.getCellPosition();t.stopEditing();var i=this.findNextCellToFocusOn(n,o,!0),r=e(i);return r&&(i.startEditingIfEnabled(null,null,!0),i.focusCell(!1)),r},n.prototype.moveToNextEditingRow=function(t,o){var n=t.getCellPosition(),i=this.findNextCellToFocusOn(n,o,!0),r=e(i);return r&&this.moveEditToNextCellOrRow(t,i),r},n.prototype.moveToNextCellNotEditing=function(t,o){var n=t.getCellPosition(),i=this.findNextCellToFocusOn(n,o,!1),r=e(i);return r&&i.focusCell(!0),r},n.prototype.moveEditToNextCellOrRow=function(t,e){var o=t.getCellPosition(),n=e.getCellPosition();if(o.rowIndex===n.rowIndex&&o.rowPinned===n.rowPinned)t.setFocusOutOnEditor(),e.setFocusInOnEditor();else{var i=t.getRenderedRow(),r=e.getRenderedRow();t.setFocusOutOnEditor(),i.stopEditing(),r.startRowEditing(),e.setFocusInOnEditor()}e.focusCell()},n.prototype.findNextCellToFocusOn=function(t,n,i){for(var r=t;;){n||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,n);var s=this.gridOptionsWrapper.getTabToNextCellFunc();if(e(s)){var a=s({backwards:n,editing:i,previousCellPosition:t,nextCellPosition:r||null});e(a)?(a.floating&&(U((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"),a.rowPinned=a.floating),r={rowIndex:a.rowIndex,column:a.column,rowPinned:a.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var l=this.beans.headerNavigationService.getHeaderRowCount();return this.focusController.focusHeaderPosition({headerRowIndex:l+r.rowIndex,column:r.column}),null}if(i){var p=this.lookupRowNodeForCell(r);if(!r.column.isCellEditable(p))continue}o(r.rowPinned)&&this.gridPanel.ensureIndexVisible(r.rowIndex),r.column.isPinned()||this.gridPanel.ensureColumnVisible(r.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var u=this.getComponentForCell(r);if(!o(u)&&!u.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(r),u}},n.prototype.lookupRowNodeForCell=function(t){return t.rowPinned===dt.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(t.rowIndex):t.rowPinned===dt.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(t.rowIndex):this.paginationProxy.getRow(t.rowIndex)},Ps([nt("paginationProxy")],n.prototype,"paginationProxy",void 0),Ps([nt("columnController")],n.prototype,"columnController",void 0),Ps([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Ps([nt("$scope")],n.prototype,"$scope",void 0),Ps([nt("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Ps([nt("rowModel")],n.prototype,"rowModel",void 0),Ps([nt("loggerFactory")],n.prototype,"loggerFactory",void 0),Ps([nt("focusController")],n.prototype,"focusController",void 0),Ps([nt("cellNavigationService")],n.prototype,"cellNavigationService",void 0),Ps([nt("columnApi")],n.prototype,"columnApi",void 0),Ps([nt("gridApi")],n.prototype,"gridApi",void 0),Ps([nt("beans")],n.prototype,"beans",void 0),Ps([nt("maxDivHeightScaler")],n.prototype,"maxDivHeightScaler",void 0),Ps([nt("animationFrameService")],n.prototype,"animationFrameService",void 0),Ps([nt("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),Ps([it("rangeController")],n.prototype,"rangeController",void 0),Ps([bs(0,st("loggerFactory"))],n.prototype,"agWire",null),n=Ps([ot("rowRenderer")],n)}(Gt),function(){function t(){}return t.addHeaderClassesFromColDef=function(t,e,n,i,r){o(t)||this.addColumnClassesFromCollDef(t.headerClass,t,e,n,i,r)},t.addToolPanelClassesFromColDef=function(t,e,n,i,r){o(t)||this.addColumnClassesFromCollDef(t.toolPanelClass,t,e,n,i,r)},t.addColumnClassesFromCollDef=function(t,e,n,i,r,s){if(!o(t)){var a;if("function"==typeof t)a=t({colDef:e,column:r,columnGroup:s,context:i.getContext(),api:i.getApi()});else a=t;"string"==typeof a?xe(n,a):Array.isArray(a)&&a.forEach((function(t){xe(n,t)}))}},t}()),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ts=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_s=function(t){function e(e,o){var n=t.call(this)||this;return n.columns=e,n.element=o,n}return Ds(e,t),e.prototype.postConstruct=function(){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)},Ts([nt("columnHoverService")],e.prototype,"columnHoverService",void 0),Ts([tt],e.prototype,"postConstruct",null),e}(Gt),As=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Fs=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ns=function(t){function o(e,o,n,i){var r=t.call(this)||this;return r.columnOrGroup=e,r.eCell=o,r.ariaEl=r.eCell.querySelector("[role=columnheader]")||r.eCell,r.colsSpanning=i,r.beans=n,r.printLayout=n.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_PRINT,r}return As(o,t),o.prototype.setColsSpanning=function(t){this.colsSpanning=t,this.onLeftChanged()},o.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?d(this.colsSpanning):this.columnOrGroup},o.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,gt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},o.prototype.setLeftFirstTime=function(){var t=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),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().getLeft(),o=this.getColumnOrGroup().getOldLeft();this.setLeft(o),this.actualLeft=e,this.beans.columnAnimationService.executeNextVMTurn((function(){t.actualLeft===e&&t.setLeft(e)}))},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){return this.printLayout?t.getPinned()===dt.PINNED_LEFT?e:t.getPinned()===dt.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},o.prototype.setLeft=function(t){var o;if(e(t)&&(this.eCell.style.left=t+"px"),this.columnOrGroup instanceof gt)o=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&Ko(this.ariaEl,n.length),o=n[0]}var i=this.beans.columnController.getAriaColumnIndex(o);zo(this.ariaEl,i)},Fs([tt],o.prototype,"postConstruct",null),o}(Gt),Ls=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Is=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ms=function(t){function e(e,o){var n=t.call(this,o)||this;return n.labelSeparator="",n.labelAlignment="left",n.label="",n.config=e||{},n}return Ls(e,t),e.prototype.postConstruct=function(){xe(this.getGui(),"ag-labeled"),xe(this.eLabel,"ag-label");var t=this.config,e=t.labelSeparator,o=t.label,n=t.labelWidth,i=t.labelAlignment;null!=e&&this.setLabelSeparator(e),null!=o&&this.setLabel(o),null!=n&&this.setLabelWidth(n),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()},e.prototype.refreshLabel=function(){Je(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.eLabel.appendChild(this.label),We(this.eLabel,"ag-hidden",""===this.label)},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();return We(e,"ag-label-align-left","left"===t),We(e,"ag-label-align-right","right"===t),We(e,"ag-label-align-top","top"===t),this},e.prototype.setLabelWidth=function(t){return null==this.label||ho(this.eLabel,t),this},Is([tt],e.prototype,"postConstruct",null),e}(Fn),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xs=function(t){function e(e,o,n){var i=t.call(this,e,o)||this;return i.className=n,i.disabled=!1,i}return Gs(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),xe(this.getGui(),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 fo(this.getGui(),t),this},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t,o){return this.value===t||(this.value=t,o||this.dispatchEvent({type:e.EVENT_CHANGED})),this},e.prototype.setDisabled=function(t){t=!!t;var e=this.getGui();return je(e,t),We(e,"ag-disabled",t),this.disabled=t,this},e.prototype.isDisabled=function(){return!!this.disabled},e.EVENT_CHANGED="valueChange",e}(Ms),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ws=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hs=function(t){function o(e,o,n,i){void 0===n&&(n="text"),void 0===i&&(i="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                    <'+i+' ref="eInput" class="ag-input-field-input"></'+i+">\n                </div>\n            </div>",o)||this;return r.inputType=n,r.displayFieldTag=i,r}return Vs(o,t),o.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setInputType(),xe(this.eLabel,this.className+"-label"),xe(this.eWrapper,this.className+"-input-wrapper"),xe(this.eInput,this.className+"-input"),xe(this.getGui(),"ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var e=this.config,o=e.width,n=e.value;null!=o&&this.setWidth(o),null!=n&&this.setValue(n),this.addInputListeners()},o.prototype.refreshLabel=function(){e(this.getLabel())?Io(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 ho(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 Ro(this.eInput,"placeholder",t),this},o.prototype.setInputAriaLabel=function(t){return Lo(this.eInput,t),this},o.prototype.setDisabled=function(e){return je(this.eInput,e),t.prototype.setDisabled.call(this,e)},Ws([In("eLabel")],o.prototype,"eLabel",void 0),Ws([In("eWrapper")],o.prototype,"eWrapper",void 0),Ws([In("eInput")],o.prototype,"eInput",void 0),o}(xs),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Bs=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},js=function(t){function e(e,o,n){void 0===o&&(o="ag-checkbox"),void 0===n&&(n="checkbox");var i=t.call(this,e,o,n)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return ks(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){We(this.eWrapper,"ag-disabled",t),this.eInput.disabled=t,this.readOnly=t},e.prototype.setDisabled=function(e){return We(this.eWrapper,"ag-disabled",e),t.prototype.setDisabled.call(this,e)},e.prototype.toggle=function(){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){if(this.isSelected()!==t){var o=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,o)}},e.prototype.dispatchChange=function(t,o,n){this.dispatchEvent({type:e.EVENT_CHANGED,selected:t,previousValue:o,event:n});var i=this.getInputElement(),r={type:Ht.EVENT_CHECKBOX_CHANGED,id:i.id,name:i.name,selected:t,previousValue:o};this.eventService.dispatchEvent(r)},e.prototype.onCheckboxClick=function(t){if(!this.passive){var e=this.isSelected(),o=this.selected=t.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,e,t)}},e.prototype.refreshSelectedClass=function(t){We(this.eWrapper,"ag-checked",!0===t),We(this.eWrapper,"ag-indeterminate",null==t)},Bs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(Hs),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),zs=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ks=function(t){function e(e,o){var n=t.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.cbSelectAll=e,n.column=o;var i=o.getColDef();return n.filteredOnly=!!i&&!!i.headerCheckboxSelectionFilteredOnly,n}return Us(e,t),e.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Ht.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,js.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},e.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},e.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.getNextCheckboxState=function(t){return(0!==t.selected||0!==t.notSelected)&&(t.selected>0&&t.notSelected>0?null:t.selected>0)},e.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.getSelectionCount(),e=this.getNextCheckboxState(t);this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},e.prototype.refreshSelectAllLabel=function(){var t=this.cbSelectAll.getValue();this.cbSelectAll.setInputAriaLabel("Press Space to toggle all rows selection ("+(t?"checked":"unchecked")+")")},e.prototype.getSelectionCount=function(){var t=this,e=0,o=0,n=function(n){t.gridOptionsWrapper.isGroupSelectsChildren()&&n.group||(n.isSelected()?e++:n.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(n):this.gridApi.forEachNode(n),{notSelected:o,selected:e}},e.prototype.checkRightRowModelType=function(){var t=this.rowModel.getType();t===dt.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+t)},e.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},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}));return!!t&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1))},zs([nt("gridApi")],e.prototype,"gridApi",void 0),zs([nt("columnApi")],e.prototype,"columnApi",void 0),zs([nt("rowModel")],e.prototype,"rowModel",void 0),zs([nt("selectionController")],e.prototype,"selectionController",void 0),zs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),zs([tt],e.prototype,"postConstruct",null),e}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),qs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ys(e,t),e.prototype.getColumn=function(){return this.column},e.prototype.getPinned=function(){return this.pinned},e}(Kn),Xs=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Qs=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$s=function(t){function e(o,n){var i=t.call(this,e.TEMPLATE)||this;return i.headerCompVersion=0,i.refreshFunctions=[],i.column=o,i.pinned=n,i}return Xs(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.colDefVersion=this.columnController.getColDefVersion(),this.updateState(),this.appendHeaderComp(),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.addActiveHeaderMouseListeners(),this.createManagedBean(new _s([this.column],this.getGui())),this.addManagedListener(this.column,gt.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.createManagedBean(new Ks(this.cbSelectAll,this.column)),this.createManagedBean(new Ns(this.column,this.getGui(),this.beans)),this.addAttributes(),Ss.addHeaderClassesFromColDef(this.column.getColDef(),this.getGui(),this.gridOptionsWrapper,this.column,null),this.addManagedListener(this.eventService,Ht.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this))},e.prototype.onColumnValueChanged=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},e.prototype.updateState=function(){var t=this.column.getColDef();this.sortable=t.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},e.prototype.calculateDisplayName=function(){return this.columnController.getDisplayNameForColumn(this.column,"header",!0)},e.prototype.onNewColumnsLoaded=function(){var t=this.columnController.getColDefVersion();t!=this.colDefVersion&&(this.colDefVersion=t,this.refresh())},e.prototype.refresh=function(){this.updateState();var t=this.column.getColDef();if(!(this.colDefHeaderComponent!=t.headerComponent||this.colDefHeaderComponentFramework!=t.headerComponentFramework)&&this.attemptHeaderCompRefresh()){var e=this.draggable&&!this.dragAndDropService,o=!this.draggable&&this.dragAndDropService;(e||o)&&this.attachDraggingToHeaderComp()}else this.appendHeaderComp();this.refreshFunctions.forEach((function(t){return t()}))},e.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0),this.removeMoveDragSource()},e.prototype.removeMoveDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},e.prototype.attemptHeaderCompRefresh=function(){if(!this.headerComp)return!0;if(!this.headerComp.refresh)return!1;var t=this.createParams(),e=this.userComponentFactory.createFinalParams(this.getComponentHolder(),"headerComponent",t);return this.headerComp.refresh(e)},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){We(this.getGui(),"ag-header-active",t)},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getParentComponent();this.focusController.setFocusedHeader(e.getRowIndex(),this.getColumn())}this.setActiveHeader(!0)},e.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},e.prototype.handleKeyDown=function(t){var e=this.headerComp;if(e){if(t.keyCode===xn.SPACE){var o=this.cbSelectAll;o.isDisplayed()&&!o.getGui().contains(document.activeElement)&&(t.preventDefault(),o.setValue(!o.getValue()))}if(t.keyCode===xn.ENTER)if(t.ctrlKey||t.metaKey)this.menuEnabled&&e.showMenu&&(t.preventDefault(),e.showMenu());else if(this.sortable){var n=t.shiftKey;this.sortController.progressSort(this.column,n,"uiColumnSorted")}}},e.prototype.onTabKeyDown=function(){},e.prototype.getComponentHolder=function(){return this.column.getColDef()},e.prototype.addColumnHoverListener=function(){this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},e.prototype.onColumnHover=function(){var t=this.columnHoverService.isHovered(this.column);We(this.getGui(),"ag-column-hover",t)},e.prototype.setupSortableClass=function(){var t=this,e=this.getGui(),o=function(){We(e,"ag-header-cell-sortable",t.sortable)},n=function(){t.sortable?Yo(e,Fo(t.column)):qo(e)};o(),n(),this.refreshFunctions.push(o),this.refreshFunctions.push(n),this.addManagedListener(this.column,gt.EVENT_SORT_CHANGED,n.bind(this))},e.prototype.onFilterChanged=function(){var t=this.column.isFilterActive();We(this.getGui(),"ag-header-cell-filtered",t)},e.prototype.appendHeaderComp=function(){this.headerCompVersion++;var t=this.column.getColDef();this.colDefHeaderComponent=t.headerComponent,this.colDefHeaderComponentFramework=t.headerComponentFramework;var e=this.createParams(),o=this.afterHeaderCompCreated.bind(this,this.headerCompVersion);this.userComponentFactory.newHeaderComponent(e).then(o)},e.prototype.createParams=function(){var t=this,e=this.column.getColDef();return this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,{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.gridOptionsWrapper.getContext()}},e.prototype.afterHeaderCompCreated=function(t,e){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=e,this.headerCompGui=e.getGui(),this.getGui().appendChild(this.headerCompGui),this.attachDraggingToHeaderComp()):this.destroyBean(e)},e.prototype.onColumnMovingChanged=function(){this.column.isMoving()?xe(this.getGui(),"ag-header-cell-moving"):Ve(this.getGui(),"ag-header-cell-moving")},e.prototype.workOutDraggable=function(){var t=this.column.getColDef();return!this.gridOptionsWrapper.isSuppressMovableColumns()&&!t.suppressMovable&&!t.lockPosition||t.enableRowGroup||t.enablePivot},e.prototype.attachDraggingToHeaderComp=function(){var t=this;this.removeMoveDragSource(),this.draggable&&(this.moveDragSource={type:Kr.HeaderCell,eElement:this.headerCompGui,defaultIconName:Zr.ICON_HIDE,getDragItem:function(){return t.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return t.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return t.column.setMoving(!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.setupResize=function(){var t,e,o=this,n=this.getComponentHolder(),i=[],r=function(){i.forEach((function(t){return t()})),i.length=0},s=function(){var s=o.column.isResizable(),a=!o.gridOptionsWrapper.isSuppressAutoSize()&&!n.suppressAutoSize;(s!==t||a!==e)&&(t=s,e=a,r(),function(){if(ke(o.eResize,t),t){var n=o.horizontalResizeService.addResizeBar({eResizeBar:o.eResize,onResizeStart:o.onResizeStart.bind(o),onResizing:o.onResizing.bind(o,!1),onResizeEnd:o.onResizing.bind(o,!0)});if(i.push(n),e){var r=o.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){o.columnController.autoSizeColumn(o.column,r,"uiColumnResized")};o.eResize.addEventListener("dblclick",s);var a=new ri(o.eResize);a.addEventListener(ri.EVENT_DOUBLE_TAP,s),o.addDestroyFunc((function(){o.eResize.removeEventListener("dblclick",s),a.removeEventListener(ri.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(r),this.refreshFunctions.push(s)},e.prototype.onResizing=function(t,e){var o=this.normaliseResizeAmount(e),n=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnController.setColumnWidths(n,this.resizeWithShiftKey,t,"uiColumnDragged"),t&&Ve(this.getGui(),"ag-column-resizing")},e.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,xe(this.getGui(),"ag-column-resizing")},e.prototype.getTooltipParams=function(){return{location:"header",colDef:this.getComponentHolder(),column:this.getColumn(),value:this.getTooltipText()}},e.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},e.prototype.setupTooltip=function(){var t,e,o=this,n=this.gridOptionsWrapper.isEnableBrowserTooltips(),i=function(){n?o.getGui().removeAttribute("title"):t&&(t=o.destroyBean(t))},r=function(){var r=o.getTooltipText();e!=r&&(e&&i(),(e=r)&&(n?o.getGui().setAttribute("title",e):t=o.createBean(new gs(o))))};r(),this.addDestroyFunc(i),this.refreshFunctions.push(r)},e.prototype.setupMovingCss=function(){this.addManagedListener(this.column,gt.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},e.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},e.prototype.setupWidth=function(){this.addManagedListener(this.column,gt.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},e.prototype.setupMenuClass=function(){this.addManagedListener(this.column,gt.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this))},e.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},e.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},e.prototype.normaliseResizeAmount=function(t){var e=t;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==dt.PINNED_LEFT&&(e*=-1):this.pinned===dt.PINNED_RIGHT&&(e*=-1),e},e.TEMPLATE='<div class="ag-header-cell" role="columnheader" unselectable="on" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n            <ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox>\n        </div>',Qs([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Qs([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Qs([nt("columnController")],e.prototype,"columnController",void 0),Qs([nt("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),Qs([nt("menuFactory")],e.prototype,"menuFactory",void 0),Qs([nt("gridApi")],e.prototype,"gridApi",void 0),Qs([nt("columnApi")],e.prototype,"columnApi",void 0),Qs([nt("sortController")],e.prototype,"sortController",void 0),Qs([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Qs([nt("columnHoverService")],e.prototype,"columnHoverService",void 0),Qs([nt("beans")],e.prototype,"beans",void 0),Qs([In("eResize")],e.prototype,"eResize",void 0),Qs([In("cbSelectAll")],e.prototype,"cbSelectAll",void 0),Qs([et],e.prototype,"destroyHeaderComp",null),e}(qs),Zs=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Js=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ta=function(t){function e(o,n){var i=t.call(this,e.TEMPLATE)||this;return i.removeChildListenersFuncs=[],i.column=o,i.pinned=n,i}return Zs(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),Ss.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.column);var e=this.columnController.getDisplayNameForColumnGroup(this.column,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.setupExpandable(),this.createManagedBean(new _s(this.column.getOriginalColumnGroup().getLeafColumns(),this.getGui())),this.createManagedBean(new Ns(this.column,this.getGui(),this.beans))},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getParentComponent();this.beans.focusController.setFocusedHeader(e.getRowIndex(),this.getColumn())}},e.prototype.handleKeyDown=function(t){var e=document.activeElement===this.getGui();if(this.expandable&&e&&t.keyCode===xn.ENTER){var o=this.getColumn(),n=!o.isExpanded();this.columnController.setColumnGroupOpened(o.getOriginalColumnGroup(),n,"uiColumnExpanded")}},e.prototype.onTabKeyDown=function(){},e.prototype.setupExpandable=function(){var t=this.getColumn().getOriginalColumnGroup();this.refreshExpanded(),this.addManagedListener(t,mt.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(t,mt.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},e.prototype.refreshExpanded=function(){var t=this.getColumn(),e=this.getGui(),o=t.isExpandable(),n=t.isExpanded();this.expandable=o,o?xo(e,n):e.removeAttribute("aria-expanded")},e.prototype.setupMovingCss=function(){var t=this;this.column.getOriginalColumnGroup().getLeafColumns().forEach((function(e){t.addManagedListener(e,gt.EVENT_MOVING_CHANGED,t.onColumnMovingChanged.bind(t))})),this.onColumnMovingChanged()},e.prototype.getComponentHolder=function(){return this.column.getColGroupDef()},e.prototype.getTooltipText=function(){var t=this.getComponentHolder();return t&&t.headerTooltip},e.prototype.getTooltipParams=function(){return{location:"headerGroup",colDef:this.getComponentHolder(),column:this.getColumn(),value:this.getTooltipText()}},e.prototype.setupTooltip=function(){var t=this.getTooltipText();null!=t&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",t):this.createManagedBean(new gs(this)))},e.prototype.onColumnMovingChanged=function(){We(this.getGui(),"ag-header-cell-moving",this.column.isMoving())},e.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getUniqueId())},e.prototype.appendHeaderGroupComp=function(t){var e=this,o={displayName:t,columnGroup:this.column,setExpanded:function(t){e.columnController.setColumnGroupOpened(e.column.getOriginalColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!t){for(var n=this.column,i=n.getLeafColumns();n.getParent()&&n.getParent().getLeafColumns().length===i.length;)n=n.getParent();var r=n.getColGroupDef();r&&(t=r.headerName),t||(t=i?this.columnController.getDisplayNameForColumn(i[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,t);this.userComponentFactory.newHeaderGroupComponent(o).then(s)},e.prototype.afterHeaderCompCreated=function(t,e){var o=this;this.getGui().appendChild(e.getGui()),this.addDestroyFunc((function(){o.getContext().destroyBean(e)})),this.setupMove(e.getGui(),t)},e.prototype.addClasses=function(){var t=this.column.isPadding()?"no":"with";this.addCssClass("ag-header-group-cell-"+t+"-group")},e.prototype.setupMove=function(t,e){var o=this;if(t&&!this.isSuppressMoving()){var n=this.column.getOriginalColumnGroup().getLeafColumns(),i={type:Kr.HeaderCell,eElement:t,defaultIconName:Zr.ICON_HIDE,dragItemName:e,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return n.forEach((function(t){return t.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return n.forEach((function(t){return t.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(i)}))}},e.prototype.getDragItemForGroup=function(){var t=this.column.getOriginalColumnGroup().getLeafColumns(),e={};t.forEach((function(t){return e[t.getId()]=t.isVisible()}));var o=[];return this.columnController.getAllDisplayedColumns().forEach((function(e){t.indexOf(e)>=0&&(o.push(e),g(t,e))})),t.forEach((function(t){return o.push(t)})),{columns:o,visibleState:e}},e.prototype.isSuppressMoving=function(){var t=!1;return this.column.getLeafColumns().forEach((function(e){(e.getColDef().suppressMovable||e.getColDef().lockPosition)&&(t=!0)})),t||this.gridOptionsWrapper.isSuppressMovableColumns()},e.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.column,vt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},e.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},e.prototype.addListenersToChildrenColumns=function(){var t=this;this.removeListenersOnChildrenColumns();var e=this.onWidthChanged.bind(this);this.column.getLeafColumns().forEach((function(o){o.addEventListener(gt.EVENT_WIDTH_CHANGED,e),o.addEventListener(gt.EVENT_VISIBLE_CHANGED,e),t.removeChildListenersFuncs.push((function(){o.removeEventListener(gt.EVENT_WIDTH_CHANGED,e),o.removeEventListener(gt.EVENT_VISIBLE_CHANGED,e)}))}))},e.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(t){return t()})),this.removeChildListenersFuncs=[]},e.prototype.onWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},e.prototype.setupResize=function(){var t=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.column.isResizable()){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(e),!this.gridOptionsWrapper.isSuppressAutoSize()){var o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eHeaderCellResize.addEventListener("dblclick",(function(e){var n=[];t.column.getDisplayedLeafColumns().forEach((function(t){t.getColDef().suppressAutoSize||n.push(t.getColId())})),n.length>0&&t.columnController.autoSizeColumns(n,o,"uiColumnResized")}))}}else to(this.eHeaderCellResize)},e.prototype.onResizeStart=function(t){var e=this,o=this.column.getDisplayedLeafColumns();this.resizeCols=o.filter((function(t){return t.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(t){return e.resizeStartWidth+=t.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)}));var n=null;if(t&&(n=this.columnController.getDisplayedGroupAfter(this.column)),n){var i=n.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;xe(this.getGui(),"ag-column-resizing")},e.prototype.onResizing=function(t,e){var o=[],n=this.normaliseDragChange(e);o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+n}),this.resizeTakeFromCols&&o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-n}),this.columnController.resizeColumnSets(o,t,"uiColumnDragged"),t&&Ve(this.getGui(),"ag-column-resizing")},e.prototype.normaliseDragChange=function(t){var e=t;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==dt.PINNED_LEFT&&(e*=-1):this.pinned===dt.PINNED_RIGHT&&(e*=-1),e},e.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n            <div ref="agResize" class="ag-header-cell-resize" role="presentation"></div>\n        </div>',Js([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Js([nt("columnController")],e.prototype,"columnController",void 0),Js([nt("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),Js([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Js([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Js([nt("beans")],e.prototype,"beans",void 0),Js([nt("gridApi")],e.prototype,"gridApi",void 0),Js([nt("columnApi")],e.prototype,"columnApi",void 0),e}(qs),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),oa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},na=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 ea(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){this.params=t;var e=this.columnController.getDisplayNameForColumn(t.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(e+" Filter Input")},e.prototype.onParentModelChanged=function(t){var e=this;t?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var n=o.getModelAsString(t);e.eFloatingFilterText.setValue(n)}})):this.eFloatingFilterText.setValue("")},oa([In("eFloatingFilterText")],e.prototype,"eFloatingFilterText",void 0),oa([nt("columnController")],e.prototype,"columnController",void 0),e}(Fn),ia=function(){function t(){}return t.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},t.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t}(),ra=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),sa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},aa=function(t){function e(o,n){var i=t.call(this,e.TEMPLATE)||this;return i.column=o,i.pinned=n,i}return ra(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.createManagedBean(new _s([this.column],this.getGui())),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},e.prototype.onTabKeyDown=function(t){var e=document.activeElement,o=this.getGui();if(!(e===o)){t.preventDefault();var n=this.focusController.findNextFocusableElement(o,null,t.shiftKey);n?n.focus():o.focus()}},e.prototype.handleKeyDown=function(t){var e=document.activeElement,o=this.getGui(),n=e===o;switch(t.keyCode){case xn.UP:case xn.DOWN:n||t.preventDefault();case xn.LEFT:case xn.RIGHT:if(n)return;t.stopPropagation();case xn.ENTER:n&&this.focusController.focusInto(o)&&t.preventDefault();break;case xn.ESCAPE:n||this.getGui().focus()}},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getParentComponent();this.beans.focusController.setFocusedHeader(e.getRowIndex(),this.getColumn())}},e.prototype.setupFloatingFilter=function(){var t=this,e=this.column.getColDef();e.filter&&e.floatingFilter&&(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(e){e&&(t.setupWithFloatingFilter(e),t.setupSyncWithFilter())})))},e.prototype.setupLeftPositioning=function(){var t=new Ns(this.column,this.getGui(),this.beans);this.createManagedBean(t)},e.prototype.setupSyncWithFilter=function(){var t=this,e=function(e){t.onParentModelChanged(t.currentParentModel(),e)};this.addManagedListener(this.column,gt.EVENT_FILTER_CHANGED,e),this.filterManager.isFilterActive(this.column)&&e(null)},e.prototype.showParentFilter=function(){var t=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,t,"filterMenuTab",["filterMenuTab"])},e.prototype.setupColumnHover=function(){this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},e.prototype.onColumnHover=function(){We(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},e.prototype.setupWidth=function(){this.addManagedListener(this.column,gt.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},e.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},e.prototype.setupWithFloatingFilter=function(t){var e=this,o=function(){e.getContext().destroyBean(t)};if(this.isAlive()){this.addDestroyFunc(o);var n=t.getGui();We(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),We(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),ke(this.eButtonWrapper,!this.suppressFilterButton);var i=un("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(i),this.eFloatingFilterBody.appendChild(n),t.afterGuiAttached&&t.afterGuiAttached()}else o()},e.prototype.parentFilterInstance=function(t){this.getFilterComponent().then(t)},e.prototype.getFilterComponent=function(t){return void 0===t&&(t=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",t)},e.getDefaultFloatingFilterType=function(t){if(null==t)return null;var e=null;if("string"==typeof t.filter)e=ia.getFloatingFilterType(t.filter);else if(t.filterFramework);else if(!0===t.filter){e=ht.isRegistered(lt.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}return e},e.prototype.getFloatingFilterInstance=function(){var t=this.column.getColDef(),o=e.getDefaultFloatingFilterType(t),n=this.filterManager.createFilterParams(this.column,t),i=this.userComponentFactory.createFinalParams(t,"filter",n),r={api:this.gridApi,column:this.column,filterParams:i,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),showParentFilter:this.showParentFilter.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.newFloatingFilterComponent(t,r,o);if(!s){var a=this.getFilterComponentPrototype(t);if(a&&a.prototype&&a.prototype.getModelAsString){var l=this.userComponentFactory.createUserComponentFromConcreteClass(na,r);s=Dn.resolve(l)}}return s},e.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},e.prototype.getFilterComponentPrototype=function(t){var e=this.userComponentFactory.lookupComponentClassDef(t,"filter",this.createDynamicParams());return e?e.component:null},e.prototype.currentParentModel=function(){var t=this.getFilterComponent(!1);return t?t.resolveNow(null,(function(t){return t.getModel()})):null},e.prototype.onParentModelChanged=function(t,e){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(o){return o.onParentModelChanged(t,e)}))},e.prototype.onFloatingFilterChanged=function(){console.warn("ag-Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},e.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n            <div class="ag-floating-filter-full-body" 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>',sa([nt("columnHoverService")],e.prototype,"columnHoverService",void 0),sa([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),sa([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),sa([nt("gridApi")],e.prototype,"gridApi",void 0),sa([nt("columnApi")],e.prototype,"columnApi",void 0),sa([nt("filterManager")],e.prototype,"filterManager",void 0),sa([nt("menuFactory")],e.prototype,"menuFactory",void 0),sa([nt("beans")],e.prototype,"beans",void 0),sa([In("eFloatingFilterBody")],e.prototype,"eFloatingFilterBody",void 0),sa([In("eButtonWrapper")],e.prototype,"eButtonWrapper",void 0),sa([In("eButtonShowMainFilter")],e.prototype,"eButtonShowMainFilter",void 0),e}(qs),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),pa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */!function(t){t[t.COLUMN_GROUP=0]="COLUMN_GROUP",t[t.COLUMN=1]="COLUMN",t[t.FLOATING_FILTER=2]="FLOATING_FILTER"}(fs||(fs={}));var ua,ca=function(t){function e(e,o,n){var i=t.call(this,'<div class="ag-header-row" role="row"></div>')||this;i.headerComps={},i.setRowIndex(e),i.type=o,i.pinned=n;var r=fs[o].toLowerCase().replace(/_/g,"-");return i.addCssClass("ag-header-row-"+r),Se()&&(i.getGui().style.transform="translateZ(0)"),i}return la(e,t),e.prototype.forEachHeaderElement=function(t){var e=this;Object.keys(this.headerComps).forEach((function(o){t(e.headerComps[o])}))},e.prototype.setRowIndex=function(t){this.dept=t,jo(this.getGui(),t+1)},e.prototype.getRowIndex=function(){return this.dept},e.prototype.getType=function(){return this.type},e.prototype.destroyAllChildComponents=function(){var t=Object.keys(this.headerComps);this.destroyChildComponents(t)},e.prototype.destroyChildComponents=function(t,e){var o=this;t.forEach((function(t){var n=o.headerComps[t];e&&!n.getColumn().isMoving()&&o.focusController.isHeaderWrapperFocused(n)||(o.getGui().removeChild(n.getGui()),o.destroyBean(n),delete o.headerComps[t])}))},e.prototype.onRowHeightChanged=function(){var t,e,o=this.columnController.getHeaderRowCount(),n=[],i=0;this.columnController.isPivotMode()?(t=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),e=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.columnController.hasFloatingFilters()&&(o++,i=1),t=this.gridOptionsWrapper.getGroupHeaderHeight(),e=this.gridOptionsWrapper.getHeaderHeight());for(var r=o-(1+i),s=0;s<r;s++)n.push(t);n.push(e);for(s=0;s<i;s++)n.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=n[s];this.getGui().style.top=a+"px",this.getGui().style.height=n[this.dept]+"px"},e.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this))},e.prototype.onColumnResized=function(){this.setWidth()},e.prototype.setWidth=function(){var t=this.getWidthForRow();this.getGui().style.width=t+"px"},e.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_PRINT?o(this.pinned)?this.columnController.getContainerWidth(dt.PINNED_RIGHT)+this.columnController.getContainerWidth(dt.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},e.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},e.prototype.getItemsAtDepth=function(){var t=this;if(this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_PRINT){if(o(this.pinned)){var e=[];return[dt.PINNED_LEFT,null,dt.PINNED_RIGHT].forEach((function(o){var n=t.columnController.getVirtualHeaderGroupRow(o,t.type==fs.FLOATING_FILTER?t.dept-1:t.dept);e=e.concat(n)})),e}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==fs.FLOATING_FILTER?this.dept-1:this.dept)},e.prototype.onVirtualColumnsChanged=function(){var t=this,e=Object.keys(this.headerComps),o=[];if(this.getItemsAtDepth().forEach((function(n){if(!n.isEmptyGroup()){var i=n.getUniqueId(),r=t.getGui(),s=t.headerComps[i];if(s&&s.getColumn()!=n&&(t.destroyChildComponents([i]),g(e,i),s=void 0),s)g(e,i);else{var a=t.createHeaderComp(n);t.headerComps[i]=a,r.appendChild(a.getGui())}o.push(i)}})),this.destroyChildComponents(e,!0),this.gridOptionsWrapper.isEnsureDomOrder()){var n=o.map((function(e){return t.headerComps[e].getGui()}));ao(this.getGui(),n)}},e.prototype.createHeaderComp=function(t){var e;switch(this.type){case fs.COLUMN:e=new $s(t,this.pinned);break;case fs.COLUMN_GROUP:e=new ta(t,this.pinned);break;case fs.FLOATING_FILTER:e=new aa(t,this.pinned)}return this.createBean(e),e.setParentComponent(this),e},e.prototype.getHeaderComps=function(){return this.headerComps},pa([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),pa([nt("columnController")],e.prototype,"columnController",void 0),pa([nt("focusController")],e.prototype,"focusController",void 0),pa([et],e.prototype,"destroyAllChildComponents",null),pa([tt],e.prototype,"init",null),e}(Fn),da=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ha=function(){function t(t,o){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=o,this.centerContainer=!e(t)}return t.prototype.registerGridComp=function(t){this.gridPanel=t},t.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},t.prototype.getIconName=function(){return this.pinned?Zr.ICON_PINNED:Zr.ICON_MOVE},t.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===Kr.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=t.dragItem.visibleState,n=e.filter((function(t){return o[t.getId()]}));this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0)},t.prototype.onDragLeave=function(t){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!t.fromNudge){var e=t.dragSource.getDragItem().columns;this.setColumnsVisible(e,!1,"uiColumnDragged")}this.ensureIntervalCleared()},t.prototype.setColumnsVisible=function(t,e,o){if(void 0===o&&(o="api"),t){var n=t.filter((function(t){return!t.getColDef().lockVisible}));this.columnController.setColumnsVisible(n,e,o)}},t.prototype.setColumnsPinned=function(t,e,o){if(void 0===o&&(o="api"),t){var n=t.filter((function(t){return!t.getColDef().lockPinned}));this.columnController.setColumnsPinned(n,e,o)}},t.prototype.onDragStop=function(){this.ensureIntervalCleared()},t.prototype.normaliseX=function(t){this.gridOptionsWrapper.isEnableRtl()&&(t=this.eContainer.clientWidth-t);return this.centerContainer&&(t+=this.gridPanel.getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.gridPanel.getCenterViewportScrollLeft(),o=e+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(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){var n=this;if(void 0===e&&(e=!1),this.lastDraggingEvent=t,!o(t.hDirection)){var i=this.normaliseX(t.x);e||this.checkCenterForScrolling(i);var r=this.normaliseDirection(t.hDirection),s=t.dragSource.type,a=t.dragSource.getDragItem().columns;a=a.filter((function(t){return!t.getColDef().lockPinned||t.getPinned()==n.pinned})),this.attemptMoveColumns(s,a,r,i,e)}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case qr.Left:return qr.Right;case qr.Right:return qr.Left;default:console.error("ag-Grid: Unknown direction "+t)}},t.prototype.calculateOldIndex=function(t){var e=this.columnController.getAllGridColumns(),o=f(t.map((function(t){return e.indexOf(t)}))),n=o[0];return d(o)-n!==o.length-1?null:n},t.prototype.attemptMoveColumns=function(t,e,o,n,i){var r=o===qr.Left,s=o===qr.Right,a=e.slice();this.columnController.sortColumnsLikeGridColumns(a);var l=this.calculateValidMoves(a,s,n),p=this.calculateOldIndex(a);if(0!==l.length){var u=l[0],c=null!==p&&!i;if(t==Kr.HeaderCell&&(c=null!==p),c){if(r&&u>=p)return;if(s&&u<=p)return}for(var d=0;d<l.length;d++){var h=l[d];if(this.columnController.doesMovePassRules(a,h))return void this.columnController.moveColumns(a,h,"uiColumnDragged")}}},t.prototype.calculateValidMoves=function(t,e,o){if(this.gridOptionsWrapper.isSuppressMovableColumns()||t.some((function(t){return t.getColDef().suppressMovable})))return[];var n,i=this.columnController.getDisplayedColumns(this.pinned),r=this.columnController.getAllGridColumns(),s=i.filter((function(e){return C(t,e)})),a=i.filter((function(e){return!C(t,e)})),l=r.filter((function(e){return!C(t,e)})),p=0,u=o;if(e){var c=0;s.forEach((function(t){return c+=t.getActualWidth()})),u-=c}if(u>0){for(var d=0;d<a.length;d++){if((u-=a[d].getActualWidth())<0)break;p++}e&&p++}if(p>0){var h=a[p-1];n=l.indexOf(h)+1}else-1===(n=l.indexOf(a[0]))&&(n=0);var f=[n],g=function(t,e){return t-e};if(e){for(var y=n+1,v=r.length-1;y<=v;)f.push(y),y++;f.sort(g)}else{y=n,v=r.length-1;for(var m=r[y];y<=v&&this.isColumnHidden(i,m);)y++,f.push(y),m=r[y];y=n-1;for(;y>=0;)f.push(y),y--;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(Zr.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Zr.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Zr.ICON_MOVE))},t.prototype.moveInterval=function(){var t,e;if(this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100),this.needToMoveLeft?e=this.gridPanel.scrollHorizontally(-t):this.needToMoveRight&&(e=this.gridPanel.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(t){return!t.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(Zr.ICON_PINNED),this.failedMoveAttempts>7)){var n=this.needToMoveLeft?dt.PINNED_LEFT:dt.PINNED_RIGHT;this.setColumnsPinned(o,n,"uiColumnDragged"),this.dragAndDropService.nudge()}}},da([nt("loggerFactory")],t.prototype,"loggerFactory",void 0),da([nt("columnController")],t.prototype,"columnController",void 0),da([nt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),da([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),da([tt],t.prototype,"init",null),t}(),fa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ga=function(){function t(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return t.prototype.onDragEnter=function(t){var e=this;(this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly())||t.dragItem.columns.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?Zr.ICON_PINNED:Zr.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.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},fa([nt("columnController")],t.prototype,"columnController",void 0),fa([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),va=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */!function(t){t[t.ColumnMove=0]="ColumnMove",t[t.Pivot=1]="Pivot"}(ua||(ua={}));var ma,Ca=function(t){function e(e,o){var n=t.call(this)||this;return n.dropListeners={},n.pinned=e,n.eContainer=o,n}return ya(e,t),e.prototype.registerGridComp=function(t){switch(this.gridPanel=t,this.moveColumnController.registerGridComp(t),this.pinned){case dt.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case dt.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(t){return t===Kr.HeaderCell||t===Kr.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=this.createBean(new ha(this.pinned,this.eContainer));var t=new ga(this.pinned);this.createBean(t),this.dropListeners[ua.ColumnMove]=this.moveColumnController,this.dropListeners[ua.Pivot]=t,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(t){return this.columnController.isPivotMode()&&t.dragSource.type===Kr.ToolPanel?ua.Pivot:ua.ColumnMove},e.prototype.onDragEnter=function(t){var e=this.getDropType(t);this.currentDropListener=this.dropListeners[e],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)},va([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),va([nt("columnController")],e.prototype,"columnController",void 0),va([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),va([tt],e.prototype,"init",null),e}(Gt),wa=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ea=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ra=function(t){function e(e,o,n){var i=t.call(this)||this;return i.groupsRowComps=[],i.eContainer=e,i.pinned=n,i.eViewport=o,i}return wa(e,t),e.prototype.forEachHeaderElement=function(t){this.groupsRowComps&&this.groupsRowComps.forEach((function(e){return e.forEachHeaderElement(t)})),this.columnsRowComp&&this.columnsRowComp.forEachHeaderElement(t),this.filtersRowComp&&this.columnsRowComp.forEachHeaderElement(t)},e.prototype.init=function(){this.addManagedListener(this.eventService,Ht.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollbarWidthChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var t=this.pinned===dt.PINNED_LEFT,e=this.pinned===dt.PINNED_RIGHT,o=this.columnController,n=this.gridOptionsWrapper.isEnableRtl(),i=this.gridOptionsWrapper.getScrollbarWidth();if(t||e){var r=o[t?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(n&&t||!n&&e)&&(r+=i),fo(this.eContainer,r)}},e.prototype.getRowComps=function(){var t=[];return this.groupsRowComps&&(t=t.concat(this.groupsRowComps)),this.columnsRowComp&&t.push(this.columnsRowComp),this.filtersRowComp&&t.push(this.filtersRowComp),t},e.prototype.onGridColumnsChanged=function(){this.refresh(!0)},e.prototype.refresh=function(t){void 0===t&&(t=!1),this.refreshRowComps(t)},e.prototype.setupDragAndDrop=function(t){var e=this.eViewport?this.eViewport:this.eContainer,o=new Ca(this.pinned,e);this.createManagedBean(o),o.registerGridComp(t)},e.prototype.destroyRowComps=function(t){void 0===t&&(t=!1),this.groupsRowComps.forEach(this.destroyRowComp.bind(this)),this.groupsRowComps=[],this.destroyRowComp(this.filtersRowComp),this.filtersRowComp=void 0,t||(this.destroyRowComp(this.columnsRowComp),this.columnsRowComp=void 0)},e.prototype.destroyRowComp=function(t){t&&(this.destroyBean(t),this.eContainer.removeChild(t.getGui()))},e.prototype.refreshRowComps=function(t){var e=this;void 0===t&&(t=!1);var o=new Sn;!function(){var t=e.columnController.getHeaderRowCount()-1;e.groupsRowComps.forEach(e.destroyRowComp.bind(e)),e.groupsRowComps=[];for(var n=0;n<t;n++){var i=e.createBean(new ca(o.next(),fs.COLUMN_GROUP,e.pinned));e.groupsRowComps.push(i)}}(),function(){var n=o.next();if(e.columnsRowComp){var i=e.columnsRowComp.getRowIndex()!==n;t&&!i||(e.destroyRowComp(e.columnsRowComp),e.columnsRowComp=void 0)}e.columnsRowComp||(e.columnsRowComp=e.createBean(new ca(n,fs.COLUMN,e.pinned)))}(),e.destroyRowComp(e.filtersRowComp),e.filtersRowComp=void 0,!e.columnController.isPivotMode()&&e.columnController.hasFloatingFilters()&&(e.filtersRowComp=e.createBean(new ca(o.next(),fs.FLOATING_FILTER,e.pinned))),this.getRowComps().forEach((function(t){return e.eContainer.appendChild(t.getGui())}))},Ea([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ea([nt("columnController")],e.prototype,"columnController",void 0),Ea([nt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Ea([tt],e.prototype,"init",null),Ea([et],e.prototype,"destroyRowComps",null),e}(Gt),Oa=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */!function(t){t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT"}(ma||(ma={}));!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Oa(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.registerHeaderRoot=function(t){this.headerRoot=t},e.prototype.getHeaderRowCount=function(){return 0===this.headerRoot.getHeaderContainers().size?0:this.getHeaderContainer().getRowComps().length},e.prototype.getHeaderRowType=function(t){if(this.getHeaderRowCount())return this.getHeaderContainer().getRowComps()[t].getType()},e.prototype.getHeaderContainer=function(t){return void 0===t&&(t="center"),null===t&&(t="center"),this.headerRoot.getHeaderContainers().get(t)},e.prototype.navigateVertically=function(t,e,o){if(e||(e=this.focusController.getFocusedHeader()),!e)return!1;var n,i=e.headerRowIndex,r=e.column,s=this.getHeaderRowCount(),a=t===ma.UP,l=a?i-1:i+1,p=!1;l<0&&(l=0,n=r,p=!0),l>=s&&(l=-1);var u=this.getHeaderRowType(i);if(!p){if(u===fs.COLUMN_GROUP){var c=r;n=a?r.getParent():c.getDisplayedChildren()[0]}else if(u===fs.FLOATING_FILTER)n=r;else{c=r;n=a?c.getParent():c}if(!n)return!1}return this.focusController.focusHeaderPosition({headerRowIndex:l,column:n},void 0,!1,!0,o)},e.prototype.navigateHorizontally=function(t,e,o){void 0===e&&(e=!1);var n,i,r=this.focusController.getFocusedHeader();return t===ma.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",n=this.headerPositionUtils.findHeader(r,i)):(i="After",n=this.headerPositionUtils.findHeader(r,i)),n?this.focusController.focusHeaderPosition(n,i,e,!0,o):!e||this.focusNextHeaderRow(r,i,o)},e.prototype.focusNextHeaderRow=function(t,e,o){var n,i,r=t.headerRowIndex;return"Before"===e?r>0&&(i=r-1,n=this.headerPositionUtils.findColAtEdgeForHeaderRow(i,"end")):(i=r+1,n=this.headerPositionUtils.findColAtEdgeForHeaderRow(i,"start")),this.focusController.focusHeaderPosition(n,e,!0,!0,o)},e.prototype.scrollToColumn=function(t,e){if(void 0===e&&(e="After"),!t.getPinned()){var o;if(t instanceof vt){var n=t.getDisplayedLeafColumns();o="Before"===e?d(n):n[0]}else o=t;this.gridPanel.ensureColumnVisible(o),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},Pa([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Pa([nt("focusController")],e.prototype,"focusController",void 0),Pa([nt("headerPositionUtils")],e.prototype,"headerPositionUtils",void 0),Pa([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),e=Pa([ot("headerNavigationService")],e)}(Gt);
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */var ba,Sa=function(){function t(){}return t.BACKSPACE="Backspace",t.TAB="Tab",t.ENTER="Enter",t.SHIFT="Shift",t.ESCAPE="Escape",t.SPACE=" ",t.LEFT="ArrowLeft",t.UP="ArrowUp",t.RIGHT="ArrowRight",t.DOWN="ArrowDown",t.DELETE="Delete",t.NUM_PAD_DELETE="Del",t.A="a",t.C="c",t.V="v",t.D="d",t.Z="z",t.Y="y",t.F2="F2",t.PAGE_UP="PageUp",t.PAGE_DOWN="PageDown",t.PAGE_HOME="Home",t.PAGE_END="End",t}(),Da=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ta=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_a=(function(t){function o(){var e=t.call(this,o.TEMPLATE)||this;return e.headerContainers=new Map,e}Da(o,t),o.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.printLayout=this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this),this.registerHeaderContainer(new Ra(this.eHeaderContainer,this.eHeaderViewport,null),"center"),this.registerHeaderContainer(new Ra(this.ePinnedLeftHeader,null,dt.PINNED_LEFT),"left"),this.registerHeaderContainer(new Ra(this.ePinnedRightHeader,null,dt.PINNED_RIGHT),"right"),this.headerContainers.forEach((function(t){return e.createManagedBean(t)})),this.headerNavigationService.registerHeaderRoot(this),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},o.prototype.registerGridComp=function(t){this.gridPanel=t,this.headerContainers.forEach((function(e){return e.setupDragAndDrop(t)}))},o.prototype.registerHeaderContainer=function(t,e){this.headerContainers.set(e,t)},o.prototype.onTabKeyDown=function(t){var e=this.gridOptionsWrapper.isEnableRtl(),o=t.shiftKey!==e?ma.LEFT:ma.RIGHT,n=this.focusController.getFocusedHeader(),i=n.headerRowIndex,r=n.column;gn(this.gridOptionsWrapper,t,i,r)||(this.headerNavigationService.navigateHorizontally(o,!0,t)||this.focusController.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},o.prototype.handleKeyDown=function(t){var o,n=this.focusController.getFocusedHeader(),i=n.headerRowIndex,r=n.column;if(!gn(this.gridOptionsWrapper,t,i,r))switch(t.key){case Sa.LEFT:o=ma.LEFT;case Sa.RIGHT:e(o)||(o=ma.RIGHT),this.headerNavigationService.navigateHorizontally(o,!1,t);break;case Sa.UP:o=ma.UP;case Sa.DOWN:e(o)||(o=ma.DOWN),this.headerNavigationService.navigateVertically(o,null,t)&&t.preventDefault();break;default:return}},o.prototype.onFocusOut=function(t){var e=t.relatedTarget,o=this.getGui();!e&&o.contains(document.activeElement)||o.contains(e)||this.focusController.clearFocusedHeader()},o.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_PRINT;this.printLayout!==t&&(this.printLayout=t,this.refreshHeader())},o.prototype.setHorizontalScroll=function(t){this.eHeaderContainer.style.transform="translateX("+t+"px)"},o.prototype.forEachHeaderElement=function(t){this.headerContainers.forEach((function(e){return e.forEachHeaderElement(t)}))},o.prototype.refreshHeader=function(){this.headerContainers.forEach((function(t){return t.refresh()}))},o.prototype.onPivotModeChanged=function(){var t=this.columnController.isPivotMode();We(this.getGui(),"ag-pivot-on",t),We(this.getGui(),"ag-pivot-off",!t)},o.prototype.setHeight=function(t){var e=t+1+"px";this.getGui().style.height=e,this.getGui().style.minHeight=e},o.prototype.addPreventHeaderScroll=function(){var t=this;this.addManagedListener(this.eHeaderViewport,"scroll",(function(){var e=t.eHeaderViewport.scrollLeft;0!==e&&(t.gridPanel.scrollHorizontally(e),t.eHeaderViewport.scrollLeft=0)}))},o.prototype.getHeaderContainers=function(){return this.headerContainers},o.prototype.setHeaderContainerWidth=function(t){this.eHeaderContainer.style.width=t+"px"},o.prototype.setLeftVisible=function(t){ke(this.ePinnedLeftHeader,t)},o.prototype.setRightVisible=function(t){ke(this.ePinnedRightHeader,t)},o.TEMPLATE='<div class="ag-header" role="presentation">\n            <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n            <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n                <div class="ag-header-container" ref="eHeaderContainer" role="rowgroup"></div>\n            </div>\n            <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n        </div>',Ta([In("ePinnedLeftHeader")],o.prototype,"ePinnedLeftHeader",void 0),Ta([In("ePinnedRightHeader")],o.prototype,"ePinnedRightHeader",void 0),Ta([In("eHeaderContainer")],o.prototype,"eHeaderContainer",void 0),Ta([In("eHeaderViewport")],o.prototype,"eHeaderViewport",void 0),Ta([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),Ta([nt("columnController")],o.prototype,"columnController",void 0),Ta([nt("gridApi")],o.prototype,"gridApi",void 0),Ta([nt("autoWidthCalculator")],o.prototype,"autoWidthCalculator",void 0),Ta([nt("headerNavigationService")],o.prototype,"headerNavigationService",void 0)}(Kn),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Aa=function(){return(Aa=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Fa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Na=(function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.allAdvancedFilters=new Map,e.activeAdvancedFilters=[],e.quickFilter=null,e.quickFilterParts=null,e.processingFilterChange=!1,e}var n;_a(o,t),n=o,o.prototype.init=function(){this.addManagedListener(this.eventService,Ht.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.checkExternalFilter()},o.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},o.prototype.setFilterModel=function(t){var e=this,o=[];if(t){var n=En(Object.keys(t));this.allAdvancedFilters.forEach((function(i,r){var s=t[r];o.push(e.setModelOnFilterWrapper(i.filterPromise,s)),n.delete(r)})),n.forEach((function(n){var i=e.columnController.getPrimaryColumn(n);if(i){var r=e.getOrCreateFilterWrapper(i,"NO_UI");o.push(e.setModelOnFilterWrapper(r.filterPromise,t[n]))}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+n)}))}else this.allAdvancedFilters.forEach((function(t){o.push(e.setModelOnFilterWrapper(t.filterPromise,null))}));Dn.all(o).then((function(){return e.onFilterChanged()}))},o.prototype.setModelOnFilterWrapper=function(t,e){return new Dn((function(o){t.then((function(t){"function"!=typeof t.setModel&&(console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel"),o()),(t.setModel(e)||Dn.resolve()).then((function(){return o()}))}))}))},o.prototype.getFilterModel=function(){var t={};return this.allAdvancedFilters.forEach((function(o,n){var i=o.filterPromise.resolveNow(null,(function(t){return t}));if(null==i)return null;if("function"==typeof i.getModel){var r=i.getModel();e(r)&&(t[n]=r)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),t},o.prototype.isAdvancedFilterPresent=function(){return this.activeAdvancedFilters.length>0},o.prototype.updateActiveFilters=function(){var t=this;this.activeAdvancedFilters.length=0,this.allAdvancedFilters.forEach((function(e){e.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}))&&t.activeAdvancedFilters.push(e.filterPromise.resolveNow(null,(function(t){return t})))}))},o.prototype.updateFilterFlagInColumns=function(t,e){this.allAdvancedFilters.forEach((function(o){var n=o.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}));o.column.setFilterActive(n,t,e)}))},o.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isAdvancedFilterPresent()||this.externalFilterPresent},o.prototype.doAdvancedFiltersPass=function(t,e){for(var o=t.data,n=0;n<this.activeAdvancedFilters.length;n++){var i=this.activeAdvancedFilters[n];if(null!=i&&i!==e){if("function"!=typeof i.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!i.doesFilterPass({node:t,data:o}))return!1}}return!0},o.prototype.parseQuickFilter=function(t){return e(t)?this.gridOptionsWrapper.isRowModelDefault()?t.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-Side Row Model"),null):null},o.prototype.setQuickFilter=function(t){var e=this.parseQuickFilter(t);this.quickFilter!==e&&(this.quickFilter=e,this.setQuickFilterParts(),this.onFilterChanged())},o.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},o.prototype.onFilterChanged=function(t,e){this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",e),this.checkExternalFilter(),this.allAdvancedFilters.forEach((function(e){e.filterPromise.then((function(e){e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var o={type:Ht.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};e&&M(o,e),this.processingFilterChange=!0,this.eventService.dispatchEvent(o),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(e,t)},o.prototype.doesRowPassQuickFilterNoCache=function(t,o){var n=this;return O(this.columnController.getAllColumnsForQuickFilter(),(function(i){var r=n.getQuickFilterTextForColumn(i,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.gridOptionsWrapper.isCacheQuickFilter();return R(this.quickFilterParts,(function(n){return o?e.doesRowPassQuickFilterCache(t,n):e.doesRowPassQuickFilterNoCache(t,n)}))},o.prototype.doesRowPassFilter=function(t,e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(t))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(t))&&!(this.isAdvancedFilterPresent()&&!this.doAdvancedFiltersPass(t,e)))},o.prototype.getQuickFilterTextForColumn=function(t,o){var n=this.valueService.getValue(t,o,!0),i=t.getColDef();if(i.getQuickFilterText){var r={value:n,node:o,data:o.data,column:t,colDef:i,context:this.gridOptionsWrapper.getContext()};n=i.getQuickFilterText(r)}return e(n)?n.toString().toUpperCase():null},o.prototype.aggregateRowForQuickFilter=function(t){var o=this,i=[];P(this.columnController.getAllColumnsForQuickFilter(),(function(n){var r=o.getQuickFilterTextForColumn(n,t);e(r)&&i.push(r)})),t.quickFilterAggregateText=i.join(n.QUICK_FILTER_SEPARATOR)},o.prototype.onNewRowsLoaded=function(t){this.allAdvancedFilters.forEach((function(t){t.filterPromise.then((function(t){t.onNewRowsLoaded&&t.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(t),this.updateActiveFilters()},o.prototype.createValueGetter=function(t){var e=this;return function(o){return e.valueService.getValue(t,o,!0)}},o.prototype.getFilterComponent=function(t,e,o){if(void 0===o&&(o=!0),o)return this.getOrCreateFilterWrapper(t,e).filterPromise;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){var o=this.cachedFilter(t);return o?"NO_UI"!==e&&this.putIntoGui(o,e):(o=this.createFilterWrapper(t,e),this.allAdvancedFilters.set(t.getColId(),o)),o},o.prototype.cachedFilter=function(t){return this.allAdvancedFilters.get(t.getColId())},o.prototype.createFilterInstance=function(t,e){var o,n=this,i=ht.isRegistered(lt.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",r=t.getColDef(),s=Aa(Aa({},this.createFilterParams(t,r,e)),{filterModifiedCallback:function(){var e={type:Ht.EVENT_FILTER_MODIFIED,api:n.gridApi,columnApi:n.columnApi,column:t,filterInstance:o};n.eventService.dispatchEvent(e)},filterChangedCallback:function(t){return n.onFilterChanged(o,t)},doesRowPassOtherFilter:function(t){return n.doesRowPassOtherFilters(o,t)}}),a=this.userComponentFactory.newFilterComponent(r,s,i);return a&&a.then((function(t){return o=t})),a},o.prototype.createFilterParams=function(t,e,o){void 0===o&&(o=null);var n={api:this.gridOptionsWrapper.getApi(),column:t,colDef:_(e),rowModel:this.rowModel,filterChangedCallback:null,filterModifiedCallback:null,valueGetter:this.createValueGetter(t),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null};return o&&(n.$scope=o),n},o.prototype.createFilterWrapper=function(t,e){var o={column:t,filterPromise:null,scope:null,compiledElement:null,guiPromise:Dn.resolve(null)};return o.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,o.filterPromise=this.createFilterInstance(t,o.scope),o.filterPromise&&this.putIntoGui(o,e),o},o.prototype.putIntoGui=function(t,o){var n=this,i=document.createElement("div");i.className="ag-filter",t.guiPromise=new Dn((function(r){t.filterPromise.then((function(s){var a=s.getGui();if(e(a)||console.warn("getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"==typeof a&&(a=oo(a)),i.appendChild(a),t.scope){var l=n.$compile(i)(t.scope);t.compiledElement=l,window.setTimeout((function(){return t.scope.$apply()}),0)}r(i),n.eventService.dispatchEvent({type:Ht.EVENT_FILTER_OPENED,column:t.column,source:o,eGui:i,api:n.gridApi,columnApi:n.columnApi})}))}))},o.prototype.onNewColumnsLoaded=function(){var t=this,e=!1;this.allAdvancedFilters.forEach((function(o){!t.columnController.getPrimaryColumn(o.column)&&(e=!0,t.disposeFilterWrapper(o,"filterDestroyed"))})),e&&this.onFilterChanged()},o.prototype.destroyFilter=function(t,e){void 0===e&&(e="api");var o=this.allAdvancedFilters.get(t.getColId());o&&(this.disposeFilterWrapper(o,e),this.onFilterChanged())},o.prototype.disposeFilterWrapper=function(t,e){var o=this;t.filterPromise.then((function(n){(n.setModel(null)||Dn.resolve()).then((function(){o.getContext().destroyBean(n),t.column.setFilterActive(!1,e),t.scope&&(t.compiledElement&&t.compiledElement.remove(),t.scope.$destroy()),o.allAdvancedFilters.delete(t.column.getColId())}))}))},o.prototype.destroy=function(){var e=this;t.prototype.destroy.call(this),this.allAdvancedFilters.forEach((function(t){return e.disposeFilterWrapper(t,"filterDestroyed")}))},o.QUICK_FILTER_SEPARATOR="\n",Fa([nt("$compile")],o.prototype,"$compile",void 0),Fa([nt("$scope")],o.prototype,"$scope",void 0),Fa([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),Fa([nt("valueService")],o.prototype,"valueService",void 0),Fa([nt("columnController")],o.prototype,"columnController",void 0),Fa([nt("rowModel")],o.prototype,"rowModel",void 0),Fa([nt("columnApi")],o.prototype,"columnApi",void 0),Fa([nt("gridApi")],o.prototype,"gridApi",void 0),Fa([nt("userComponentFactory")],o.prototype,"userComponentFactory",void 0),Fa([tt],o.prototype,"init",null),Fa([et],o.prototype,"destroy",null),o=n=Fa([ot("filterManager")],o)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),La=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ia=(function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialised=!1,e}Na(n,t),n.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},n.prototype.getValue=function(t,e,o,n){if(void 0===o&&(o=!1),void 0===n&&(n=!1),this.initialised||this.init(),e){var i,r=t.getColDef(),s=r.field,a=t.getId(),l=e.data,p=e.groupData&&void 0!==e.groupData[a],u=!n&&e.aggData&&void 0!==e.aggData[a];if(o&&r.filterValueGetter?i=this.executeFilterValueGetter(r.filterValueGetter,l,t,e):this.gridOptionsWrapper.isTreeData()&&u?i=e.aggData[a]:this.gridOptionsWrapper.isTreeData()&&r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,t,e):this.gridOptionsWrapper.isTreeData()&&s&&l?i=V(l,s,t.isFieldContainsDots()):p?i=e.groupData[a]:u?i=e.aggData[a]:r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,t,e):s&&l&&(i=V(l,s,t.isFieldContainsDots())),this.cellExpressions&&"string"==typeof i&&0===i.indexOf("=")){var c=i.substring(1);i=this.executeValueGetter(c,l,t,e)}return i}},n.prototype.setValue=function(t,n,i,r){var s=this.columnController.getPrimaryColumn(n);if(t&&s){o(t.data)&&(t.data={});var a=s.getColDef(),l=a.field,p=a.newValueHandler,u=a.valueSetter;if(o(l)&&o(p)&&o(u))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var c,d={node:t,data:t.data,oldValue:this.getValue(s,t),newValue:i,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=i,void 0===(c=p&&e(p)?p(d):e(u)?this.expressionService.evaluate(u,d):this.setValueUsingField(t.data,l,i,s.isFieldContainsDots()))&&(c=!0),c){t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(s,t);var h=s.getColDef().onCellValueChanged;"function"==typeof h&&setTimeout((function(){return h(d)}),0);var f={type:Ht.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:d.column,api:d.api,colDef:d.colDef,columnApi:d.columnApi,context:d.context,data:t.data,node:t,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:r};this.eventService.dispatchEvent(f)}}}},n.prototype.setValueUsingField=function(t,e,o,n){if(!e)return!1;if(n)for(var i=e.split("."),r=t;i.length>0&&r;){var s=i.shift();0===i.length?r[s]=o:r=r[s]}else t[e]=o;return!0},n.prototype.executeFilterValueGetter=function(t,e,o,n){var i={data:e,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)};return this.expressionService.evaluate(t,i)},n.prototype.executeValueGetter=function(t,e,o,n){var i=o.getId(),r=this.valueCache.getValue(n,i);if(void 0!==r)return r;var s={data:e,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)},a=this.expressionService.evaluate(t,s);return this.valueCache.setValue(n,i,a),a},n.prototype.getValueCallback=function(t,e){var o=this.columnController.getPrimaryColumn(e);return o?this.getValue(o,t):null},n.prototype.getKeyForNode=function(t,e){var o=this.getValue(t,e),n=t.getColDef().keyCreator,i=n?n({value:o}):o;return"string"==typeof i||null==i||"[object Object]"===(i=String(i))&&U((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]"),i},La([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),La([nt("expressionService")],n.prototype,"expressionService",void 0),La([nt("columnController")],n.prototype,"columnController",void 0),La([nt("valueCache")],n.prototype,"valueCache",void 0),La([tt],n.prototype,"init",null),n=La([ot("valueService")],n)}(Gt),function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}),Ma=function(){function t(t){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=t.eContainer,this.eViewport=t.eViewport,t.eWrapper&&(this.eWrapper=t.eWrapper),this.hideWhenNoChildren=t.hideWhenNoChildren}return t.prototype.setVerticalScrollPosition=function(t){this.scrollTop=t},t.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(Hr.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},t.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},t.prototype.getRowElement=function(t){return this.eContainer.querySelector('[comp-id="'+t+'"]')},t.prototype.setHeight=function(t){null!=t?(this.eContainer.style.height=t+"px",this.eWrapper&&(this.eWrapper.style.height=t+"px")):this.eContainer.style.height=""},t.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var t=this.rowTemplatesToAdd.join("");no(this.eContainer,t),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(t){return t()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},t.prototype.appendRowTemplate=function(t,e){this.domOrder?this.lastPlacedElement=lo(this.eContainer,t,this.lastPlacedElement):this.rowTemplatesToAdd.push(t),this.afterGuiAttachedCallbacks.push(e),this.childCount++,this.checkVisibility()},t.prototype.ensureDomOrder=function(t){this.domOrder&&(so(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},t.prototype.removeRowElement=function(t){this.eContainer.removeChild(t),this.childCount--,this.checkVisibility()},t.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var t=this.eViewport?this.eViewport:this.eContainer,e=this.childCount>0;this.visible!==e&&(this.visible=e,this.lastMadeVisibleTime=(new Date).getTime(),ke(t,e),e&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},t.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},Ia([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ia([tt],t.prototype,"postConstruct",null),t}(),Ga=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xa=function(){return(xa=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Va=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Wa=function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<o;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,i++)n[i]=r[s];return n},Ha=function(t){function e(e,o){var n=t.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=e,n.gridPanel=o,n}return Ga(e,t),e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Ht.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.onSortChanged(),this.onFilterChanged(),this.onRowGroupChanged()},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.columnController.getRowGroupColumns();this.isRowGroupActive=!n(t)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(t){return t===Kr.RowDrag},e.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?Zr.ICON_NOT_ALLOWED:Zr.ICON_MOVE},e.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},e.prototype.getRowNodes=function(t){if(!this.isFromThisGrid(t))return t.dragItem.rowNodes;var e=this.gridOptionsWrapper.isEnableMultiRowDragging(),o=this.selectionController.getSelectedNodes(),n=t.dragItem.rowNode;return e&&-1!==o.indexOf(n)?(this.isMultiRowDrag=!0,Wa(o)):(this.isMultiRowDrag=!1,[n])},e.prototype.onDragEnter=function(t){this.dispatchGridEvent(Ht.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.gridOptionsWrapper.getDomDataKey()},e.prototype.isDropZoneWithinThisGrid=function(t){var e=this.gridPanel.getGui(),o=t.dropZoneTarget;return!e.contains(o)},e.prototype.onEnterOrDragging=function(t){this.dispatchGridEvent(Ht.EVENT_ROW_DRAG_MOVE,t),this.lastDraggingEvent=t;var e=this.mouseEventService.getNormalisedPosition(t).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(t,e),this.checkCenterForScrolling(e)},e.prototype.doManagedDrag=function(t,e){var o,n=this,i=this.isFromThisGrid(t);i?(o=[t.dragItem.rowNode],this.isMultiRowDrag&&(o=Wa(this.selectionController.getSelectedNodes()).sort((function(t,e){return n.getRowIndexNumber(t)-n.getRowIndexNumber(e)}))),t.dragItem.rowNodes=o):o=t.dragItem.rowNodes,this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!i?this.isDropZoneWithinThisGrid(t)||this.clientSideRowModel.highlightRowAtPixel(o[0],e):this.moveRows(o,e))},e.prototype.getRowIndexNumber=function(t){return parseInt(d(t.getRowIndexString().split("-")),10)},e.prototype.moveRowAndClearHighlight=function(t){var e=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),n=o&&"below"===o.highlighted,i=this.mouseEventService.getNormalisedPosition(t).y,r=t.dragItem.rowNodes,s=n?1:0;if(this.isFromThisGrid(t))r.forEach((function(t){t.rowTop<i&&(s-=1)})),this.moveRows(r,i,s);else{var a=this.gridOptionsWrapper.getRowNodeIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(i)+1;"above"===this.clientSideRowModel.getHighlightPosition(i)&&l--,this.clientSideRowModel.updateRowData({add:r.map((function(t){return t.data})).filter((function(t){return!e.clientSideRowModel.getRowNode(a?a(t):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.focusController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},e.prototype.checkCenterForScrolling=function(t){var e=this.gridPanel.getVScrollPosition();this.needToMoveUp=t<e.top+50,this.needToMoveDown=t>e.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var t,e;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100),this.needToMoveDown?e=this.gridPanel.scrollVertically(t):this.needToMoveUp&&(e=this.gridPanel.scrollVertically(-t)),0!==e&&this.onDragging(this.lastDraggingEvent)},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(Ht.EVENT_ROW_DRAG_ENTER,o))}),t.onDragLeave&&(o.onDragLeave=function(o){t.onDragLeave(e.draggingToRowDragEvent(Ht.EVENT_ROW_DRAG_LEAVE,o))}),t.onDragging&&(o.onDragging=function(o){t.onDragging(e.draggingToRowDragEvent(Ht.EVENT_ROW_DRAG_MOVE,o))}),t.onDragStop&&(o.onDragStop=function(o){t.onDragStop(e.draggingToRowDragEvent(Ht.EVENT_ROW_DRAG_END,o))})),this.dragAndDropService.addDropTarget(xa({isInterestedIn:function(t){return t===Kr.RowDrag},getIconName:function(){return Zr.ICON_MOVE},external:!0},o))}else U((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),n=this.onDragEnter.bind(this),i=this.onDragLeave.bind(this),r=this.onDragging.bind(this),s=this.onDragStop.bind(this);return t?{getContainer:o,onDragEnter:t.onDragEnter?function(o){n(o),t.onDragEnter(e.draggingToRowDragEvent(Ht.EVENT_ROW_DRAG_ENTER,o))}:n,onDragLeave:t.onDragLeave?function(o){i(o),t.onDragLeave(e.draggingToRowDragEvent(Ht.EVENT_ROW_DRAG_LEAVE,o))}:i,onDragging:t.onDragging?function(o){r(o),t.onDragging(e.draggingToRowDragEvent(Ht.EVENT_ROW_DRAG_MOVE,o))}:r,onDragStop:t.onDragStop?function(o){s(o),t.onDragStop(e.draggingToRowDragEvent(Ht.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:n,onDragLeave:i,onDragging:r,onDragStop:s,fromGrid:!0}},e.prototype.draggingToRowDragEvent=function(t,e){var o,n=this.mouseEventService.getNormalisedPosition(e).y,i=-1,r=null;switch(n>this.rowModel.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(n),r=this.rowModel.getRow(i)),e.vDirection){case Yr.Down:o="down";break;case Yr.Up:o="up";break;default:o=null}return{type:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:e.event,node:e.dragItem.rowNode,nodes:e.dragItem.rowNodes,overIndex:i,overNode:r,y:n,vDirection:o}},e.prototype.dispatchGridEvent=function(t,e){var o=this.draggingToRowDragEvent(t,e);this.eventService.dispatchEvent(o)},e.prototype.onDragLeave=function(t){this.dispatchGridEvent(Ht.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},e.prototype.onDragStop=function(t){this.dispatchGridEvent(Ht.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},e.prototype.stopDragging=function(t){this.ensureIntervalCleared(),this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},Va([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Va([nt("rowModel")],e.prototype,"rowModel",void 0),Va([nt("columnController")],e.prototype,"columnController",void 0),Va([nt("focusController")],e.prototype,"focusController",void 0),Va([nt("sortController")],e.prototype,"sortController",void 0),Va([nt("filterManager")],e.prototype,"filterManager",void 0),Va([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Va([nt("selectionController")],e.prototype,"selectionController",void 0),Va([it("rangeController")],e.prototype,"rangeController",void 0),Va([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),Va([tt],e.prototype,"postConstruct",null),e}(Gt),ka=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ba=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ja=(function(t){function e(){var e=t.call(this,'<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n        <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n        <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n            <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n            <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n                <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n            </div>\n            <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n            <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n        </div>\n        <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n            <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n            <div class="ag-center-cols-clipper" ref="eCenterColsClipper" role="presentation" unselectable="on">\n                <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation">\n                    <div class="ag-center-cols-container" ref="eCenterContainer" role="rowgroup" unselectable="on"></div>\n                </div>\n            </div>\n            <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n            <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n        </div>\n        <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n            <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n            <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n                <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n            </div>\n            <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n            <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n        </div>\n        <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody" aria-hidden="true">\n            <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n            <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n                <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollContainer"></div>\n            </div>\n            <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n        </div>\n        <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n    </div>')||this;return e.scrollLeft=-1,e.scrollTop=-1,e.resetLastHorizontalScrollElementDebounced=Q(e.resetLastHorizontalScrollElement.bind(e),500),e}ka(e,t),e.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},e.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},e.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},e.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),e=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[t&&!e?"showNoRowsOverlay":"hideOverlay"]()},e.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},e.prototype.init=function(){var t=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addPreventScrollWhileDragging(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.headerNavigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.mouseEventService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.contextMenuFactory&&this.contextMenuFactory.registerGridComp(this),this.menuFactory&&this.menuFactory.registerGridComp(this),(this.rangeController||this.gridOptionsWrapper.isRowSelectionMulti())&&(ko(this.getGui(),!0),this.rangeController&&this.rangeController.registerGridComp(this)),[this.eCenterViewport,this.eBodyViewport].forEach((function(e){var o=t.resizeObserverService.observeResize(e,t.onCenterViewportResized.bind(t));t.addDestroyFunc((function(){return o()}))})),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(e){t.addManagedListener(e,"focusin",(function(){xe(e,"ag-has-focus")})),t.addManagedListener(e,"focusout",(function(t){e.contains(t.relatedTarget)||Ve(e,"ag-has-focus")}))}))},e.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_PRINT;this.printLayout!==t&&(this.printLayout=t,this.setWidthsOfContainers(),this.setPinnedContainerSize())},e.prototype.onCenterViewportResized=function(){if(eo(this.eCenterViewport)){this.checkViewportAndScrolls();var t=this.getCenterWidth();t!==this.centerWidth&&(this.centerWidth=t,this.columnController.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},e.prototype.setColumnMovingCss=function(t){this.addOrRemoveCssClass("ag-column-moving",t)},e.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(e){return We(e,"ag-selectable",t)}))},e.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Ha(this.eBodyViewport,this)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},e.prototype.getRowDragFeature=function(){return this.rowDragFeature},e.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var e=[this.eBodyViewport,this.eBottom,this.eTop],o=function(o){var n=o.relatedTarget;if(null!==Ae(n)){var i=e.some((function(t){return t.contains(n)}));if(!i){var r=t.popupService;i=r.getActivePopups().some((function(t){return t.contains(n)}))||r.isElementWithinCustomPopup(n)}i||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()};e.forEach((function(e){return t.addManagedListener(e,"focusout",o)}))}},e.prototype.addAngularApplyCheck=function(){var t=this,e=!1,o=function(){e||(e=!0,window.setTimeout((function(){e=!1,t.$scope.$apply()}),0))};this.addManagedListener(this.eventService,Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,Ht.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},e.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ht.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Hr.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},e.prototype.addDragListeners=function(){var t=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!o(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(e){var o={eElement:e,onDragStart:t.rangeController.onDragStart.bind(t.rangeController),onDragStop:t.rangeController.onDragStop.bind(t.rangeController),onDragging:t.rangeController.onDragging.bind(t.rangeController)};t.dragService.addDragSource(o),t.addDestroyFunc((function(){return t.dragService.removeDragSource(o)}))}))},e.prototype.addMouseListeners=function(){var t=this;["dblclick","contextmenu","mouseover","mouseout","click","mousedown"].forEach((function(e){var o=t.processMouseEvent.bind(t,e);t.eAllCellContainers.forEach((function(n){return t.addManagedListener(n,e,o)}))}))},e.prototype.addPreventScrollWhileDragging=function(){var t=this,e=function(e){t.dragService.isDragging()&&e.cancelable&&e.preventDefault()};this.eAllCellContainers.forEach((function(t){t.addEventListener("touchmove",e,{passive:!1})})),this.addDestroyFunc((function(){t.eAllCellContainers.forEach((function(t){t.removeEventListener("touchmove",e)}))}))},e.prototype.addKeyboardEvents=function(){var t=this;["keydown","keypress"].forEach((function(e){var o=t.processKeyboardEvent.bind(t,e);t.eAllCellContainers.forEach((function(n){t.addManagedListener(n,e,o)}))}))},e.prototype.addBodyViewportListener=function(){var t=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(e){var o=Tt(e);o!==t.eBodyViewport&&o!==t.eCenterViewport||(t.onContextMenu(e,null,null,null,null),t.preventDefaultOnContextMenu(e))}))},e.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},e.prototype.getRowForEvent=function(t){for(var e=Tt(t);e;){var o=this.gridOptionsWrapper.getDomData(e,Rs.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;e=e.parentElement}return null},e.prototype.processKeyboardEvent=function(t,e){var o=Dt(this.gridOptionsWrapper,e);if(o&&!e.defaultPrevented){var n=o.getRenderedRow().getRowNode(),i=o.getColumn(),r=o.isEditing();if(!fn(this.gridOptionsWrapper,e,n,i,r))switch(t){case"keydown":!r&&this.navigationService.handlePageScrollingKey(e)||o.onKeyDown(e),this.doGridOperations(e,o);break;case"keypress":o.onKeyPress(e)}if("keydown"===t){var s=o.createEvent(e,Ht.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===t){var a=o.createEvent(e,Ht.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}}},e.prototype.doGridOperations=function(t,e){if((t.ctrlKey||t.metaKey)&&!e.isEditing()&&this.mouseEventService.isEventFromThisGrid(t))switch(t.which){case xn.A:return this.onCtrlAndA(t);case xn.C:return this.onCtrlAndC(t);case xn.V:return this.onCtrlAndV();case xn.D:return this.onCtrlAndD(t);case xn.Z:return t.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case xn.Y:return this.undoRedoService.redo()}},e.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},e.prototype.processMouseEvent=function(t,e){if(this.mouseEventService.isEventFromThisGrid(e)&&!Pt(e)){var o=this.getRowForEvent(e),n=this.mouseEventService.getRenderedCellForEvent(e);"contextmenu"===t?(this.preventDefaultOnContextMenu(e),this.handleContextMenuMouseEvent(e,null,o,n)):(n&&n.onMouseEvent(t,e),o&&o.onMouseEvent(t,e))}},e.prototype.mockContextMenuForIPad=function(){var t=this;_e()&&this.eAllCellContainers.forEach((function(e){var o=new ri(e);t.addManagedListener(o,ri.EVENT_LONG_TAP,(function(e){var o=t.getRowForEvent(e.touchEvent),n=t.mouseEventService.getRenderedCellForEvent(e.touchEvent);t.handleContextMenuMouseEvent(null,e.touchEvent,o,n)})),t.addDestroyFunc((function(){return o.destroy()}))}))},e.prototype.handleContextMenuMouseEvent=function(t,e,o,n){var i=o?o.getRowNode():null,r=n?n.getColumn():null,s=null;if(r){var a=t||e;n.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(r,i)}this.onContextMenu(t,e,i,r,s)},e.prototype.onContextMenu=function(t,e,o,n,i){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!t||!t.ctrlKey&&!t.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var r=t||e.touches[0];if(this.contextMenuFactory.showMenu(o,n,i,r))(t||e).preventDefault()}},e.prototype.preventDefaultOnContextMenu=function(t){var e=this.gridOptionsWrapper,o=t.which;(e.isPreventDefaultOnContextMenu()||e.isSuppressMiddleClickScrolls()&&2===o)&&t.preventDefault()},e.prototype.onCtrlAndA=function(t){var e=this.pinnedRowModel,o=this.paginationProxy,i=this.rangeController,r=dt.PINNED_BOTTOM,s=dt.PINNED_TOP;if(i&&o.isRowsToRender()){var a=[e.isEmpty(s),e.isEmpty(r)],l=a[0]?null:s,p=void 0,u=void 0;a[1]?(p=null,u=this.paginationProxy.getRowCount()-1):(p=r,u=e.getPinnedBottomRowData().length-1);var c=this.columnController.getAllDisplayedColumns();if(n(c))return;i.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:u,rowEndPinned:p,columnStart:c[0],columnEnd:d(c)})}t.preventDefault()},e.prototype.onCtrlAndC=function(t){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),t.preventDefault())},e.prototype.onCtrlAndV=function(){ht.isRegistered(lt.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},e.prototype.onCtrlAndD=function(t){ht.isRegistered(lt.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),t.preventDefault()},e.prototype.ensureIndexVisible=function(t,e){if(!this.printLayout){var o=this.paginationProxy.getRowCount();if("number"!=typeof t||t<0||t>=o)console.warn("invalid row index for ensureIndexVisible: "+t);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(t);var n,i=this.paginationProxy.getRow(t);do{var r=i.rowTop,s=i.rowHeight,a=this.paginationProxy.getPixelOffset(),l=i.rowTop-a,p=l+i.rowHeight,u=this.getVScrollPosition(),c=this.heightScaler.getOffset(),d=u.top+c,h=u.bottom+c,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),y=this.heightScaler.getScrollPositionForPixel(p-f),v=Math.min((g+y)/2,l),m=null;"top"===e?m=g:"bottom"===e?m=y:"middle"===e?m=v:d>l?m=g:h<p&&(m=y),null!==m&&(this.eBodyViewport.scrollTop=m,this.rowRenderer.redrawAfterScroll()),n=r!==i.rowTop||s!==i.rowHeight}while(n);this.animationFrameService.flushAllFrames()}}},e.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},e.prototype.isVerticalScrollShowing=function(){var t=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return We(this.eBodyViewport,"ag-force-vertical-scroll",t),t||co(this.eBodyViewport)},e.prototype.isHorizontalScrollShowing=function(){return uo(this.eCenterViewport)},e.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},e.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize(),this.scrollLeft!==this.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.eCenterViewport)},e.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},e.prototype.updateScrollVisibleServiceImpl=function(){var t={horizontalScrollShowing:!1,verticalScrollShowing:!1};t.verticalScrollShowing=this.isVerticalScrollShowing(),t.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(t),this.setHorizontalScrollVisible(t.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(t.verticalScrollShowing)},e.prototype.setHorizontalScrollVisible=function(t){var e=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=t&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=e?0:o,i=Pe()&&t;this.eCenterViewport.style.height="calc(100% + "+o+"px)",go(this.eHorizontalScrollBody,n),go(this.eBodyHorizontalScrollViewport,n+(i?1:0)),go(this.eBodyHorizontalScrollContainer,n)},e.prototype.setVerticalScrollPaddingVisible=function(t){var e=t?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=e,this.setFakeHScrollSpacerWidths()},e.prototype.updateRowCount=function(){var t=this.headerNavigationService.getHeaderRowCount(),e=this.paginationProxy.getType(),o=-1;e===dt.ROW_MODEL_TYPE_CLIENT_SIDE&&(o=0,this.paginationProxy.forEachNode((function(t){t.group||o++})));var n=-1===o?-1:t+o;Bo(this.getGui(),n)},e.prototype.updateColumnCount=function(){var t=this.columnController.getAllGridColumns();Uo(this.getGui(),t.length)},e.prototype.ensureColumnVisible=function(t){var e=this.columnController.getGridColumn(t);if(e)if(e.isPinned())console.warn("calling ensureIndexVisible on a "+e.getPinned()+" pinned column doesn't make sense for column "+e.getColId());else if(this.columnController.isColumnDisplayed(e)){var o,n,i=e.getLeft(),r=i+e.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(o=l-a-s,n=l-a):(o=a,n=s+a);var p=o>i,u=n<r,c=s<e.getActualWidth(),d=p||c,h=u,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-s-i:l-r:d?i:r-s,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},e.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},e.prototype.sizeColumnsToFit=function(t){var e=this,o=this.eBodyViewport.clientWidth;o>0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===t?window.setTimeout((function(){e.sizeColumnsToFit(100)}),0):100===t?window.setTimeout((function(){e.sizeColumnsToFit(500)}),100):500===t?window.setTimeout((function(){e.sizeColumnsToFit(-1)}),500):console.warn("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},e.prototype.getCenterContainer=function(){return this.eCenterContainer},e.prototype.getDropTargetBodyContainers=function(){return[this.eBodyViewport,this.eTopViewport,this.eBottomViewport]},e.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},e.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},e.prototype.buildRowContainerComponents=function(){var t=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new Ma({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new Ma({eContainer:this.eFullWidthContainer}),pinnedLeft:new Ma({eContainer:this.eLeftContainer}),pinnedRight:new Ma({eContainer:this.eRightContainer}),floatingTop:new Ma({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new Ma({eContainer:this.eLeftTop}),floatingTopPinnedRight:new Ma({eContainer:this.eRightTop}),floatingTopFullWidth:new Ma({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new Ma({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new Ma({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new Ma({eContainer:this.eRightBottom}),floatingBottomFullWidth:new Ma({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},T(this.rowContainerComponents,(function(e,o){o&&t.getContext().createBean(o)}))},e.prototype.setupRowAnimationCssClass=function(){var t=this,e=function(){var e=t.gridOptionsWrapper.isAnimateRows()&&!t.heightScaler.isScaling();We(t.eBodyViewport,"ag-row-animation",e),We(t.eBodyViewport,"ag-row-no-animation",!e)};e(),this.addManagedListener(this.eventService,Ht.EVENT_HEIGHT_SCALE_CHANGED,e)},e.prototype.suppressScrollOnFloatingRow=function(){var t=this;this.addManagedListener(this.eTopViewport,"scroll",(function(){return t.eTopViewport.scrollLeft=0})),this.addManagedListener(this.eBottomViewport,"scroll",(function(){return t.eTopViewport.scrollLeft=0}))},e.prototype.getRowContainers=function(){return this.rowContainerComponents},e.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},e.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.updateColumnCount()},e.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},e.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},e.prototype.setCenterWidth=function(){var t=this.headerRootComp,e=this.columnController,o=e.getBodyContainerWidth();this.printLayout&&(o+=e.getPinnedLeftContainerWidth()+e.getPinnedRightContainerWidth());t.setHeaderContainerWidth(o);var n=o+"px";this.eCenterContainer.style.width=n,this.eBottomContainer.style.width=n,this.eTopContainer.style.width=n,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=n)},e.prototype.setPinnedLeftWidth=function(){var t=this,e=this.pinningLeft,o=this.columnController.getPinnedLeftContainerWidth(),n=this.pinningLeft=!this.printLayout&&o>0,i=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];e!==n&&this.headerRootComp.setLeftVisible(n),i.forEach((function(e){return ke(e,t.pinningLeft)})),n&&i.forEach((function(t){return fo(t,o)}))},e.prototype.setPinnedRightWidth=function(){var t=this.pinningRight,e=this.columnController.getPinnedRightContainerWidth(),o=this.pinningRight=!this.printLayout&&e>0,n=[this.eRightContainer,this.eRightTop,this.eRightBottom];t!==o&&this.headerRootComp.setRightVisible(o),n.forEach((function(t){return ke(t,o)})),o&&n.forEach((function(t){return fo(t,e)}))},e.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},e.prototype.setFakeHScrollSpacerWidths=function(){var t=this.columnController.getPinnedRightContainerWidth(),e=!this.enableRtl&&this.isVerticalScrollShowing(),o=this.gridOptionsWrapper.getScrollbarWidth();e&&(t+=o),fo(this.eHorizontalRightSpacer,t),We(this.eHorizontalRightSpacer,"ag-scroller-corner",t<=o);var n=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(n+=o),fo(this.eHorizontalLeftSpacer,n),We(this.eHorizontalLeftSpacer,"ag-scroller-corner",n<=o)},e.prototype.checkBodyHeight=function(){var t=this.eBodyViewport.clientHeight;if(this.bodyHeight!==t){this.bodyHeight=t;var e={type:Ht.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)}},e.prototype.setHeaderAndFloatingHeights=function(){var t,e,o,n=this,i=n.columnController,r=n.gridOptionsWrapper,s=n.pinnedRowModel,a=n.eTop,l=n.eBottom,p=0,u=i.getHeaderRowCount();i.isPivotMode()?(e=r.getPivotGroupHeaderHeight(),o=r.getPivotHeaderHeight()):(i.hasFloatingFilters()&&(u++,p=1),e=r.getGroupHeaderHeight(),o=r.getHeaderHeight());var c=u-(1+p);t=p*r.getFloatingFiltersHeight(),t+=c*e,t+=o,this.headerRootComp.setHeight(t);var d=s.getPinnedTopTotalHeight();d&&(d+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},e.prototype.getBodyHeight=function(){return this.bodyHeight},e.prototype.setHorizontalScrollPosition=function(t){var e=this.eCenterViewport.scrollWidth-this.eCenterViewport.clientWidth;this.shouldBlockScrollUpdate("horizontal",t)&&(t=Math.min(Math.max(t,0),e)),this.eCenterViewport.scrollLeft=t,this.doHorizontalScroll(t)},e.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},e.prototype.scrollHorizontally=function(t){var e=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(e+t),this.eCenterViewport.scrollLeft-e},e.prototype.scrollVertically=function(t){var e=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(e+t),this.eBodyViewport.scrollTop-e},e.prototype.addScrollListener=function(){this.addManagedListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?Q(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},e.prototype.onVerticalScroll=function(){var t=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",t,!0)||(this.animationFrameService.setScrollTop(t),this.scrollTop=t,this.redrawRowsAfterScroll())},e.prototype.shouldBlockScrollUpdate=function(t,e,o){if(void 0===o&&(o=!1),o&&!_e)return!1;if("vertical"===t){var n=this.eBodyViewport,i=n.clientHeight,r=n.scrollHeight;if(e<0||e+i>r)return!0}if("horizontal"===t){var s=this.eCenterViewport,a=s.clientWidth,l=s.scrollWidth;if(this.enableRtl&&Qe()){if(e>0)return!0}else if(e<0)return!0;if(Math.abs(e)+a>l)return!0}return!1},e.prototype.isControllingScroll=function(t){return this.lastHorizontalScrollElement?t===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=t,!0)},e.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},e.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},e.prototype.onBodyHorizontalScroll=function(t){var e=this.eCenterViewport.scrollLeft;this.shouldBlockScrollUpdate("horizontal",e,!0)||(this.doHorizontalScroll(Math.floor($e(t,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},e.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},e.prototype.doHorizontalScroll=function(t){this.scrollLeft=t;var e={type:Ht.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.onHorizontalViewportChanged()},e.prototype.redrawRowsAfterScroll=function(){var t={type:Ht.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t)},e.prototype.onHorizontalViewportChanged=function(){var t=this.eCenterViewport.clientWidth,e=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(t,e)},e.prototype.getCenterViewportScrollLeft=function(){return $e(this.eCenterViewport,this.enableRtl)},e.prototype.setCenterViewportScrollLeft=function(t){Ze(this.eCenterViewport,t,this.enableRtl)},e.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){void 0===t&&(t=this.getCenterViewportScrollLeft());var e=this.enableRtl?t:-t;this.headerRootComp.setHorizontalScroll(e),this.eBottomContainer.style.transform="translateX("+e+"px)",this.eTopContainer.style.transform="translateX("+e+"px)",Ze(this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport,t,this.enableRtl)},e.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t)},e.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},Ba([nt("alignedGridsService")],e.prototype,"alignedGridsService",void 0),Ba([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ba([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),Ba([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Ba([nt("animationFrameService")],e.prototype,"animationFrameService",void 0),Ba([nt("navigationService")],e.prototype,"navigationService",void 0),Ba([nt("autoHeightCalculator")],e.prototype,"autoHeightCalculator",void 0),Ba([nt("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Ba([nt("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),Ba([nt("paginationAutoPageSizeService")],e.prototype,"paginationAutoPageSizeService",void 0),Ba([nt("beans")],e.prototype,"beans",void 0),Ba([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),Ba([nt("columnApi")],e.prototype,"columnApi",void 0),Ba([nt("gridApi")],e.prototype,"gridApi",void 0),Ba([nt("dragService")],e.prototype,"dragService",void 0),Ba([nt("mouseEventService")],e.prototype,"mouseEventService",void 0),Ba([nt("$scope")],e.prototype,"$scope",void 0),Ba([nt("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),Ba([nt("valueService")],e.prototype,"valueService",void 0),Ba([nt("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ba([nt("maxDivHeightScaler")],e.prototype,"heightScaler",void 0),Ba([nt("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Ba([nt("undoRedoService")],e.prototype,"undoRedoService",void 0),Ba([nt("columnController")],e.prototype,"columnController",void 0),Ba([nt("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Ba([nt("popupService")],e.prototype,"popupService",void 0),Ba([it("rangeController")],e.prototype,"rangeController",void 0),Ba([it("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Ba([it("menuFactory")],e.prototype,"menuFactory",void 0),Ba([it("clipboardService")],e.prototype,"clipboardService",void 0),Ba([In("eBodyViewport")],e.prototype,"eBodyViewport",void 0),Ba([In("eCenterContainer")],e.prototype,"eCenterContainer",void 0),Ba([In("eCenterViewport")],e.prototype,"eCenterViewport",void 0),Ba([In("eLeftContainer")],e.prototype,"eLeftContainer",void 0),Ba([In("eRightContainer")],e.prototype,"eRightContainer",void 0),Ba([In("eCenterColsClipper")],e.prototype,"eCenterColsClipper",void 0),Ba([In("eHorizontalScrollBody")],e.prototype,"eHorizontalScrollBody",void 0),Ba([In("eHorizontalLeftSpacer")],e.prototype,"eHorizontalLeftSpacer",void 0),Ba([In("eHorizontalRightSpacer")],e.prototype,"eHorizontalRightSpacer",void 0),Ba([In("eBodyHorizontalScrollViewport")],e.prototype,"eBodyHorizontalScrollViewport",void 0),Ba([In("eBodyHorizontalScrollContainer")],e.prototype,"eBodyHorizontalScrollContainer",void 0),Ba([In("eFullWidthContainer")],e.prototype,"eFullWidthContainer",void 0),Ba([In("eTop")],e.prototype,"eTop",void 0),Ba([In("eLeftTop")],e.prototype,"eLeftTop",void 0),Ba([In("eRightTop")],e.prototype,"eRightTop",void 0),Ba([In("eTopContainer")],e.prototype,"eTopContainer",void 0),Ba([In("eTopViewport")],e.prototype,"eTopViewport",void 0),Ba([In("eTopFullWidthContainer")],e.prototype,"eTopFullWidthContainer",void 0),Ba([In("eBottom")],e.prototype,"eBottom",void 0),Ba([In("eLeftBottom")],e.prototype,"eLeftBottom",void 0),Ba([In("eRightBottom")],e.prototype,"eRightBottom",void 0),Ba([In("eBottomContainer")],e.prototype,"eBottomContainer",void 0),Ba([In("eBottomViewport")],e.prototype,"eBottomViewport",void 0),Ba([In("eBottomFullWidthContainer")],e.prototype,"eBottomFullWidthContainer",void 0),Ba([In("headerRoot")],e.prototype,"headerRootComp",void 0),Ba([In("overlayWrapper")],e.prototype,"overlayWrapper",void 0),Ba([tt],e.prototype,"init",null)}(Fn),function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}),Ua=(function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}t.prototype.registerGridComp=function(t){this.gridPanel=t},t.prototype.registerGridCore=function(t){this.gridCore=t},t.prototype.registerHeaderRootComp=function(t){this.headerRootComp=t},t.prototype.init=function(){switch(this.rowModel.getType()){case dt.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case dt.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case dt.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},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;T(this.detailGridInfoMap,(function(n,i){e(i)&&(t(i,o),o++)}))},t.prototype.getDataAsCsv=function(t){if(ht.assertRegistered(lt.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){ht.assertRegistered(lt.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getDataAsExcel=function(t){if(ht.assertRegistered(lt.ExcelExportModule,"api.getDataAsExcel"))return this.excelCreator.getDataAsExcelXml(t)},t.prototype.exportDataAsExcel=function(t){ht.assertRegistered(lt.ExcelExportModule,"api.exportDataAsExcel")&&this.excelCreator.exportDataAsExcel(t)},t.prototype.setEnterpriseDatasource=function(t){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},t.prototype.setServerSideDatasource=function(t){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(t):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+dt.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+dt.ROW_MODEL_TYPE_INFINITE+"'")},t.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+dt.ROW_MODEL_TYPE_VIEWPORT+"'")},t.prototype.setRowData=function(t){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isImmutableData()){var e=this.immutableService.createTransactionForRowData(t);if(!e)return;var o=e[0],n=e[1],i=this.clientSideRowModel.updateRowData(o,n);this.rowRenderer.refreshFullWidthRows(i.update)}else this.selectionController.reset(),this.clientSideRowModel.setRowData(t);else console.warn("cannot call setRowData unless using normal row model")},t.prototype.setFloatingTopRowData=function(t){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},t.prototype.setFloatingBottomRowData=function(t){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},t.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},t.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},t.prototype.getFloatingTopRow=function(t){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},t.prototype.getFloatingBottomRow=function(t){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(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.columnController.setColumnDefs(t,e)},t.prototype.setAutoGroupColumnDef=function(t,e){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",t,!0)},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},t.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},t.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},t.prototype.refreshCells=function(t){void 0===t&&(t={}),Array.isArray(t)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):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={}),t&&t.rowNodes?this.rowRenderer.redrawRows(t.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},t.prototype.timeFullRedraw=function(t){void 0===t&&(t=1);var e=0,o=0,n=0,i=this;!function r(){var s=(new Date).getTime();i.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var i=(new Date).getTime(),l=a-s,p=i-a;console.log("duration:  processing = "+l+"ms, reflow = "+p+"ms"),e++,o+=l,n+=p,e<t?window.setTimeout(r,1e3):(console.log("tests complete. iteration count = "+e),console.log("average processing = "+o/e+"ms"),console.log("average reflow = "+n/e+"ms"))}),0)}()},t.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},t.prototype.refreshRows=function(t){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:t})},t.prototype.rowDataChanged=function(t){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},t.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},t.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},t.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("functionsReadOnly",t)},t.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(t,e){t&&t.setExpanded(e)},t.prototype.onGroupExpandedOrCollapsed=function(t){o(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),e(t)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:dt.STEP_MAP})},t.prototype.refreshInMemoryRowModel=function(t){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},t.prototype.refreshClientSideRowModel=function(t){o(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var n=dt.STEP_EVERYTHING,i={group:dt.STEP_EVERYTHING,filter:dt.STEP_FILTER,map:dt.STEP_MAP,aggregate:dt.STEP_AGGREGATE,sort:dt.STEP_SORT,pivot:dt.STEP_PIVOT};if(e(t)&&(n=i[t]),o(n))console.error("ag-Grid: invalid step "+t+", available steps are "+Object.keys(i).join(", "));else{var r={step:n,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(r)}},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},t.prototype.expandAll=function(){o(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},t.prototype.collapseAll=function(){o(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},t.prototype.getToolPanelInstance=function(t){return this.gridCore.getToolPanelInstance(t)},t.prototype.addVirtualRowListener=function(t,e,o){"string"!=typeof t&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,e,o)},t.prototype.addRenderedRowListener=function(t,e,o){"virtualRowSelected"===t&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n                selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(t,e,o)},t.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},t.prototype.selectIndex=function(t,e,o){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(t,e)},t.prototype.deselectIndex=function(t,e){void 0===e&&(e=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),e&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(t)},t.prototype.selectNode=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!0,clearSelection:!e})},t.prototype.deselectNode=function(t,e){void 0===e&&(e=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),e&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},t.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},t.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},t.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},t.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},t.prototype.recomputeAggregates=function(){o(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:dt.STEP_AGGREGATE})},t.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},t.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},t.prototype.isNodeSelected=function(t){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},t.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},t.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColIndexVisible=function(t){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},t.prototype.ensureColumnVisible=function(t){this.gridPanel.ensureColumnVisible(t)},t.prototype.ensureIndexVisible=function(t,e){this.gridPanel.ensureIndexVisible(t,e)},t.prototype.ensureNodeVisible=function(t,e){this.gridCore.ensureNodeVisible(t,e)},t.prototype.forEachLeafNode=function(t){o(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},t.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},t.prototype.forEachNodeAfterFilter=function(t){o(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},t.prototype.forEachNodeAfterFilterAndSort=function(t){o(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},t.prototype.getFilterApiForColDef=function(t){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterInstance instead"),this.getFilterInstance(t)},t.prototype.getFilterInstance=function(t,e){var o=this.columnController.getPrimaryColumn(t);if(o){var n=this.filterManager.getFilterComponent(o,"NO_UI"),i=n.resolveNow(null,(function(t){return t}));return e&&(i?setTimeout(e,0,i):n.then(e)),i}},t.prototype.getFilterApi=function(t){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(t)},t.prototype.destroyFilter=function(t){var e=this.columnController.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"filterDestroyed")},t.prototype.getStatusPanel=function(t){if(this.statusBarService)return this.statusBarService.getStatusPanel(t)},t.prototype.getColumnDef=function(t){var e=this.columnController.getPrimaryColumn(t);return e?e.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnController.getColumnDefs()},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},t.prototype.onSortChanged=function(){this.sortController.onSortChanged()},t.prototype.setSortModel=function(t,e){console.warn("ag-Grid: as of version 24.0.0, setSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.applyColumnState() instead.");var o=[];t&&t.forEach((function(t,e){o.push({colId:t.colId,sort:t.sort,sortIndex:e})})),this.columnController.applyColumnState({state:o,defaultState:{sort:null}})},t.prototype.getSortModel=function(){console.warn("ag-Grid: as of version 24.0.0, getSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.getColumnState() instead.");var t=this.columnController.getColumnState().filter((function(t){return null!=t.sort})),e={};t.forEach((function(t){return e[t.colId]=t.sortIndex}));var o=t.map((function(t){return{colId:t.colId,sort:t.sort}}));return o.sort((function(t,o){return e[t.colId]-e[o.colId]})),o},t.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusController.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusController.clearFocusedCell()},t.prototype.setFocusedCell=function(t,e,o){this.focusController.setFocusedCell(t,e,o,!0)},t.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_SUPPRESS_ROW_DRAG,t)},t.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},t.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},t.prototype.addRowDropZone=function(t){this.gridPanel.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.gridPanel.getRowDragFeature().getRowDropZone(t)},t.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_HEADER_HEIGHT,t),this.doLayout()},t.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_DOM_LAYOUT,t)},t.prototype.setEnableCellTextSelection=function(t){this.gridPanel.setCellTextSelection(t)},t.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_FILL_HANDLE_DIRECTION,t)},t.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_GROUP_HEADER_HEIGHT,t),this.doLayout()},t.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_FLOATING_FILTERS_HEIGHT,t),this.doLayout()},t.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_PIVOT_GROUP_HEADER_HEIGHT,t),this.doLayout()},t.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_PIVOT_HEADER_HEIGHT,t),this.doLayout()},t.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},t.prototype.setSideBarVisible=function(t){this.gridCore.setSideBarVisible(t)},t.prototype.setSideBarPosition=function(t){this.gridCore.setSideBarPosition(t)},t.prototype.openToolPanel=function(t){this.gridCore.openToolPanel(t)},t.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},t.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},t.prototype.getSideBar=function(){return this.gridCore.getSideBar()},t.prototype.setSideBar=function(t){return this.gridCore.setSideBar(t)},t.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},t.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},t.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},t.prototype.resetRowHeights=function(){e(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},t.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},t.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(Hr.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(t,e){var n=this.columnController.getPrimaryColumn(t);return o(n)&&(n=this.columnController.getGridColumn(t)),o(n)?null:this.valueService.getValue(n,e)},t.prototype.addEventListener=function(t,e){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,e,o)},t.prototype.addGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,e)},t.prototype.removeEventListener=function(t,e){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,e,o)},t.prototype.removeGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},t.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},t.prototype.destroy=function(){this.destroyCalled||(this.destroyCalled=!0,this.context.destroyBean(this.gridCore),this.context.destroy())},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(bn.removeAllReferences.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.rowModel.forEachNode((function(t){return t.quickFilterAggregateText=null}))},t.prototype.getRangeSelections=function(){return console.warn("ag-Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n        We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n        getCellRanges() is a bit different, please check the ag-Grid documentation."),null},t.prototype.getCellRanges=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},t.prototype.camelCaseToHumanReadable=function(t){return Yt(t)},t.prototype.addRangeSelection=function(t){console.warn("ag-Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},t.prototype.addCellRange=function(t){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addCellRange(t)},t.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.removeAllCellRanges()},t.prototype.undoCellEditing=function(){this.undoRedoService.undo()},t.prototype.redoCellEditing=function(){this.undoRedoService.redo()},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(ht.assertRegistered(lt.RangeSelectionModule,"api.getChartModels")&&ht.assertRegistered(lt.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.createRangeChart=function(t){if(ht.assertRegistered(lt.RangeSelectionModule,"api.createRangeChart")&&ht.assertRegistered(lt.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},t.prototype.createPivotChart=function(t){if(ht.assertRegistered(lt.RangeSelectionModule,"api.createPivotChart")&&ht.assertRegistered(lt.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},t.prototype.copySelectedRowsToClipboard=function(t,e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t,e)},t.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},t.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(t,e){var o=this.columnController.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(o,e)},t.prototype.showColumnMenuAfterMouseClick=function(t,e){var o=this.columnController.getGridColumn(t);o||(o=this.columnController.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.gridOptionsWrapper.setProperty(Hr.PROP_POPUP_PARENT,t)},t.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},t.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},t.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t)},t.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t)},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.columnController.getGridColumn(t.colKey);if(e){var n={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e};o(t.rowPinned)&&this.gridPanel.ensureIndexVisible(t.rowIndex),this.rowRenderer.startEditingCell(n,t.keyPress,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,e){void 0===e&&(e=[]),this.serverSideRowModel&&this.serverSideRowModel.applyTransaction(t,e)},t.prototype.applyTransaction=function(t){var e=null;if(this.clientSideRowModel)e=this.clientSideRowModel.updateRowData(t);else{if(!this.infiniteRowModel)return void console.error("ag-Grid: updateRowData() only works with ClientSideRowModel.");U((function(){return console.warn("ag-Grid: as of v23.1, transactions for Infinite Row Model are deprecated. If you want to make updates to data in Infinite Row Models, then refresh the data.")}),"applyTransaction infiniteRowModel deprecated"),this.infiniteRowModel.updateRowData(t)}return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),e},t.prototype.updateRowData=function(t){return U((function(){return console.warn("ag-Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(t)},t.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):console.error("ag-Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("ag-Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.batchUpdateRowData=function(t,e){U((function(){return console.warn("ag-Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(t,e)},t.prototype.insertItemsAtIndex=function(t,e,o){console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:t,update:null,remove:null})},t.prototype.removeItems=function(t,e){console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=t.map((function(t){return t.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},t.prototype.addItems=function(t,e){console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},t.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},t.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeEnterpriseCache=function(t){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(t)},t.prototype.purgeServerSideCache=function(t){this.serverSideRowModel?this.serverSideRowModel.purgeCache(t):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},t.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.isMaxRowFound=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},t.prototype.setVirtualRowCount=function(t,e){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(t,e)},t.prototype.setInfiniteRowCount=function(t,e){this.infiniteRowModel?this.infiniteRowModel.setVirtualRowCount(t,e):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getCacheBlockState=function(){return this.infiniteRowModel?this.infiniteRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},t.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},t.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},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.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("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)},ja([it("immutableService")],t.prototype,"immutableService",void 0),ja([it("csvCreator")],t.prototype,"csvCreator",void 0),ja([it("excelCreator")],t.prototype,"excelCreator",void 0),ja([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),ja([nt("filterManager")],t.prototype,"filterManager",void 0),ja([nt("columnController")],t.prototype,"columnController",void 0),ja([nt("selectionController")],t.prototype,"selectionController",void 0),ja([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ja([nt("valueService")],t.prototype,"valueService",void 0),ja([nt("alignedGridsService")],t.prototype,"alignedGridsService",void 0),ja([nt("eventService")],t.prototype,"eventService",void 0),ja([nt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ja([nt("context")],t.prototype,"context",void 0),ja([nt("rowModel")],t.prototype,"rowModel",void 0),ja([nt("sortController")],t.prototype,"sortController",void 0),ja([nt("paginationProxy")],t.prototype,"paginationProxy",void 0),ja([nt("focusController")],t.prototype,"focusController",void 0),ja([nt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ja([it("rangeController")],t.prototype,"rangeController",void 0),ja([it("clipboardService")],t.prototype,"clipboardService",void 0),ja([it("aggFuncService")],t.prototype,"aggFuncService",void 0),ja([nt("menuFactory")],t.prototype,"menuFactory",void 0),ja([it("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),ja([nt("cellRendererFactory")],t.prototype,"cellRendererFactory",void 0),ja([nt("valueCache")],t.prototype,"valueCache",void 0),ja([nt("animationFrameService")],t.prototype,"animationFrameService",void 0),ja([it("statusBarService")],t.prototype,"statusBarService",void 0),ja([it("chartService")],t.prototype,"chartService",void 0),ja([it("undoRedoService")],t.prototype,"undoRedoService",void 0),ja([tt],t.prototype,"init",null),ja([et],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=ja([ot("gridApi")],t)}(),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),za=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ka=function(t,e){return function(o,n){e(o,n,t)}},Ya=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}Ua(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ExpressionService")},e.prototype.evaluate=function(t,e){if("function"==typeof t)return t(e);if("string"==typeof t){var o=t;return this.evaluateExpression(o,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+";"},za([Ka(0,st("loggerFactory"))],e.prototype,"setBeans",null),e=za([ot("expressionService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),qa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Xa=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}Ya(e,t),e.prototype.getTemplate=function(t,e){var o=this.templateCache[t];if(o)return o;var n=this.waitingCallbacks[t],i=this;if(!n){n=[],this.waitingCallbacks[t]=n;var r=new XMLHttpRequest;r.onload=function(){i.handleHttpResult(this,t)},r.open("GET",t),r.send()}return e&&n.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],n=0;n<o.length;n++){(0,o[n])()}if(this.$scope){var i=this;window.setTimeout((function(){i.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+t.status+" - "+e)},qa([nt("$scope")],e.prototype,"$scope",void 0),e=qa([ot("templateService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Qa=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$a=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.popupList=[],e}Xa(e,t),e.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,Ht.EVENT_KEYBOARD_FOCUS,(function(){P(t.popupList,(function(t){return xe(t.element,"ag-keyboard-focus")}))})),this.addManagedListener(this.eventService,Ht.EVENT_MOUSE_FOCUS,(function(){P(t.popupList,(function(t){return Ve(t.element,"ag-keyboard-focus")}))}))},e.prototype.registerGridCore=function(t){this.gridCore=t},e.prototype.getPopupParent=function(){var t=this.gridOptionsWrapper.getPopupParent();return t||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect(),n=this.keepYWithinBounds(t,e.top-o.top),i=t.ePopup.clientWidth>0?t.ePopup.clientWidth:200;t.ePopup.style.minWidth=i+"px";var r,s=o.right-o.left-i;function a(){return e.right-o.left-2}function l(){return e.left-o.left-i}this.gridOptionsWrapper.isEnableRtl()?((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=n+"px"},e.prototype.positionPopupUnderMouseEvent=function(t){var e=this.calculatePointerAlign(t.mouseEvent),o=e.x,n=e.y,i=t.ePopup,r=t.nudgeX,s=t.nudgeY;this.positionPopup({ePopup:i,x:o,y:n,nudgeX:r,nudgeY:s,keepWithinBounds:!0}),this.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.positionPopupUnderComponent=function(t){var e=t.eventSource.getBoundingClientRect(),o=t.alignSide||"left",n=this.getParentRect(),i=e.left-n.left;"right"===o&&(i-=t.ePopup.offsetWidth-e.width),this.positionPopup({ePopup:t.ePopup,minWidth:t.minWidth,minHeight:t.minHeight,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:i,y:e.top-n.top+e.height,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},e.prototype.positionPopupOverComponent=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect();this.positionPopup({ePopup:t.ePopup,minWidth:t.minWidth,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:e.left-o.left,y:e.top-o.top,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},e.prototype.callPostProcessPopup=function(t,e,o,n,i,r){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:i,rowNode:r,ePopup:e,type:t,eventSource:o,mouseEvent:n})},e.prototype.positionPopup=function(t){var e=t.x,o=t.y;t.nudgeX&&(e+=t.nudgeX),t.nudgeY&&(o+=t.nudgeY),t.keepWithinBounds&&(e=this.keepXWithinBounds(t,e),o=this.keepYWithinBounds(t,o)),t.ePopup.style.left=e+"px",t.ePopup.style.top=o+"px"},e.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},e.prototype.getParentRect=function(){var t=this.getPopupParent(),e=this.gridOptionsWrapper.getDocument();t===e.body&&(t=e.documentElement);var o=getComputedStyle(t),n=t.getBoundingClientRect();return{top:n.top+parseFloat(o.borderTopWidth)||0,left:n.left+parseFloat(o.borderLeftWidth)||0,right:n.right+parseFloat(o.borderRightWidth)||0,bottom:n.bottom+parseFloat(o.borderBottomWidth)||0}},e.prototype.keepYWithinBounds=function(t,e){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,i=this.getPopupParent(),r=i.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=i===o.body,l=Math.min(200,r.height),p=0;t.minHeight&&t.minHeight<l?l=t.minHeight:t.ePopup.offsetHeight>0&&(l=t.ePopup.clientHeight,p=qe(t.ePopup)-l);var u=a?qe(n)+n.scrollTop:r.height;a&&(u-=Math.abs(s.top-r.top));var c=u-l-p;return Math.min(Math.max(e,0),Math.abs(c))},e.prototype.keepXWithinBounds=function(t,e){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,i=this.getPopupParent(),r=i.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=i===o.body,l=t.ePopup,p=Math.min(200,r.width),u=0;t.minWidth&&t.minWidth<p?p=t.minWidth:l.offsetWidth>0&&(p=l.offsetWidth,l.style.minWidth=p+"px",u=Xe(l)-p);var c=a?Xe(n)+n.scrollLeft:r.width;a&&(c-=Math.abs(s.left-r.left));var d=c-p-u;return Math.min(Math.max(e,0),Math.abs(d))},e.prototype.keepPopupPositionedRelativeTo=function(t){var e=this.getPopupParent(),o=e.getBoundingClientRect(),n=t.element.getBoundingClientRect(),i=o.top-n.top,r=i,s=t.ePopup.style.top,a=parseInt(s.substring(0,s.length-1),10),l=window.setInterval((function(){var o=e.getBoundingClientRect(),n=t.element.getBoundingClientRect(),s=o.top-n.top;if(s!=r){var l=a+i-s;t.ePopup.style.top=l+"px"}r=s}),200);return function(){window.clearInterval(l)}},e.prototype.addPopup=function(t){var e=this,o=t.modal,n=t.eChild,i=t.closeOnEsc,r=t.closedCallback,s=t.click,a=t.alwaysOnTop,l=t.positionCallback,p=t.anchorToElement,u=this.gridOptionsWrapper.getDocument();if(!u)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var c=E(this.popupList,(function(t){return t.element===n}));if(-1!==c)return this.popupList[c].hideFunc;var d=this.getPopupParent();d.appendChild(n),null==n.style.top&&(n.style.top="0px"),null==n.style.left&&(n.style.left="0px");var h=document.createElement("div"),f=this.environment.getTheme().theme;f&&xe(h,f),xe(h,"ag-popup"),xe(n,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),xe(n,"ag-popup-child"),h.appendChild(n),d.appendChild(h),a?this.setAlwaysOnTop(h,!0):this.bringPopupToFront(h);var g,y=!1,v=function(t){h.contains(document.activeElement)&&((t.which||t.keyCode)===xn.ESCAPE&&w({keyboardEvent:t}))},m=function(t){return w({mouseEvent:t})},C=function(t){return w({touchEvent:t})},w=function(t){void 0===t&&(t={});var o=t.mouseEvent,i=t.touchEvent,a=t.keyboardEvent;e.isEventFromCurrentPopup({mouseEvent:o,touchEvent:i},n)||e.isEventSameChainAsOriginalEvent({originalMouseEvent:s,mouseEvent:o,touchEvent:i})||y||(y=!0,d.removeChild(h),u.removeEventListener("keydown",v),u.removeEventListener("mousedown",m),u.removeEventListener("touchstart",C),u.removeEventListener("contextmenu",m),e.eventService.removeEventListener(Ht.EVENT_DRAG_STARTED,m),r&&r(o||i||a),e.popupList=e.popupList.filter((function(t){return t.element!==n})),g&&g())};return window.setTimeout((function(){i&&u.addEventListener("keydown",v),o&&(u.addEventListener("mousedown",m),e.eventService.addEventListener(Ht.EVENT_DRAG_STARTED,m),u.addEventListener("touchstart",C),u.addEventListener("contextmenu",m))}),0),this.popupList.push({element:n,hideFunc:w}),l&&l(),p&&(g=this.keepPopupPositionedRelativeTo({element:p,ePopup:n})),w},e.prototype.isEventFromCurrentPopup=function(t,e){var o=t.mouseEvent,n=t.touchEvent,i=o||n;if(!i)return!1;var r=E(this.popupList,(function(t){return t.element===e}));if(-1===r)return!1;for(var s=r;s<this.popupList.length;s++){if(_t(this.popupList[s].element,i))return!0}return this.isElementWithinCustomPopup(i.target)},e.prototype.isElementWithinCustomPopup=function(t){if(!this.popupList.length)return!1;for(;t&&t!==document.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,n=t.touchEvent,i=null;if(o?i=o:n&&(i=n.touches[0]),i&&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(;!He(t,"ag-popup")&&t.parentElement;)t=t.parentElement;return He(t,"ag-popup")?t:null},e.prototype.setAlwaysOnTop=function(t,e){var o=this.getWrapper(t);o&&(We(o,"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")),n=o.length,i=Array.prototype.slice.call(e.querySelectorAll(".ag-popup.ag-always-on-top")),r=i.length,s=this.getWrapper(t);if(s&&!(n<=1)&&e.contains(t)){var a=o.indexOf(s);if(r)He(s,"ag-always-on-top")?a!==n-1&&d(i).insertAdjacentElement("afterend",s):a!==n-r-1&&i[0].insertAdjacentElement("beforebegin",s);else a!==n-1&&d(o).insertAdjacentElement("afterend",s);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},Qa([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Qa([nt("environment")],e.prototype,"environment",void 0),Qa([tt],e.prototype,"init",null),e=Qa([ot("popupService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Za=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ja=function(t,e){return function(o,n){e(o,n,t)}},tl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}$a(e,t),e.prototype.setBeans=function(t){this.logging=t.isDebug()},e.prototype.create=function(t){return new tl(t,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},Za([Ja(0,st("gridOptionsWrapper"))],e.prototype,"setBeans",null),e=Za([ot("loggerFactory")],e)}(Gt),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}()),el=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ol=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},nl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}el(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.registerHeaderRootComp=function(t){this.headerRootComp=t},e.prototype.getPreferredWidthForColumn=function(t,e){var o=this.getHeaderCellForColumn(t);if(!o)return-1;var n=document.createElement("span");n.style.position="fixed";var i=this.gridPanel.getCenterContainer();i.appendChild(n),this.putRowCellsIntoDummyContainer(t,n),e||this.cloneItemIntoDummy(o,n);var r=n.offsetWidth;return i.removeChild(n),r+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(t){var e=null;return this.headerRootComp.forEachHeaderElement((function(o){if(o instanceof $s){var n=o;n.getColumn()===t&&(e=n)}})),e?e.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(t,e){var o=this;this.rowRenderer.getAllCellsForColumn(t).forEach((function(t){return o.cloneItemIntoDummy(t,e)}))},e.prototype.cloneItemIntoDummy=function(t,e){var o=t.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var n=document.createElement("div");He(o,"ag-header-cell")?(xe(n,"ag-header"),xe(n,"ag-header-row"),n.style.position="static"):xe(n,"ag-row"),n.style.display="table-row",n.appendChild(o),e.appendChild(n)},ol([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),ol([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=ol([ot("autoWidthCalculator")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),il=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},rl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}nl(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(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldUserSelect=this.eGridDiv.style.userSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="ew-resize",this.eGridDiv.style.userSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(t,e){t.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.userSelect=this.oldUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(t,e){this.resizeAmount=e.clientX-this.dragStartX,t.onResizing(this.resizeAmount)},il([nt("dragService")],e.prototype,"dragService",void 0),il([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),e=il([ot("horizontalResizeService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),sl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},al=(function(t){function e(){return t.call(this,void 0,!0)||this}rl(e,t),e.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var o=this.createTemplate();if(this.setTemplate(o),[this.gridApi,this.rowRenderer,this.popupService,this.focusController].forEach((function(t){return t.registerGridCore(e)})),ht.isRegistered(lt.ClipboardModule)&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var n=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(n)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var i=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return i()}));var r=this.getGui();this.addManagedListener(this.eventService,Ht.EVENT_KEYBOARD_FOCUS,(function(){xe(r,"ag-keyboard-focus")})),this.addManagedListener(this.eventService,Ht.EVENT_MOUSE_FOCUS,(function(){Ve(r,"ag-keyboard-focus")})),t.prototype.postConstruct.call(this)},e.prototype.getFocusableElement=function(){return this.eRootWrapperBody},e.prototype.createTemplate=function(){var t=ht.isRegistered(lt.SideBarModule),e=ht.isRegistered(lt.StatusBarModule);return'<div ref="eRootWrapper" class="ag-root-wrapper">\n                '+(ht.isRegistered(lt.RowGroupingModule)?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n                <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n                    <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n                    '+(t?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n                </div>\n                "+(e?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n                <ag-pagination></ag-pagination>\n                "+(ht.isRegistered(lt.EnterpriseCoreModule)?"<ag-watermark></ag-watermark>":"")+"\n            </div>"},e.prototype.getFocusableContainers=function(){var t=[this.gridPanel.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return eo(t)}))},e.prototype.focusNextInnerContainer=function(t){var e=this.getFocusableContainers(),o=E(e,(function(t){return t.contains(document.activeElement)}))+(t?-1:1);return!(o<0||o>=e.length)&&(0===o?this.focusGridHeader():this.focusController.focusInto(e[o]))},e.prototype.focusInnerElement=function(t){var e=this.getFocusableContainers();if(t){if(e.length>1)return this.focusController.focusInto(d(e));var o=d(this.columnController.getAllDisplayedColumns());if(this.focusController.focusGridView(o,!0))return!0}return this.focusGridHeader()},e.prototype.focusGridHeader=function(){var t=this.columnController.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnController.getColumnGroupAtLevel(t,0)),this.focusController.focusHeaderPosition({headerRowIndex:0,column:t}),!0)},e.prototype.onGridSizeChanged=function(){var t={type:Ht.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(t)},e.prototype.addRtlSupport=function(){var t=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";xe(this.getGui(),t)},e.prototype.getRootGui=function(){return this.getGui()},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("ag-Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("ag-Grid: sideBar is not loaded")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.getToolPanelInstance=function(t){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(t);console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},e.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.setSideBar=function(t){this.sideBarComp&&(this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=Lr.parse(t),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui()))},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.destroy=function(){this.logger.log("Grid DOM removed"),t.prototype.destroy.call(this)},e.prototype.ensureNodeVisible=function(t,e){if(void 0===e&&(e=null),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var o=this.rowModel.getRowCount(),n="function"==typeof t,i=-1,r=0;r<o;r++){var s=this.rowModel.getRow(r);if(n){if(t(s)){i=r;break}}else if(t===s||t===s.data){i=r;break}}i>=0&&this.gridPanel.ensureIndexVisible(i,e)},e.prototype.onTabKeyDown=function(){},sl([nt("gridOptions")],e.prototype,"gridOptions",void 0),sl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),sl([nt("rowModel")],e.prototype,"rowModel",void 0),sl([nt("resizeObserverService")],e.prototype,"resizeObserverService",void 0),sl([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),sl([nt("filterManager")],e.prototype,"filterManager",void 0),sl([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),sl([nt("$scope")],e.prototype,"$scope",void 0),sl([nt("quickFilterOnScope")],e.prototype,"quickFilterOnScope",void 0),sl([nt("popupService")],e.prototype,"popupService",void 0),sl([nt("columnController")],e.prototype,"columnController",void 0),sl([nt("loggerFactory")],e.prototype,"loggerFactory",void 0),sl([nt("columnApi")],e.prototype,"columnApi",void 0),sl([nt("gridApi")],e.prototype,"gridApi",void 0),sl([it("clipboardService")],e.prototype,"clipboardService",void 0),sl([In("gridPanel")],e.prototype,"gridPanel",void 0),sl([In("sideBar")],e.prototype,"sideBarComp",void 0),sl([In("rootWrapperBody")],e.prototype,"eRootWrapperBody",void 0)}(Kn),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),ll=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},pl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}al(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(t,e){var o=this;this.showPopup(t,(function(n){o.popupService.positionPopupUnderMouseEvent({column:t,type:"columnMenu",mouseEvent:e,ePopup:n})}),e.target)},e.prototype.showMenuAfterButtonClick=function(t,e){var o=this;this.showPopup(t,(function(n){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:e,ePopup:n,keepWithinBounds:!0,column:t})}),e)},e.prototype.showPopup=function(t,e,o){var n,i=this,r=this.filterManager.getOrCreateFilterWrapper(t,"COLUMN_MENU"),s=document.createElement("div");s.setAttribute("role","presentation"),xe(s,"ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(t){return i.trapFocusWithin(t,s)})),r.guiPromise.then((function(t){return s.appendChild(t)}));var a=function(t){"horizontal"===t.direction&&n()};this.eventService.addEventListener("bodyScroll",a);n=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(e){i.eventService.removeEventListener("bodyScroll",a),t.setMenuVisible(!1,"contextMenu");var n=e instanceof KeyboardEvent;if(i.tabListener&&(i.tabListener=i.tabListener()),n&&o&&eo(o)){var r=i.focusController.findTabbableParent(o);r&&r.focus()}}}),r.filterPromise.then((function(t){e(s),t.afterGuiAttached&&t.afterGuiAttached({container:"columnMenu",hidePopup:n})})),this.hidePopup=n,t.setMenuVisible(!0,"contextMenu")},e.prototype.trapFocusWithin=function(t,e){t.keyCode!==xn.TAB||t.defaultPrevented||this.focusController.findNextFocusableElement(e,!1,t.shiftKey)||(t.preventDefault(),this.focusController.focusInto(e,t.shiftKey))},e.prototype.isMenuEnabled=function(t){return t.isFilterAllowed()},ll([nt("filterManager")],e.prototype,"filterManager",void 0),ll([nt("popupService")],e.prototype,"popupService",void 0),ll([nt("focusController")],e.prototype,"focusController",void 0),e=ll([ot("menuFactory")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),ul=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},cl=(function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}pl(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 n=t.touchStartListener;e.removeEventListener("touchstart",n,{passive:!0})}},o.prototype.removeDragSource=function(t){var e=a(this.dragSources,(function(e){return e.dragSource===t}));e&&(this.removeListener(e),g(this.dragSources,e))},o.prototype.setNoSelectToBody=function(t){var o=this.gridOptionsWrapper.getDocument().querySelector("body");e(o)&&We(o,"ag-unselectable",t)},o.prototype.isDragging=function(){return this.dragging},o.prototype.addDragSource=function(t,e){void 0===e&&(e=!1);var o=this.onMouseDown.bind(this,t);t.eElement.addEventListener("mousedown",o);var n=null,i=this.gridOptionsWrapper.isSuppressTouch();e&&!i&&(n=this.onTouchStart.bind(this,t),t.eElement.addEventListener("touchstart",n,{passive:!0})),this.dragSources.push({dragSource:t,mouseDownListener:o,touchStartListener:n,touchEnabled:e})},o.prototype.onTouchStart=function(t,e){var o=this;this.currentDragParams=t,this.dragging=!1;var n=e.touches[0];this.touchLastTime=n,this.touchStart=n;var i=function(e){return o.onTouchUp(e,t.eElement)},r=t.eElement,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:i,options:{passive:!0}},{target:r,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(s),0===t.dragStartPixels&&this.onCommonMove(n,this.touchStart,t.eElement)},o.prototype.onMouseDown=function(t,e){var o=this,n=e;if(!(t.skipMouseEvent&&t.skipMouseEvent(e)||n._alreadyProcessedByDragService||(n._alreadyProcessedByDragService=!0,0!==e.button))){this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=e;var i=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0);var r=[{target:i,type:"mousemove",listener:function(e,n){return o.onMouseMove(e,t.eElement)}},{target:i,type:"mouseup",listener:function(e,n){return o.onMouseUp(e,t.eElement)}},{target:i,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,n=t.listener,i=t.options;e.addEventListener(o,n,i)})),this.dragEndFunctions.push((function(){t.forEach((function(t){var e=t.target,o=t.type,n=t.listener,i=t.options;e.removeEventListener(o,n,i)}))}))},o.prototype.isEventNearStartEvent=function(t,o){var n=this.currentDragParams.dragStartPixels;return mn(t,o,e(n)?n: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 n={type:Ht.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:o};this.eventService.dispatchEvent(n),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.onCommonMove(t,this.mouseStartEvent,e)},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:Ht.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:e};this.eventService.dispatchEvent(o)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(t){return t()})),this.dragEndFunctions.length=0},ul([nt("loggerFactory")],o.prototype,"loggerFactory",void 0),ul([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),ul([nt("columnApi")],o.prototype,"columnApi",void 0),ul([nt("gridApi")],o.prototype,"gridApi",void 0),ul([tt],o.prototype,"init",null),ul([et],o.prototype,"removeAllListeners",null),o=ul([ot("dragService")],o)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),dl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},hl=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getSortModel=function(){return e.getColumnsWithSortingOrdered().map((function(t){return{colId:t.getColId(),sort:t.getSort()}}))},e}var o;cl(e,t),o=e,e.prototype.progressSort=function(t,e,o){void 0===o&&(o="api");var n=this.getNextSortDirection(t);this.setSortForColumn(t,n,e,o)},e.prototype.setSortForColumn=function(t,e,o,n){void 0===n&&(n="api"),e!==dt.SORT_ASC&&e!==dt.SORT_DESC&&(e=null),t.setSort(e,n),o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(t,n),this.updateSortIndex(t),this.dispatchSortChangedEvents()},e.prototype.updateSortIndex=function(t){var e=this.getColumnsWithSortingOrdered(),o=0;e.forEach((function(e){e!==t&&(e.setSortIndex(o),o++)})),t.getSort()&&t.setSortIndex(o),this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return null==t.getSort()})).forEach((function(t){return t.setSortIndex(void 0)}))},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.isSortActive=function(){var t=this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t&&t.length>0},e.prototype.dispatchSortChangedEvents=function(){var t={type:Ht.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.clearSortBarThisColumn=function(t,e){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){o!==t&&o.setSort(void 0,e)}))},e.prototype.getNextSortDirection=function(t){var e;if(e=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():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 n,i=e.indexOf(t.getSort()),r=i<0,s=i==e.length-1;return n=r||s?e[0]:e[i+1],o.DEFAULT_SORTING_ORDER.indexOf(n)<0?(console.warn("ag-grid: invalid sort type "+n),null):n},e.prototype.getColumnsWithSortingOrdered=function(){var t=this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t.sort((function(t,e){return t.getSortIndex()-e.getSortIndex()})),t},e.prototype.getSortForRowController=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{inverter:t.getSort()===dt.SORT_ASC?1:-1,column:t}}))},e.DEFAULT_SORTING_ORDER=[dt.SORT_ASC,dt.SORT_DESC,null],dl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),dl([nt("columnController")],e.prototype,"columnController",void 0),dl([nt("columnApi")],e.prototype,"columnApi",void 0),dl([nt("gridApi")],e.prototype,"gridApi",void 0),e=o=dl([ot("sortController")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),fl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},gl=(function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.keyboardFocusActive=!1,t}var n;hl(o,e),n=o,o.prototype.init=function(){var t=this.gridOptionsWrapper.getDocument(),e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(t,"keydown",this.activateKeyboardMode.bind(this)),this.addManagedListener(t,"mousedown",this.activateMouseMode.bind(this))},o.prototype.registerGridCore=function(t){this.gridCore=t},o.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,e=this.columnController.getGridColumn(t.getId());t!==e&&this.clearFocusedCell()}},o.prototype.isKeyboardFocus=function(){return this.keyboardFocusActive},o.prototype.activateMouseMode=function(){this.keyboardFocusActive&&(this.keyboardFocusActive=!1,this.eventService.dispatchEvent({type:Ht.EVENT_MOUSE_FOCUS}))},o.prototype.activateKeyboardMode=function(){this.keyboardFocusActive||(this.keyboardFocusActive=!0,this.eventService.dispatchEvent({type:Ht.EVENT_KEYBOARD_FOCUS}))},o.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition?null:this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},o.prototype.getGridCellForDomElement=function(t){for(var e=t;e;){var o=this.gridOptionsWrapper.getDomData(e,ms.DOM_DATA_KEY_CELL_COMP);if(o)return o.getCellPosition();e=e.parentNode}return null},o.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},o.prototype.getFocusedCell=function(){return this.focusedCellPosition},o.prototype.setFocusedCell=function(e,o,n,i){void 0===i&&(i=!1);var r=this.columnController.getGridColumn(o);r?(this.focusedCellPosition={rowIndex:e,rowPinned:t(n),column:t(r)},this.onCellFocused(i)):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.getColumn(),o=t.getParentComponent().getRowIndex(),n=t.getPinned(),i=this.focusedHeaderPosition,r=i.column,s=i.headerRowIndex;return e===r&&o===s&&n==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,e,o,n,i){if(void 0===e&&(e=null),void 0===o&&(o=!1),void 0===n&&(n=!1),n){var r,s=this.gridOptionsWrapper,a=this.getFocusedHeader(),l=this.headerNavigationService.getHeaderRowCount();if(o){if(r=s.getTabToNextHeaderFunc())t=r({backwards:"Before"===e,previousHeaderPosition:a,nextHeaderPosition:t,headerRowCount:l})}else if(r=s.getNavigateToNextHeaderFunc())t=r({key:i.key,previousHeaderPosition:a,nextHeaderPosition:t,headerRowCount:l,event:i})}if(!t)return!1;if(-1===t.headerRowIndex)return this.focusGridView(t.column);this.headerNavigationService.scrollToColumn(t.column,e);var p=this.headerNavigationService.getHeaderContainer(t.column.getPinned()).getRowComps()[t.headerRowIndex].getHeaderComps()[t.column.getUniqueId()];return!!p&&(p.getFocusableElement().focus(),!0)},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=n.FOCUSABLE_SELECTOR,r=n.FOCUSABLE_EXCLUDE;e&&(r+=", "+e),o&&(r+=', [tabindex="-1"]');var s=Array.prototype.slice.apply(t.querySelectorAll(i)),a=Array.prototype.slice.apply(t.querySelectorAll(r));if(!a.length)return s;var l;return l=a,s.filter((function(t){return-1===l.indexOf(t)}))},o.prototype.focusInto=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1);var n=this.findFocusableElements(t,null,o),i=e?d(n):n[0];return!!i&&(i.focus(),!0)},o.prototype.findNextFocusableElement=function(t,e,o){var n=this.findFocusableElements(t,e?':not([tabindex="-1"])':null),i=(e?E(n,(function(t){return t.contains(document.activeElement)})):n.indexOf(document.activeElement))+(o?-1:1);return i<0||i>=n.length?null:n[i]},o.prototype.isFocusUnderManagedComponent=function(t){var e=t.querySelectorAll("."+Kn.FOCUS_MANAGED_CLASS);if(!e.length)return!1;for(var o=0;o<e.length;o++)if(e[o].contains(document.activeElement))return!0;return!1},o.prototype.findTabbableParent=function(t,e){void 0===e&&(e=5);for(var o=0;t&&null===Ae(t)&&++o<=e;)t=t.parentElement;return null===Ae(t)?null:t},o.prototype.onCellFocused=function(t){var e={type:Ht.EVENT_CELL_FOCUSED,forceBrowserFocus:t,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCellPosition&&(e.rowIndex=this.focusedCellPosition.rowIndex,e.column=this.focusedCellPosition.column,e.rowPinned=this.focusedCellPosition.rowPinned),this.eventService.dispatchEvent(e)},o.prototype.focusGridView=function(e,o){var n=o?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var i=n.rowIndex,r=n.rowPinned,s=this.getFocusedHeader();if(e||(e=s.column),null==i)return!1;if(this.rowRenderer.ensureCellVisible({rowIndex:i,column:e,rowPinned:r}),this.setFocusedCell(i,e,t(r),!0),this.rangeController){var a={rowIndex:i,rowPinned:r,column:e};this.rangeController.setRangeToCell(a)}return!0},o.prototype.focusNextGridCoreContainer=function(t){if(this.gridCore.focusNextInnerContainer(t))return!0;t||this.gridCore.forceFocusOutOfContainer()},o.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",o.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, .ag-disabled, .ag-disabled *",fl([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),fl([nt("columnController")],o.prototype,"columnController",void 0),fl([nt("headerNavigationService")],o.prototype,"headerNavigationService",void 0),fl([nt("columnApi")],o.prototype,"columnApi",void 0),fl([nt("gridApi")],o.prototype,"gridApi",void 0),fl([nt("rowRenderer")],o.prototype,"rowRenderer",void 0),fl([nt("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),fl([it("rangeController")],o.prototype,"rangeController",void 0),fl([tt],o.prototype,"init",null),o=n=fl([ot("focusController")],o)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),yl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},vl=(function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridInstanceId=n.gridInstanceSequence.next(),e}var n;gl(o,t),n=o,o.prototype.init=function(){this.stampDomElementWithGridInstance()},o.prototype.registerGridComp=function(t){this.gridPanel=t},o.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[n.GRID_DOM_KEY]=this.gridInstanceId},o.prototype.getRenderedCellForEvent=function(t){return Dt(this.gridOptionsWrapper,t)},o.prototype.isEventFromThisGrid=function(t){for(var o=Ft(t),i=0;i<o.length;i++){var r=o[i][n.GRID_DOM_KEY];if(e(r))return r===this.gridInstanceId}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,n=this.gridOptionsWrapper.getDomLayout()===dt.DOM_LAYOUT_NORMAL,i=t;if(null!=i.clientX||null!=i.clientY?(e=i.clientX,o=i.clientY):(e=i.x,o=i.y),n){var r=this.gridPanel.getVScrollPosition();e+=this.gridPanel.getHScrollPosition().left,o+=r.top}return{x:e,y:o}},o.gridInstanceSequence=new Sn,o.GRID_DOM_KEY="__ag_grid_instance",yl([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),yl([nt("eGridDiv")],o.prototype,"eGridDiv",void 0),yl([tt],o.prototype,"init",null),o=n=yl([ot("mouseEventService")],o)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),ml=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Cl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}vl(e,t),e.prototype.getNextCellToFocus=function(t,e){for(var o=e,n=!1;!n;){switch(t){case xn.UP:o=this.getCellAbove(o);break;case xn.DOWN:o=this.getCellBelow(o);break;case xn.RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case xn.LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("ag-Grid: unknown key for navigation "+t)}n=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(t){var e,o=t.column;switch(t.rowPinned){case dt.PINNED_TOP:e=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case dt.PINNED_BOTTOM:e=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:e=this.rowModel.getRow(t.rowIndex)}return!o.isSuppressNavigable(e)},e.prototype.getCellToLeft=function(t){if(!t)return null;var e=this.columnController.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.columnController.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 dt.PINNED_BOTTOM:return null;case dt.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(dt.PINNED_BOTTOM)?{rowIndex:0,rowPinned:dt.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(dt.PINNED_BOTTOM)?{rowIndex:0,rowPinned:dt.PINNED_BOTTOM}:null}return{rowIndex:e+1,rowPinned:o}},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 e===dt.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:e===dt.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},e.prototype.getRowAbove=function(t){var e=t.rowIndex,o=t.rowPinned;return(o?0===e:e===this.paginationProxy.getPageFirstRow())?o===dt.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(dt.PINNED_TOP)?this.getLastFloatingTopRow():null:{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:dt.PINNED_TOP}},e.prototype.getNextTabbedCell=function(t,e){return e?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},e.prototype.getNextTabbedCellForwards=function(t){var e=this.columnController.getAllDisplayedColumns(),n=t.rowIndex,i=t.rowPinned,r=this.columnController.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;n=s?s.rowIndex:null,i=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:i}},e.prototype.getNextTabbedCellBackwards=function(t){var e=this.columnController.getAllDisplayedColumns(),n=t.rowIndex,i=t.rowPinned,r=this.columnController.getDisplayedColBefore(t.column);if(!r){r=d(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;n=s?s.rowIndex:null,i=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:i}},ml([nt("columnController")],e.prototype,"columnController",void 0),ml([nt("rowModel")],e.prototype,"rowModel",void 0),ml([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ml([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ml([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),e=ml([ot("cellNavigationService")],e)}(Gt),function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}),wl=(function(){function t(){this.cellRendererMap={}}var e;e=t,t.prototype.init=function(){this.cellRendererMap[e.ANIMATE_SLIDE]=Bi,this.cellRendererMap[e.ANIMATE_SHOW_CHANGE]=Wi,this.cellRendererMap[e.GROUP]=Gi},t.prototype.addCellRenderer=function(t,e){this.cellRendererMap[t]=e},t.prototype.getCellRenderer=function(t){var e=this.cellRendererMap[t];return o(e)?(console.warn("ag-Grid: unable to find cellRenderer for key "+t),null):e},t.ANIMATE_SLIDE="animateSlide",t.ANIMATE_SHOW_CHANGE="animateShowChange",t.GROUP="group",Cl([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Cl([nt("expressionService")],t.prototype,"expressionService",void 0),Cl([nt("eventService")],t.prototype,"eventService",void 0),Cl([tt],t.prototype,"init",null),t=e=Cl([ot("cellRendererFactory")],t)}(),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),El=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Rl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}wl(e,t),e.prototype.formatValue=function(t,e,o,n,i,r){void 0===r&&(r=!0);var s,a=null,l=t.getColDef();if(i?s=i:r&&(s=e&&e.rowPinned&&l.pinnedRowValueFormatter?l.pinnedRowValueFormatter:l.valueFormatter),s){var p={value:n,node:e,data:e?e.data:null,colDef:l,column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};p.$scope=o,a=this.expressionService.evaluate(s,p)}else if(l.refData)return l.refData[n]||"";return null==a&&Array.isArray(n)&&(a=n.join(", ")),a},El([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),El([nt("expressionService")],e.prototype,"expressionService",void 0),e=El([ot("valueFormatterService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Ol=(function(t){function e(e){return t.call(this,e,"ag-radio-button","radio")||this}Rl(e,t),e.prototype.isSelected=function(){return this.eInput.checked},e.prototype.toggle=function(){this.isSelected()||this.setValue(!0)},e.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Ht.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)}}(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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Pl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},bl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ol(e,t),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:Ht.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Pl([nt("columnController")],e.prototype,"columnController",void 0),Pl([nt("columnApi")],e.prototype,"columnApi",void 0),Pl([nt("gridApi")],e.prototype,"gridApi",void 0),Pl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Pl([ot("scrollVisibleService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Sl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Dl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}bl(e,t),e.prototype.processAllCellClasses=function(t,e,o,n){this.processClassRules(t.cellClassRules,e,o,n),this.processStaticCellClasses(t,e,o)},e.prototype.processClassRules=function(t,e,o,n){if(W(t))for(var i=Object.keys(t),r=0;r<i.length;r++){var s=i[r],a=t[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,e):"function"==typeof a&&(l=a(e)),l?o(s):n&&n(s)}},e.prototype.processStaticCellClasses=function(t,e,o){if(t.cellClass){var n=void 0;if("function"==typeof t.cellClass)n=(0,t.cellClass)(e);else n=t.cellClass;"string"==typeof n?o(n):Array.isArray(n)&&n.forEach((function(t){o(t)}))}},Sl([nt("expressionService")],e.prototype,"expressionService",void 0),e=Sl([ot("stylingService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Tl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_l=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Dl(e,t),e.prototype.setMouseOver=function(t){this.selectedColumns=t;var e={type:Ht.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearMouseOver=function(){this.selectedColumns=null;var t={type:Ht.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.isHovered=function(t){return this.selectedColumns&&this.selectedColumns.indexOf(t)>=0},Tl([nt("columnApi")],e.prototype,"columnApi",void 0),Tl([nt("gridApi")],e.prototype,"gridApi",void 0),e=Tl([ot("columnHoverService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Al=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Fl=(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}_l(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(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.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){t.animationThreadCount===e&&t.gridPanel.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))},Al([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Al([ot("columnAnimationService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Nl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ll=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var n;Fl(e,t),n=e,e.prototype.createAutoGroupColumns=function(t){var e=this,o=[],n=this.gridOptionsWrapper.isTreeData(),i=this.gridOptionsWrapper.isGroupMultiAutoColumn();return n&&i&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),i=!1),i?t.forEach((function(t,n){o.push(e.createOneAutoGroupColumn(t,n))})):o.push(this.createOneAutoGroupColumn()),o},e.prototype.createOneAutoGroupColumn=function(t,e){var i,r=this.generateDefaultColDef(t);(i=t?dt.GROUP_AUTO_COLUMN_ID+"-"+t.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID,M(r,this.gridOptionsWrapper.getAutoGroupColumnDef()),(r=this.columnFactory.mergeColDefs(r)).colId=i,this.gridOptionsWrapper.isTreeData())||o(r.field)&&o(r.valueGetter)&&o(r.filterValueGetter)&&(r.filter=!1);e&&e>0&&(r.headerCheckboxSelection=!1);var s=new gt(r,null,i,!0);return this.context.createBean(s),s},e.prototype.generateDefaultColDef=function(t){var e=this.gridOptionsWrapper.getAutoGroupColumnDef(),o={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(e&&(e.cellRenderer||e.cellRendererFramework)||(o.cellRenderer="agGroupCellRenderer"),t){var n=t.getColDef();G(o,{headerName:this.columnController.getDisplayNameForColumn(t,"header"),headerValueGetter:n.headerValueGetter}),n.cellRenderer&&G(o,{cellRendererParams:{innerRenderer:n.cellRenderer,innerRendererParams:n.cellRendererParams}}),o.showRowGroup=t.getColId()}else o.showRowGroup=!0;return o},e.GROUP_AUTO_COLUMN_BUNDLE_ID=dt.GROUP_AUTO_COLUMN_ID,Nl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Nl([nt("columnController")],e.prototype,"columnController",void 0),Nl([nt("columnFactory")],e.prototype,"columnFactory",void 0),e=n=Nl([ot("autoGroupColService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Il=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Ml=(function(t){function n(){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}Ll(n,t),n.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,Ht.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},n.prototype.ensureRowHeightsValid=function(t,e,o,n){var i=this.rowModel.ensureRowHeightsValid(t,e,this.getPageFirstRow(),this.getPageLastRow());return i&&this.calculatePages(),i},n.prototype.onModelUpdated=function(t){this.calculatePages();var e={type:Ht.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},n.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var t={type:Ht.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},n.prototype.goToPage=function(t){if(this.active&&this.currentPage!==t){this.currentPage=t;var e={type:Ht.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(e)}},n.prototype.getPixelOffset=function(){return this.pixelOffset},n.prototype.getRow=function(t){return this.rowModel.getRow(t)},n.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},n.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},n.prototype.getCurrentPageHeight=function(){return o(this.topRowBounds)||o(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},n.prototype.isRowPresent=function(t){return!!this.rowModel.isRowPresent(t)&&(t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex)},n.prototype.isEmpty=function(){return this.rowModel.isEmpty()},n.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},n.prototype.getNodesInRangeForSelection=function(t,e){return this.rowModel.getNodesInRangeForSelection(t,e)},n.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},n.prototype.getType=function(){return this.rowModel.getType()},n.prototype.getRowBounds=function(t){var e=this.rowModel.getRowBounds(t);return e.rowIndex=t,e},n.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},n.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},n.prototype.getRowCount=function(){return this.rowModel.getRowCount()},n.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},n.prototype.goToPageWithIndex=function(t){if(this.active){var e=this.getPageForIndex(t);this.goToPage(e)}},n.prototype.isRowInPage=function(t){return!this.active||this.getPageForIndex(t.rowIndex)===this.currentPage},n.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},n.prototype.getCurrentPage=function(){return this.currentPage},n.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},n.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},n.prototype.goToFirstPage=function(){this.goToPage(0)},n.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),e=Math.floor(t/this.pageSize);this.goToPage(e)},n.prototype.getPageSize=function(){return this.pageSize},n.prototype.getTotalPages=function(){return this.totalPages},n.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},n.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)},n.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:Ht.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},n.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},n.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.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!ee(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);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 n=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=n-1}}},n.prototype.getMasterRowCount=function(){return this.masterRowCount},n.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.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!ee(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},n.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Il([nt("rowModel")],n.prototype,"rowModel",void 0),Il([nt("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Il([nt("columnApi")],n.prototype,"columnApi",void 0),Il([nt("gridApi")],n.prototype,"gridApi",void 0),Il([tt],n.prototype,"postConstruct",null),n=Il([ot("paginationProxy")],n)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Gl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},xl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ml(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t,this.addManagedListener(this.eventService,Ht.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},e.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},e.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},e.prototype.onBodyHeightChanged=function(){this.checkPageSize()},e.prototype.checkPageSize=function(){if(!this.notActive()){var t=this.gridOptionsWrapper.getRowHeightAsNumber(),e=this.gridPanel.getBodyHeight();if(e>0){var o=Math.floor(e/t);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},Gl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Gl([ot("paginationAutoPageSizeService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Vl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Wl=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheVersion=0,e}xl(e,t),e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(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]},Vl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Vl([tt],e.prototype,"init",null),e=Vl([ot("valueCache")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Hl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},kl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Wl(e,t),e.prototype.init=function(){this.rowModel.getType()===dt.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Ht.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},e.prototype.onCellValueChanged=function(t){t.source!==dt.SOURCE_PASTE&&this.doChangeDetection(t.node,t.column)},e.prototype.doChangeDetection=function(t,e){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!t.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),n=new kr(o,this.clientSideRowModel.getRootNode());n.addParentNode(t.parent,[e]),this.clientSideRowModel.doAggregate(n)}this.rowRenderer.refreshCells()}},Hl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Hl([nt("rowModel")],e.prototype,"rowModel",void 0),Hl([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),Hl([tt],e.prototype,"init",null),e=Hl([ot("changeDetectionService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Bl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},jl=function(t,e){return function(o,n){e(o,n,t)}},Ul=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.consuming=!1,e}kl(e,t),e.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.init=function(){this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ht.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(t){if(!this.consuming){var e=this.gridOptionsWrapper.getAlignedGrids();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.gridPanel.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 Ht.EVENT_COLUMN_MOVED:case Ht.EVENT_COLUMN_VISIBLE:case Ht.EVENT_COLUMN_PINNED:case Ht.EVENT_COLUMN_RESIZED:var o=t;e.processColumnEvent(o);break;case Ht.EVENT_COLUMN_GROUP_OPENED:var n=t;e.processGroupOpenedEvent(n);break;case Ht.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,o=t.columnGroup;if(o){var n=o.getGroupId();e=this.columnController.getOriginalColumnGroup(n)}o&&!e||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(e,o.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(t){var e,o=this,n=t.column;if(n&&(e=this.columnController.getPrimaryColumn(n.getColId())),!n||e){var i=this.getColumnIds(t),r=this.getMasterColumns(t);switch(t.type){case Ht.EVENT_COLUMN_MOVED:var s=t;this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(i,s.toIndex,"alignedGridChanged");break;case Ht.EVENT_COLUMN_VISIBLE:var a=t;this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+a.visible),this.columnController.setColumnsVisible(i,a.visible,"alignedGridChanged");break;case Ht.EVENT_COLUMN_PINNED:var l=t;this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(i,l.pinned,"alignedGridChanged");break;case Ht.EVENT_COLUMN_RESIZED:var p=t;r.forEach((function(e){o.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+e.getActualWidth());var n=[{key:e.getColId(),newWidth:e.getActualWidth()}];o.columnController.setColumnWidths(n,!1,p.finished,"alignedGridChanged")}))}var u=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(t){t.api.setAlwaysShowVerticalScroll(u)}))}},Bl([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Bl([nt("columnController")],e.prototype,"columnController",void 0),Bl([jl(0,st("loggerFactory"))],e.prototype,"setBeans",null),Bl([tt],e.prototype,"init",null),e=Bl([ot("alignedGridsService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),zl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Kl=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ul(e,t),e.prototype.adaptFunction=function(t,e,o,n){if(null==e)return{component:null,componentFromFramework:o,source:n,paramsFromSelector:null};var i=this.componentMetadataProvider.retrieve(t);return i&&i.functionAdapter?{componentFromFramework:o,component:i.functionAdapter(e),source:n,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(t){return function(){function e(){}return e.prototype.refresh=function(t){return!1},e.prototype.getGui=function(){var e=t(this.params),o=typeof e;return"string"===o||"number"===o||"boolean"===o?oo("<span>"+e+"</span>"):e},e.prototype.init=function(t){this.params=t},e}()},e.prototype.doesImplementIComponent=function(t){return!!t&&(t.prototype&&"getGui"in t.prototype)},zl([nt("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),e=zl([ot("agComponentUtils")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Yl=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ql=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Kl(e,t),e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"]},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)},pinnedRowCellRenderer:{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","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(t){return this.componentMetaData[t]},Yl([nt("agComponentUtils")],e.prototype,"agComponentUtils",void 0),Yl([tt],e.prototype,"postConstruct",null),e=Yl([ot("componentMetadataProvider")],e)}(Gt),function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}),Xl=(function(){function t(){}t.prototype.registerGridComp=function(t){this.gridPanel=t},t.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},ql([nt("resizeObserverService")],t.prototype,"resizeObserverService",void 0),ql([nt("paginationProxy")],t.prototype,"paginationProxy",void 0),ql([nt("context")],t.prototype,"context",void 0),ql([nt("columnApi")],t.prototype,"columnApi",void 0),ql([nt("gridApi")],t.prototype,"gridApi",void 0),ql([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ql([nt("expressionService")],t.prototype,"expressionService",void 0),ql([nt("rowRenderer")],t.prototype,"rowRenderer",void 0),ql([nt("$compile")],t.prototype,"$compile",void 0),ql([nt("templateService")],t.prototype,"templateService",void 0),ql([nt("valueService")],t.prototype,"valueService",void 0),ql([nt("eventService")],t.prototype,"eventService",void 0),ql([nt("columnController")],t.prototype,"columnController",void 0),ql([nt("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ql([nt("columnAnimationService")],t.prototype,"columnAnimationService",void 0),ql([it("rangeController")],t.prototype,"rangeController",void 0),ql([nt("focusController")],t.prototype,"focusController",void 0),ql([it("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),ql([nt("cellRendererFactory")],t.prototype,"cellRendererFactory",void 0),ql([nt("popupService")],t.prototype,"popupService",void 0),ql([nt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),ql([nt("stylingService")],t.prototype,"stylingService",void 0),ql([nt("columnHoverService")],t.prototype,"columnHoverService",void 0),ql([nt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ql([nt("animationFrameService")],t.prototype,"taskQueue",void 0),ql([nt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ql([nt("sortController")],t.prototype,"sortController",void 0),ql([nt("filterManager")],t.prototype,"filterManager",void 0),ql([nt("maxDivHeightScaler")],t.prototype,"maxDivHeightScaler",void 0),ql([nt("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),ql([nt("detailRowCompCache")],t.prototype,"detailRowCompCache",void 0),ql([nt("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),ql([nt("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ql([nt("selectionController")],t.prototype,"selectionController",void 0),ql([it("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),ql([nt("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),ql([nt("rowModel")],t.prototype,"rowModel",void 0),ql([tt],t.prototype,"postConstruct",null),t=ql([ot("beans")],t)}(),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Ql=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$l={"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}},Zl={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Jl={},tp=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Xl(e,t),e.prototype.getSassVariable=function(t,e){var o="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),n=$l[o][e],i=0;if(Jl[t]||(Jl[t]={}),Jl[t][e])return Jl[t][e];if(Zl[e]){var r=Zl[e],s=document.createElement("div");xe(s,t),s.style.position="absolute";var a=r.reduce((function(t,e){var o=document.createElement("div");return o.style.position="static",xe(o,e),t.appendChild(o),o}),s);if(document.body){document.body.appendChild(s);var l=-1!==e.toLowerCase().indexOf("height")?"height":"width";i=parseInt(window.getComputedStyle(a)[l],10),document.body.removeChild(s)}}return Jl[t][e]=i||n,Jl[t][e]},e.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},e.prototype.chartMenuPanelWidth=function(){var t=this.getTheme().themeFamily;return this.getSassVariable(t,"chartMenuPanelWidth")},e.prototype.getTheme=function(){for(var t,e=/\bag-(material|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv;o&&!(t=e.exec(o.className));)o=o.parentElement;if(!t)return{};var n=t[0];if(void 0===t[2]){var i=n.replace("ag-","ag-theme-");U((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+n+" with "+i+".")}),"using-old-theme")}return{theme:n,el:o,themeFamily:n.replace(/-dark$/,"")}},Ql([nt("eGridDiv")],e.prototype,"eGridDiv",void 0),e=Ql([ot("environment")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),ep=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},op=(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.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}tp(e,t),e.prototype.setScrollTop=function(t){this.scrollGoingDown=t>this.lastScrollTop,this.lastScrollTop=t},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},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 n={task:t,index:e,createOrder:++this.taskCount};this.addTaskToList(this[o],n),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,n=this.createTasksP2,i=n.list,r=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=t<=0;l||a<t;){var p=void 0;if(o.length)this.sortTaskList(e),p=o.pop().task;else if(i.length)this.sortTaskList(n),p=i.pop().task;else{if(!r.length){this.cancelledTasks.clear();break}p=r.pop()}this.cancelledTasks.has(p)||p(),a=(new Date).getTime()-s}o.length||i.length||r.length?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var t={type:Ht.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(t)},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);window.requestAnimationFrame?window.requestAnimationFrame(t):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(t):window.setTimeout(t,0)},e.prototype.isQueueEmpty=function(){return!this.ticking},ep([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ep([tt],e.prototype,"init",null),e=ep([ot("animationFrameService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),np=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ip=(function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeLastPageEventProcessed=0,e}op(o,t),o.prototype.registerGridComp=function(t){this.gridPanel=t},o.prototype.handlePageScrollingKey=function(t){var e=t.which||t.keyCode,o=t.altKey,n=t.ctrlKey,i=this.mouseEventService.getCellPositionForEvent(t);if(!i)return!1;var r=!1;switch(e){case xn.PAGE_HOME:case xn.PAGE_END:n||o||(this.onHomeOrEndKey(e),r=!0);break;case xn.LEFT:case xn.RIGHT:n&&!o&&(this.onCtrlLeftOrRight(e,i),r=!0);break;case xn.UP:case xn.DOWN:n&&!o&&(this.onCtrlUpOrDown(e,i),r=!0);break;case xn.PAGE_DOWN:n||o||(this.onPageDown(i),r=!0);break;case xn.PAGE_UP:n||o||(this.onPageUp(i),r=!0)}return r&&t.preventDefault(),r},o.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},o.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},o.prototype.onPageDown=function(t){if(!this.isTimeSinceLastPageEventToRecent()){var e=this.gridPanel.getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=o);var i=this.paginationProxy.getPixelOffset(),r=e.top+n,s=this.paginationProxy.getRowIndexAtPixel(r+i),a=this.paginationProxy.getRow(t.rowIndex).rowTop+n-i,l=this.paginationProxy.getRowIndexAtPixel(a+i),p=this.paginationProxy.getPageLastRow();l>p&&(l=p),s>p&&(s=p),this.navigateTo(s,"top",null,l,t.column),this.setTimeLastPageEventProcessed()}},o.prototype.onPageUp=function(t){if(!this.isTimeSinceLastPageEventToRecent()){var e=this.gridPanel.getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=o);var i=this.paginationProxy.getPixelOffset(),r=e.top,s=this.paginationProxy.getRowIndexAtPixel(r+i),a=this.paginationProxy.getRow(t.rowIndex),l=a.rowTop+a.rowHeight-n-i,p=this.paginationProxy.getRowIndexAtPixel(l+i),u=this.paginationProxy.getPageFirstRow();p<u&&(p=u),s<u&&(s=u),this.navigateTo(s,"bottom",null,p,t.column),this.setTimeLastPageEventProcessed()}},o.prototype.navigateTo=function(t,o,n,i,r){if(e(n)&&this.gridPanel.ensureColumnVisible(n),e(t)&&this.gridPanel.ensureIndexVisible(t,o),this.animationFrameService.flushAllFrames(),this.focusController.setFocusedCell(i,r,null,!0),this.rangeController){var s={rowIndex:i,rowPinned:null,column:r};this.rangeController.setRangeToCell(s)}},o.prototype.onCtrlUpOrDown=function(t,e){var o=t===xn.UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(o,null,e.column,o,e.column)},o.prototype.onCtrlLeftOrRight=function(t,e){var o=t===xn.LEFT,n=this.columnController.getAllDisplayedColumns(),i=o?n[0]:d(n);this.navigateTo(e.rowIndex,null,i,e.rowIndex,i)},o.prototype.onHomeOrEndKey=function(t){var e=t===xn.PAGE_HOME,o=this.columnController.getAllDisplayedColumns(),n=e?o[0]:d(o),i=e?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo(i,null,n,i,n)},np([nt("mouseEventService")],o.prototype,"mouseEventService",void 0),np([nt("paginationProxy")],o.prototype,"paginationProxy",void 0),np([nt("focusController")],o.prototype,"focusController",void 0),np([nt("animationFrameService")],o.prototype,"animationFrameService",void 0),np([it("rangeController")],o.prototype,"rangeController",void 0),np([nt("columnController")],o.prototype,"columnController",void 0),np([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),o=np([ot("navigationService")],o)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),rp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},sp=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}ip(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ht.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Fe()},e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.isScaling=function(){return this.scaling},e.prototype.getOffset=function(){return this.offset},e.prototype.updateOffset=function(){if(this.scaling){var t=this.gridPanel.getVScrollPosition().top,e=this.getUiBodyHeight();(t!==this.scrollY||e!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=e,this.calculateOffset())}},e.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var t=this.scrollY/this.maxScrollY;this.setOffset(t*this.pixelsToShave)},e.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},e.prototype.setOffset=function(t){var e="number"==typeof t?Math.floor(t):null;this.offset!==e&&(this.offset=e,this.eventService.dispatchEvent({type:Ht.EVENT_HEIGHT_SCALE_CHANGED}))},e.prototype.setModelHeight=function(t){this.modelHeight=t,this.scaling=this.maxDivHeight>0&&t>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},e.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},e.prototype.getRealPixelPosition=function(t){return t-this.offset},e.prototype.getUiBodyHeight=function(){var t=this.gridPanel.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},rp([tt],e.prototype,"postConstruct",null),e=rp([ot("maxDivHeightScaler")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),ap=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},lp=(function(t){function o(){return null!==t&&t.apply(this,arguments)||this}sp(o,t),o.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},o.prototype.updateSelectableAfterGrouping=function(t){if(this.isRowSelectableFunc){this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterGroup}))}},o.prototype.updateSelectableAfterFiltering=function(t){if(this.isRowSelectableFunc){this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterFilter}))}},o.prototype.recurseDown=function(t,o){var n=this;t.forEach((function(t){if(t.group){var i;if(t.hasChildren()&&n.recurseDown(o(t),o),n.groupSelectsChildren)i=e(a(o(t),"selectable",!0));else i=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(t);t.setRowSelectable(i)}}))},ap([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),ap([tt],o.prototype,"init",null),o=ap([ot("selectableService")],o)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),pp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},up=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}lp(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.getPreferredHeightForRow=function(t){var e=this,o=document.createElement("div");this.addInRowCssClasses(t,o);var n=this.gridPanel.getCenterContainer();n.appendChild(o);var i=ws.createChildScopeOrNull(t,this.$scope,this.beans.gridOptionsWrapper),r=i?i.scope:void 0,s=i?i.scopeDestroyFunc:void 0,a=[],l=this.columnController.getAllAutoRowHeightCols(),p=this.columnController.getAllDisplayedColumns();l.filter((function(t){return p.indexOf(t)>=0})).forEach((function(n){var i=new ms(r,e.beans,n,t,null,!0,!1);i.setParentRow(o),a.push(i)}));var u=a.map((function(t){return t.getCreateTemplate()})).join(" ");o.innerHTML=u,a.forEach((function(t){return t.afterAttached()})),r&&this.$compile(o)(r);for(var c=0,d=0;d<o.children.length;d++){var h=o.children[d];h.offsetHeight>c&&(c=h.offsetHeight)}return n.removeChild(o),a.forEach((function(t){t.detach(),t.destroy()})),s&&s(),c},e.prototype.addInRowCssClasses=function(t,e){var o=t.rowIndex,n={rowNode:t,rowIsEven:o%2==0,rowLevel:this.rowCssClassCalculator.calculateRowLevel(t),firstRowOnPage:o===this.beans.paginationProxy.getPageFirstRow(),lastRowOnPage:o===this.beans.paginationProxy.getPageLastRow(),printLayout:!1,expandable:t.isExpandable()};xe(e,this.rowCssClassCalculator.getInitialRowClasses(n).join(" "))},pp([nt("beans")],e.prototype,"beans",void 0),pp([nt("$scope")],e.prototype,"$scope",void 0),pp([nt("columnController")],e.prototype,"columnController",void 0),pp([nt("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),pp([nt("$compile")],e.prototype,"$compile",void 0),e=pp([ot("autoHeightCalculator")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),cp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},dp=(function(t){function e(){var e=t.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e}up(e,t),e.prototype.postConstruct=function(){var t=this,e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",un(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",un(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",un(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",un(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===dt.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,Ht.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,n=e.fn;t.addManagedListener(o,"click",n),t.addManagedListener(o,"keydown",(function(t){t.keyCode!==xn.ENTER&&t.keyCode!==xn.SPACE||(t.preventDefault(),n())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},e.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},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.gridOptionsWrapper.getPaginationNumberFormatterFunc();return e?e({value:t}):ie(t)},e.prototype.getTemplate=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),e=t("page","Page"),o=t("to","to"),n=t("of","of"),i=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+'" aria-live="polite" aria-describedby="'+("ag-"+l+"-start-page ag-"+l+"-start-page-number ag-"+l+"-of-page ag-"+l+"-of-page-number")+" "+("ag-"+l+"-first-row ag-"+l+"-to ag-"+l+"-last-row ag-"+l+"-of ag-"+l+"-row-count")+'">\n                <span class="ag-paging-row-summary-panel" aria-hidden="true">\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">'+n+'</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="'+i+'" tabindex="0"></div>\n                    <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+r+'" tabindex="0"></div>\n                    <span class="ag-paging-description" aria-hidden="true">\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">'+n+'</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+'" tabindex="0"></div>\n                    <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'" tabindex="0"></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,We(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled),Go(this.btFirst,this.previousAndFirstButtonsDisabled),We(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),Go(this.btPrevious,this.previousAndFirstButtonsDisabled);var n=this.isZeroPagesToDisplay(),i=e&&t===o-1;this.nextButtonDisabled=i||n,We(this.btNext,"ag-disabled",this.nextButtonDisabled),Go(this.btNext,this.nextButtonDisabled),this.lastButtonDisabled=!e||n||t===o-1,We(this.btLast,"ag-disabled",this.lastButtonDisabled),Go(this.btLast,this.lastButtonDisabled)},e.prototype.updateRowLabels=function(){var t,e,o=this.paginationProxy.getCurrentPage(),n=this.paginationProxy.getPageSize(),i=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?t=e=0:(e=(t=n*o+1)+n-1,i&&e>r&&(e=r)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.serverSideRowModel&&this.serverSideRowModel.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(t)this.lbTotal.innerHTML=this.formatNumber(e),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var n=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=n,this.lbRecordCount.innerHTML=n}},cp([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),cp([nt("paginationProxy")],e.prototype,"paginationProxy",void 0),cp([nt("rowModel")],e.prototype,"rowModel",void 0),cp([In("btFirst")],e.prototype,"btFirst",void 0),cp([In("btPrevious")],e.prototype,"btPrevious",void 0),cp([In("btNext")],e.prototype,"btNext",void 0),cp([In("btLast")],e.prototype,"btLast",void 0),cp([In("lbRecordCount")],e.prototype,"lbRecordCount",void 0),cp([In("lbFirstRowOnPage")],e.prototype,"lbFirstRowOnPage",void 0),cp([In("lbLastRowOnPage")],e.prototype,"lbLastRowOnPage",void 0),cp([In("lbCurrent")],e.prototype,"lbCurrent",void 0),cp([In("lbTotal")],e.prototype,"lbTotal",void 0),cp([tt],e.prototype,"postConstruct",null)}(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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),hp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},fp=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}dp(e,t),e.prototype.observeResize=function(t,e,o){void 0===o&&(o=50);var n,i,r,s,a,l=this.getFrameworkOverrides(),p=Q(e,o),u=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!u?((a=new window.ResizeObserver(p)).observe(t),function(){return a.disconnect()}):(n=ro(t),i=io(t),r=!0,(s=function(){if(r){var a=ro(t),p=io(t);(a!==n||p!==i)&&(n=a,i=p,e()),l.setTimeout(s,o)}})(),function(){return r=!1})},hp([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=hp([ot("resizeObserverService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),gp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(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"}(ba||(ba={}));!function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o}fp(e,t),e.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},e.prototype.setWrapperTypeClass=function(t){We(this.eOverlayWrapper,"ag-overlay-loading-wrapper",t===ba.Loading),We(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",t===ba.NoRows)},e.prototype.showLoadingOverlay=function(){var t=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(t,ba.Loading)},e.prototype.showNoRowsOverlay=function(){var t=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(t,ba.NoRows)},e.prototype.showOverlay=function(t,e){var o=this;this.inProgress||(this.setWrapperTypeClass(e),this.destroyActiveOverlay(),this.inProgress=!0,t.then((function(t){o.inProgress=!1,o.eOverlayWrapper.appendChild(t.getGui()),o.activeOverlay=t,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())})),this.setDisplayed(!0))},e.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),Je(this.eOverlayWrapper))},e.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},e.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},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>',gp([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),gp([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),gp([In("eOverlayWrapper")],e.prototype,"eOverlayWrapper",void 0),gp([tt],e.prototype,"postConstruct",null)}(Fn);
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */var yp,vp,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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Cp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},wp=(function(t){function e(o){void 0===o&&(o={});var n=t.call(this,e.getTemplate(o))||this;n.suppressEnabledCheckbox=!0,n.suppressOpenCloseIcons=!1;var i=o.title,r=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return n.title=i,n.cssIdentifier=o.cssIdentifier||"default",n.enabled=null==r||r,n.items=s||[],n.alignItems=o.alignItems||"center",null!=a&&(n.suppressEnabledCheckbox=a),null!=l&&(n.suppressOpenCloseIcons=l),n}mp(e,t),e.getTemplate=function(t){var e=t.cssIdentifier||"default";return'<div class="ag-group ag-'+e+'-group">\n            <div class="ag-group-title-bar ag-'+e+'-group-title-bar ag-unselectable" ref="eTitleBar">\n                <span class="ag-group-title-bar-icon ag-'+e+'-group-title-bar-icon" ref="eGroupOpenedIcon"></span>\n                <span class="ag-group-title-bar-icon ag-'+e+'-group-title-bar-icon" ref="eGroupClosedIcon"></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.gridOptionsWrapper.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.refreshChildDisplay()},e.prototype.setupExpandContract=function(){var t=this;this.eGroupClosedIcon.appendChild(pn("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(pn("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return t.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(e){switch(e.keyCode){case xn.ENTER:t.toggleGroupExpand();break;case xn.RIGHT:t.toggleGroupExpand(!0);break;case xn.LEFT:t.toggleGroupExpand(!1)}}))},e.prototype.refreshChildDisplay=function(){var t=!this.suppressOpenCloseIcons;ke(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),ke(this.eGroupOpenedIcon,t&&this.expanded),ke(this.eGroupClosedIcon,t&&!this.expanded)},e.prototype.isExpanded=function(){return this.expanded},e.prototype.setAlignItems=function(t){var e=this.getGui();return this.alignItems!==t&&Ve(e,"ag-group-item-alignment-"+this.alignItems),this.alignItems=t,xe(e,"ag-group-item-alignment-"+this.alignItems),this},e.prototype.toggleGroupExpand=function(t){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),ke(this.eContainer,!0),this):(t=null!=t?t:!this.expanded,this.expanded===t||(this.expanded=t,this.refreshChildDisplay(),ke(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 Fn?t.getGui():t;xe(o,"ag-group-item"),xe(o,"ag-"+this.cssIdentifier+"-group-item"),e.appendChild(o),this.items.push(o)},e.prototype.hideItem=function(t,e){We(this.items[e],"ag-hidden",t)},e.prototype.setTitle=function(t){return this.eTitle.innerText=t,this},e.prototype.addCssClassToTitleBar=function(t){xe(this.eTitleBar,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(){We(this.getGui(),"ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(xe(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(Ve(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),We(this.eContainer,"ag-disabled-group-container",!this.enabled)},e.EVENT_EXPANDED="expanded",e.EVENT_COLLAPSED="collapsed",Cp([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Cp([In("eTitleBar")],e.prototype,"eTitleBar",void 0),Cp([In("eGroupOpenedIcon")],e.prototype,"eGroupOpenedIcon",void 0),Cp([In("eGroupClosedIcon")],e.prototype,"eGroupClosedIcon",void 0),Cp([In("eToolbar")],e.prototype,"eToolbar",void 0),Cp([In("cbGroupEnabled")],e.prototype,"cbGroupEnabled",void 0),Cp([In("eTitle")],e.prototype,"eTitle",void 0),Cp([In("eContainer")],e.prototype,"eContainer",void 0),Cp([tt],e.prototype,"postConstruct",null)}(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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Ep=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Rp=function(t){function e(o){var n=t.call(this,e.getTemplate(o))||this;return n.closable=!0,n.positioned=!1,n.dragStartPosition={x:0,y:0},n.position={x:0,y:0},n.size={width:void 0,height:void 0},n.config=o,n}return wp(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,n=e.closable,i=e.hideTitleBar,r=e.title,s=e.minWidth,a=e.width,l=e.minHeight,p=e.height,u=e.centered,c=e.x,d=e.y,h=this.getGui();o&&this.setBodyComponent(o),i?xe(this.eTitleBar,"ag-hidden"):(r&&this.setTitle(r),this.setClosable(null!=n?n:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(e){if(h.contains(e.relatedTarget)||h.contains(document.activeElement)||t.eTitleBarButtons.contains(e.target))e.preventDefault();else{var o=t.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=s?s:250,this.popupParent=this.popupService.getPopupParent(),a&&this.setWidth(a),p&&this.setHeight(p),this.renderComponent&&this.renderComponent(),a&&p||this.refreshSize(),u?this.center():(c||d)&&this.offsetElement(c,d),this.positioned=!0,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.updateDragStartPosition=function(t,e){this.dragStartPosition={x:t,y:e}},e.prototype.calculateMouseMovement=function(t){var e=this.popupParent.getBoundingClientRect(),o=t.e,n=t.isLeft,i=t.isTop,r=t.anywhereWithin,s=t.topBuffer,a=o.clientX-this.dragStartPosition.x,l=o.clientY-this.dragStartPosition.y,p=this.getWidth(),u=this.getHeight(),c=e.left>=o.clientX&&this.position.x<=0||e.right<=o.clientX&&e.right<=this.position.x+e.left+p;return c||(c=n?a<0&&o.clientX>this.position.x+e.left||a>0&&o.clientX<this.position.x+e.left:r?a<0&&o.clientX>this.position.x+e.left+p||a>0&&o.clientX<this.position.x+e.left:a<0&&o.clientX>this.position.x+e.left+p||a>0&&o.clientX<this.position.x+e.left+p),{movementX:a=c?0:a,movementY:l=e.top>=o.clientY&&this.position.y<=0||e.bottom<=o.clientY&&e.bottom<=this.position.y+e.top+u||i&&(l<0&&o.clientY>this.position.y+e.top+(s||0)||l>0&&o.clientY<this.position.y+e.top)||!i&&(l<0&&o.clientY>this.position.y+e.top+u||l>0&&o.clientY<this.position.y+e.top+u)?0:l}},e.prototype.refreshSize=function(){var t=this.size,e=t.width,o=t.height;e||this.setWidth(this.getGui().offsetWidth),o||this.setHeight(this.getGui().offsetHeight)},e.prototype.offsetElement=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var o=this.getGui();this.popupService.positionPopup({ePopup:o,x:t,y:e,minWidth:this.minWidth,minHeight:this.minHeight,keepWithinBounds:!0}),this.position.x=parseInt(o.style.left,10),this.position.y=parseInt(o.style.top,10)},e.prototype.getHeight=function(){return this.size.height},e.prototype.setHeight=function(t){var e=this.getGui(),o=!1;if("string"==typeof t&&-1!==t.indexOf("%"))go(e,t),t=qe(e),o=!0;else{t=Math.max(this.minHeight,t);var n=e.offsetParent;n&&n.clientHeight&&t+this.position.y>n.clientHeight&&(t=n.clientHeight-this.position.y)}this.size.height!==t&&(this.size.height=t,o?(e.style.maxHeight="unset",e.style.minHeight="unset"):go(e,t))},e.prototype.getWidth=function(){return this.size.width},e.prototype.setWidth=function(t){var e=this.getGui(),o=!1;if("string"==typeof t&&-1!==t.indexOf("%"))fo(e,t),t=Xe(e),o=!0;else{t=Math.max(this.minWidth,t);var n=e.offsetParent;n&&n.clientWidth&&t+this.position.x>n.clientWidth&&(t=n.clientWidth-this.position.x)}this.size.width!==t&&(this.size.width=t,o?(e.style.maxWidth="unset",e.style.minWidth="unset"):fo(e,t))},e.prototype.center=function(){var t=this.getGui(),e=t.offsetParent.clientWidth/2-this.getWidth()/2,o=t.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(e,o)},e.prototype.setClosable=function(t){if(t!==this.closable&&(this.closable=t),t){var o=this.closeButtonComp=new Fn(e.CLOSE_BTN_TEMPLATE);this.getContext().createBean(o),(n=o.getGui()).appendChild(xe(un("close",this.gridOptionsWrapper),"ag-panel-title-bar-button-icon")),this.addTitleBarButton(o),o.addManagedListener(n,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var n;(n=this.closeButtonComp.getGui()).parentElement.removeChild(n),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,n=o.children,i=n.length;null==e&&(e=i),e=Math.max(0,Math.min(e,i));var r=t.getGui();xe(r,"ag-panel-title-bar-button"),0===e?o.insertAdjacentElement("afterbegin",r):e===i?o.insertAdjacentElement("beforeend",r):n[e-1].insertAdjacentElement("afterend",r),t.setParentComponent(this)},e.prototype.getBodyHeight=function(){return Ke(this.eContentWrapper)},e.prototype.getBodyWidth=function(){return Ye(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>',Ep([nt("popupService")],e.prototype,"popupService",void 0),Ep([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ep([In("eContentWrapper")],e.prototype,"eContentWrapper",void 0),Ep([In("eTitleBar")],e.prototype,"eTitleBar",void 0),Ep([In("eTitleBarButtons")],e.prototype,"eTitleBarButtons",void 0),Ep([In("eTitle")],e.prototype,"eTitle",void 0),Ep([tt],e.prototype,"postConstruct",null),e}(Fn),Op=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},bp=function(t){function e(e){var o=t.call(this,e)||this;return o.RESIZE_TEMPLATE='<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>',o.resizable={},o.movable=!1,o.isMoving=!1,o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.isResizing=!1,o.lastPosition={x:0,y:0,width:0,height:0},o}return Op(e,t),e.prototype.postConstruct=function(){var e=this,o=this.getGui(),n=this.config,i=n.movable,r=n.resizable,s=n.maximizable;xe(o,"ag-dialog"),this.moveElement=this.eTitleBar,t.prototype.postConstruct.call(this),this.addManagedListener(o,"focusin",(function(t){o.contains(t.relatedTarget)||e.popupService.bringPopupToFront(o)})),i&&this.setMovable(i),s&&this.setMaximizable(s),this.addResizers(),r&&this.setResizable(r)},e.prototype.renderComponent=function(){var t=this.getGui(),e=this.config,o=e.alwaysOnTop,n=e.modal;this.close=this.popupService.addPopup({modal:n,eChild:t,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o})},e.prototype.addResizers=function(){var t=this.getGui();if(t){var e=(new DOMParser).parseFromString(this.RESIZE_TEMPLATE,"text/html").body;t.appendChild(e.firstChild),this.createMap()}},e.prototype.createMap=function(){var t=this.getGui();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.getResizerElement=function(t){return this.resizerMap[t].element},e.prototype.onResizeStart=function(t){this.isResizing=!0,this.updateDragStartPosition(t.clientX,t.clientY)},e.prototype.onResize=function(t,e){if(this.isResizing){var o=!!e.match(/left/i),n=!!e.match(/right/i),i=!!e.match(/top/i),r=!!e.match(/bottom/i),s=o||n,a=i||r,l=this.calculateMouseMovement({e:t,isLeft:o,isTop:i}),p=l.movementX,u=l.movementY,c=0,d=0;if(s&&p){var h=o?-1:1,f=this.getWidth(),g=f+p*h,y=!1;o&&(c=f-g,(this.position.x+c<=0||g<=this.minWidth)&&(y=!0,c=0)),y||this.setWidth(g)}if(a&&u){h=i?-1:1;var v=this.getHeight(),m=v+u*h,C=!1;i&&(d=v-m,(this.position.y+d<=0||m<=this.minHeight)&&(C=!0,d=0)),C||this.setHeight(m)}this.updateDragStartPosition(t.clientX,t.clientY),(c||d)&&this.offsetElement(this.position.x+c,this.position.y+d)}},e.prototype.onResizeEnd=function(){this.isResizing=!1;var t={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.dispatchEvent(t)},e.prototype.onMoveStart=function(t){this.isMoving=!0,this.updateDragStartPosition(t.clientX,t.clientY)},e.prototype.onMove=function(t){if(this.isMoving){var e=this.position,o=e.x,n=e.y,i=this.calculateMouseMovement({e:t,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),r=i.movementX,s=i.movementY;this.offsetElement(o+r,n+s),this.updateDragStartPosition(t.clientX,t.clientY)}},e.prototype.onMoveEnd=function(){this.isMoving=!1},e.prototype.toggleMaximize=function(){if(this.isMaximized){var t=this.lastPosition,e=t.x,o=t.y,n=t.width,i=t.height;this.setWidth(n),this.setHeight(i),this.offsetElement(e,o)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=this.position.x,this.lastPosition.y=this.position.y,this.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},e.prototype.refreshMaximizeIcon=function(){ke(this.maximizeIcon,!this.isMaximized),ke(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.setResizable(!1),this.setMovable(!1),this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),t.prototype.destroy.call(this)},e.prototype.setResizable=function(t){var e=this;"boolean"==typeof t&&(t={topLeft:t,top:t,topRight:t,right:t,bottomRight:t,bottom:t,bottomLeft:t,left:t}),Object.keys(t).forEach((function(o){var n=o,i=!!t[n],r=e.getResizerElement(n),s=e.resizerMap[n].dragSource||{eElement:r,onDragStart:e.onResizeStart.bind(e),onDragging:function(t){return e.onResize(t,n)},onDragStop:e.onResizeEnd.bind(e)};!!e.resizable[n]===i&&(e.isAlive()||i)||(i?(e.dragService.addDragSource(s),r.style.pointerEvents="all"):(e.dragService.removeDragSource(s),r.style.pointerEvents="none"),e.resizerMap[n].dragSource=i?s:void 0)}))},e.prototype.setMovable=function(t){if(t!==this.movable){this.movable=t;var e=this.moveElementDragListener||{eElement:this.moveElement,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};t?(this.dragService.addDragSource(e),this.moveElementDragListener=e):(this.dragService.removeDragSource(e),this.moveElementDragListener=void 0)}},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 n=this.maximizeButtonComp=this.createBean(new Fn('<div class="ag-dialog-button"></span>')),i=n.getGui();i.appendChild(this.maximizeIcon=un("maximize",this.gridOptionsWrapper)),xe(this.maximizeIcon,"ag-panel-title-bar-button-icon"),i.appendChild(this.minimizeIcon=un("minimize",this.gridOptionsWrapper)),xe(this.minimizeIcon,"ag-panel-title-bar-button-icon"),xe(this.minimizeIcon,"ag-hidden"),n.addManagedListener(i,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(n,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){e.isMaximized=!1,e.refreshMaximizeIcon()}))}},Pp([nt("dragService")],e.prototype,"dragService",void 0),e}(Rp),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Dp=function(t){function o(e,o,n){return void 0===o&&(o="ag-text-field"),void 0===n&&(n="text"),t.call(this,e,o,n)||this}return Sp(o,t),o.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},o.prototype.setValue=function(o,n){var i=t.prototype.setValue.call(this,o,n);return this.eInput.value!==o&&(this.eInput.value=e(o)?o:""),i},o.prototype.preventDisallowedCharacters=function(){var t=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(e){e.key&&!t.test(e.key)&&e.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(e){O(e.clipboardData.getData("text"),(function(e){return!t.test(e)}))&&e.preventDefault()}))},o}(Hs),Tp=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_p=(function(t){function e(e){return t.call(this,e,"ag-text-area",null,"textarea")||this}Tp(e,t),e.prototype.setValue=function(e,o){var n=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,n},e.prototype.setCols=function(t){return this.eInput.cols=t,this},e.prototype.setRows=function(t){return this.eInput.rows=t,this}}(Hs),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Ap=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Fp=(function(t){function e(o){var n=t.call(this,o,e.TEMPLATE)||this;return n.labelAlignment="top",n}_p(e,t),e.prototype.init=function(){xe(this.eSlider.getGui(),"ag-slider-field")},e.prototype.onValueChange=function(t){var e=this,o=xs.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:xs.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>',Ap([In("eLabel")],e.prototype,"eLabel",void 0),Ap([In("eSlider")],e.prototype,"eSlider",void 0),Ap([In("eText")],e.prototype,"eText",void 0),Ap([tt],e.prototype,"init",null)}(Ms),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Np=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lp=function(t){function o(e){var n=t.call(this,o.TEMPLATE)||this;return n.H=1,n.S=1,n.B=1,n.A=1,n.isSpectrumDragging=!1,n.isSpectrumHueDragging=!1,n.isSpectrumAlphaDragging=!1,n.colorChanged=!1,n.picker=e.picker,n}return Fp(o,t),o.prototype.postConstruct=function(){var t=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},o.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},o.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},o.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},o.prototype.onSpectrumDraggerDown=function(t){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(t)},o.prototype.onSpectrumDraggerMove=function(t){this.isSpectrumDragging&&this.moveDragger(t)},o.prototype.onSpectrumHueDown=function(t){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(t)},o.prototype.onSpectrumHueMove=function(t){this.isSpectrumHueDragging&&this.moveHueSlider(t)},o.prototype.onSpectrumAlphaDown=function(t){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(t)},o.prototype.onSpectrumAlphaMove=function(t){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(t)},o.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},o.prototype.moveDragger=function(t){var e=this.spectrumValRect;if(e){var o=t.clientX-e.left,n=t.clientY-e.top;o=Math.max(o,0),o=Math.min(o,e.width),n=Math.max(n,0),n=Math.min(n,e.height),this.setSpectrumValue(o/e.width,1-n/e.height)}},o.prototype.moveHueSlider=function(t){var e=this.spectrumHueRect;if(e){var o=this.spectrumHueSlider,n=o.getBoundingClientRect(),i=t.clientX-e.left;i=Math.max(i,0),i=Math.min(i,e.width),this.H=1-i/e.width,o.style.left=i+n.width/2+"px",this.update()}},o.prototype.moveAlphaSlider=function(t){var e=this.spectrumAlphaRect;if(e){var o=this.spectrumAlphaSlider,n=o.getBoundingClientRect(),i=t.clientX-e.left;i=Math.max(i,0),i=Math.min(i,e.width),this.A=i/e.width,o.style.left=i+n.width/2+"px",this.update()}},o.prototype.update=function(){var t=ye.fromHSB(360*this.H,this.S,this.B,this.A),e=ye.fromHSB(360*this.H,1,1),o=t.toRgbaString(),n=this.picker;ye.fromString(n.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),n.setValue(o),this.spectrumColor.style.backgroundColor=e.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},o.prototype.setSpectrumValue=function(t,e){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var n=this.spectrumDragger,i=n.getBoundingClientRect();t=Math.max(0,t),t=Math.min(1,t),e=Math.max(0,e),e=Math.min(1,e),this.S=t,this.B=e,n.style.left=t*o.width-i.width/2+"px",n.style.top=(1-e)*o.height-i.height/2+"px",this.update()}},o.prototype.initRecentColors=function(){var t=o.recentColors.map((function(t,e){return'<div class="ag-recent-color" id='+e+' style="background-color: '+t+'; width: 15px; height: 15px;" recent-color="'+t+'"></div>'}));this.recentColors.innerHTML=t.join("")},o.prototype.setValue=function(t){var e=ye.fromString(t),o=e.toHSB(),n=o[0],i=o[1],r=o[2];this.H=(isNaN(n)?0:n)/360,this.A=e.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(i,r)},o.prototype.onRecentColorClick=function(t){var n=t.target;if(e(n.id)){var i=parseInt(n.id,10);this.setValue(o.recentColors[i]),this.destroy()}},o.prototype.addRecentColor=function(){var t=ye.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),e=o.recentColors;this.colorChanged&&e[0]!==t&&(e=e.filter((function(e){return e!=t})),(e=[t].concat(e)).length>o.maxRecentColors&&(e=e.slice(0,o.maxRecentColors)),o.recentColors=e)},o.prototype.destroy=function(){this.addRecentColor(),t.prototype.destroy.call(this)},o.maxRecentColors=8,o.recentColors=[],o.TEMPLATE='<div class="ag-color-panel">\n            <div ref="spectrumColor" class="ag-spectrum-color">\n                <div class="ag-spectrum-sat ag-spectrum-fill">\n                    <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n                        <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n                    </div>\n                </div>\n            </div>\n            <div class="ag-spectrum-tools">\n                <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n                    <div class="ag-spectrum-hue-background"></div>\n                    <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n                </div>\n                <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n                    <div class="ag-spectrum-alpha-background"></div>\n                    <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n                </div>\n                <div ref="recentColors" class="ag-recent-colors"></div>\n            </div>\n        </div>',Np([In("spectrumColor")],o.prototype,"spectrumColor",void 0),Np([In("spectrumVal")],o.prototype,"spectrumVal",void 0),Np([In("spectrumDragger")],o.prototype,"spectrumDragger",void 0),Np([In("spectrumHue")],o.prototype,"spectrumHue",void 0),Np([In("spectrumHueSlider")],o.prototype,"spectrumHueSlider",void 0),Np([In("spectrumAlpha")],o.prototype,"spectrumAlpha",void 0),Np([In("spectrumAlphaSlider")],o.prototype,"spectrumAlphaSlider",void 0),Np([In("recentColors")],o.prototype,"recentColors",void 0),Np([tt],o.prototype,"postConstruct",null),o}(Fn),Ip=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Mp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gp=function(t){function o(e,o,n,i){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                    '+(i?'aria-haspopup="'+i+'"':"")+'>\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=n,r.isPickerDisplayed=!1,r.isDestroyingPicker=!1,r.skipClick=!1,r}return Ip(o,t),o.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var o=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",o),Mo(this.eWrapper,o);var n=function(){e.skipClick?e.skipClick=!1:e.isDisabled()||(e.pickerComponent=e.showPicker())},i=this.getGui();this.addManagedListener(i,"mousedown",(function(t){!e.skipClick&&e.pickerComponent&&e.pickerComponent.isAlive()&&eo(e.pickerComponent.getGui())&&i.contains(t.target)&&(e.skipClick=!0)})),this.addManagedListener(i,"keydown",(function(t){switch(t.keyCode){case xn.UP:case xn.DOWN:case xn.ENTER:case xn.SPACE:n();case xn.ESCAPE:e.isPickerDisplayed&&t.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",n),this.addManagedListener(this.eLabel,"click",n),this.pickerIcon&&this.eIcon.appendChild(un(this.pickerIcon,this.gridOptionsWrapper))},o.prototype.refreshLabel=function(){e(this.getLabel())?Io(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},o.prototype.setAriaLabel=function(t){return Lo(this.eWrapper,t),this},o.prototype.setInputWidth=function(t){return ho(this.eWrapper,t),this},o.prototype.getFocusableElement=function(){return this.eWrapper},Mp([nt("gridOptionsWrapper")],o.prototype,"gridOptionsWrapper",void 0),Mp([In("eLabel")],o.prototype,"eLabel",void 0),Mp([In("eWrapper")],o.prototype,"eWrapper",void 0),Mp([In("eDisplayField")],o.prototype,"eDisplayField",void 0),Mp([In("eIcon")],o.prototype,"eIcon",void 0),o}(xs),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Vp=(function(t){function e(e){var o=t.call(this,e,"ag-color-picker","colorPicker")||this;return e&&e.color&&(o.value=e.color),o}xp(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},e.prototype.showPicker=function(){var t=this,e=this.getGui().getBoundingClientRect(),o=this.createBean(new bp({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:e.right-190,y:e.top-250}));this.isPickerDisplayed=!0,xe(o.getGui(),"ag-color-dialog");var n=this.createBean(new Lp({picker:this}));return n.addDestroyFunc((function(){o.isAlive()&&t.destroyBean(o)})),o.setParentComponent(this),o.setBodyComponent(n),n.setValue(this.getValue()),o.addDestroyFunc((function(){t.isDestroyingPicker?t.isDestroyingPicker=!1:(t.isDestroyingPicker=!0,n.isAlive()&&t.destroyBean(n)),t.isAlive()&&t.getFocusableElement().focus(),t.isPickerDisplayed=!1})),o},e.prototype.setValue=function(t){return this.value===t||(this.value=t,this.eDisplayField.style.backgroundColor=t,this.dispatchEvent({type:xs.EVENT_CHANGED})),this},e.prototype.getValue=function(){return this.value}}(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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Wp=(function(t){function e(e){return t.call(this,e,"ag-number-field","number")||this}Vp(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)}))},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,Ro(this.eInput,"min",t)),this},e.prototype.setMax=function(t){return this.max===t||(this.max=t,Ro(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,Ro(this.eInput,"step",t)),this},e.prototype.setValue=function(e,o){return(e=this.adjustPrecision(e))!=this.normalizeValue(e)?this:t.prototype.setValue.call(this,e,o)}}(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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Hp=(function(t){function e(e){return t.call(this,e,"ag-range-field","range")||this}Wp(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var e=this.config,o=e.min,n=e.max,i=e.step;null!=o&&this.setMinValue(o),null!=n&&this.setMaxValue(n),this.setStep(i||1)},e.prototype.addInputListeners=function(){var t=this,e=Pe()?"change":"input";this.addManagedListener(this.eInput,e,(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 n=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,n}}(Hs),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),kp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Bp=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 Hp(e,t),e.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},e.prototype.handleKeyDown=function(t){var e=t.keyCode;switch(e){case xn.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case xn.DOWN:case xn.UP:var n=e===xn.DOWN,i=void 0;if(t.preventDefault(),this.highlightedEl){var r=this.itemEls.indexOf(this.highlightedEl)+(n?1:-1);r=Math.min(Math.max(r,0),this.itemEls.length-1),i=this.itemEls[r]}else i=this.itemEls[n?0:this.itemEls.length-1];this.highlightItem(i)}},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=Kt(t.text||e);return this.options.push({value:e,text:o}),this.renderOption(e,o),this},e.prototype.renderOption=function(t,e){var o=this,n=document.createElement("div");n.setAttribute("role","option"),xe(n,"ag-list-item"),xe(n,"ag-"+this.cssIdentifier+"-list-item"),n.innerHTML=e,n.tabIndex=-1,this.itemEls.push(n),this.addManagedListener(n,"mouseover",(function(){return o.highlightItem(n)})),this.addManagedListener(n,"mouseleave",(function(){return o.clearHighlighted()})),this.addManagedListener(n,"click",(function(){return o.setValue(t)})),this.getGui().appendChild(n)},e.prototype.setValue=function(t,e){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var o=E(this.options,(function(e){return e.value===t}));if(-1!==o){var n=this.options[o];this.value=n.value,this.displayValue=null!=n.text?n.text:n.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=E(this.options,(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,xe(this.highlightedEl,e.ACTIVE_CLASS),Xo(this.highlightedEl,!0),this.highlightedEl.focus())},e.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(Ve(this.highlightedEl,e.ACTIVE_CLASS),Xo(this.highlightedEl,!1),this.highlightedEl=null)},e.prototype.fireChangeEvent=function(){this.dispatchEvent({type:xs.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",kp([tt],e.prototype,"init",null),e}(Fn),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Up=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},zp=(function(t){function e(e){return t.call(this,e,"ag-select","smallDown","listbox")||this}jp(e,t),e.prototype.init=function(){var t=this;this.listComponent=this.createBean(new Bp("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Bp.EVENT_ITEM_SELECTED,(function(){t.hideList&&t.hideList()})),this.listComponent.addManagedListener(this.listComponent,xs.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.addManagedListener(document.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()}));return this.hideList=this.popupService.addPopup({modal:!0,eChild:e,closeOnEsc:!0,closedCallback:function(){t.hideList=null,t.isPickerDisplayed=!1,n(),o(),t.isAlive()&&t.getFocusableElement().focus()}}),this.isPickerDisplayed=!0,ho(e,Xe(this.eWrapper)),e.style.maxHeight=Ke(this.popupService.getPopupParent())+"px",e.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:e,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,n){return this.value===e?this:(n||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)},Up([nt("popupService")],e.prototype,"popupService",void 0),Up([tt],e.prototype,"init",null)}(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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Kp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Yp=(function(t){function o(e){var n=t.call(this,e,o.TEMPLATE)||this;return n.radius=0,n.offsetX=0,n.offsetY=0,n}zp(o,t),o.prototype.postConstruct=function(){var o=this;t.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(t){o.parentCircleRect=o.eParentCircle.getBoundingClientRect()},onDragging:function(t){return o.calculateAngleDrag(t)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(t){null!=t&&""!==t||(t="0"),t=o.eAngleValue.normalizeValue(t);var e=parseFloat(t);e>180&&(e-=360),o.setValue(e)})),this.updateNumberInput(),e(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,xs.EVENT_CHANGED,(function(){o.eAngleValue.getInputElement().contains(document.activeElement)||o.updateNumberInput()}))},o.prototype.updateNumberInput=function(){var t=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(t.toString())},o.prototype.positionChildCircle=function(t){var e=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,n=e.width/2,i=e.height/2;o.style.left=n+8*Math.cos(t)+"px",o.style.top=i+8*Math.sin(t)+"px"},o.prototype.calculatePolar=function(){var t=this.offsetX,e=this.offsetY,o=Math.atan2(e,t);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(t*t+e*e),this.positionChildCircle(o)},o.prototype.calculateCartesian=function(){var t=this.toRadians(this.getValue()),e=this.getRadius();this.setOffsetX(Math.cos(t)*e).setOffsetY(Math.sin(t)*e)},o.prototype.setOffsetX=function(t){return this.offsetX!==t&&(this.offsetX=t,this.calculatePolar()),this},o.prototype.setOffsetY=function(t){return this.offsetY!==t&&(this.offsetY=t,this.calculatePolar()),this},o.prototype.calculateAngleDrag=function(t){var e=this.parentCircleRect,o=e.width/2,n=e.height/2,i=t.clientX-e.left-o,r=t.clientY-e.top-n,s=Math.atan2(r,i);this.setValue(s,!0)},o.prototype.toDegrees=function(t){return t/Math.PI*180},o.prototype.toRadians=function(t){return t/180*Math.PI},o.prototype.normalizeNegativeValue=function(t){return t<0?360+t:t},o.prototype.normalizeAngle180=function(t){return(t%=2*Math.PI)<-Math.PI?t+=2*Math.PI:t>=Math.PI&&(t-=2*Math.PI),t},o.prototype.getRadius=function(){return this.radius},o.prototype.setRadius=function(t){return this.radius===t||(this.radius=t,this.calculateCartesian()),this},o.prototype.onValueChange=function(t){var e=this;return this.addManagedListener(this,xs.EVENT_CHANGED,(function(){t(e.degrees)})),this},o.prototype.getValue=function(t){return t?this.toRadians(this.degrees):this.degrees},o.prototype.setValue=function(t,e){var o;return o=e?t:this.normalizeAngle180(this.toRadians(t)),t=this.toDegrees(o),this.degrees!==t&&(this.degrees=Math.floor(t),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:xs.EVENT_CHANGED})),this},o.prototype.setWidth=function(t){return fo(this.getGui(),t),this},o.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),t.prototype.destroy.call(this)},o.TEMPLATE='<div class="ag-angle-select">\n            <div ref="eLabel"></div>\n            <div class="ag-wrapper ag-angle-select-wrapper">\n                <div ref="eAngleSelectField" class="ag-angle-select-field">\n                    <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n                        <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n                    </div>\n                </div>\n                <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n            </div>\n        </div>',Kp([In("eLabel")],o.prototype,"eLabel",void 0),Kp([In("eParentCircle")],o.prototype,"eParentCircle",void 0),Kp([In("eChildCircle")],o.prototype,"eChildCircle",void 0),Kp([In("eAngleValue")],o.prototype,"eAngleValue",void 0),Kp([nt("dragService")],o.prototype,"dragService",void 0)}(Ms),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),qp=(function(t){function e(e){return t.call(this,e,"ag-toggle-button")||this}Yp(e,t),e.prototype.setValue=function(e,o){return t.prototype.setValue.call(this,e,o),We(this.getGui(),"ag-selected",this.getValue()),this}}(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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Xp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Qp=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheItems=[],e}qp(e,t),e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},e.prototype.addOrDestroy=function(t,e,o){if(!this.active||!t.detail)this.destroyFullWidthRow(o);else{var n=this.getCacheItem(t,!0);switch(e){case dt.PINNED_LEFT:this.destroyFullWidthRow(n.left),n.left=o;break;case dt.PINNED_RIGHT:this.destroyFullWidthRow(n.right),n.right=o;break;default:this.destroyFullWidthRow(n.center),n.center=o}this.cacheItems.sort((function(t,e){return e.lastAccessedTime-t.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}},e.prototype.getCacheItem=function(t,e){var o;void 0===e&&(e=!1);for(var n=0;n<this.cacheItems.length;n++){var i=this.cacheItems[n];if(i.rowNode===t){o=i;break}}return!o&&e&&(o={rowNode:t},this.cacheItems.push(o)),o&&this.stampCacheItem(o),o},e.prototype.stampCacheItem=function(t){t.lastAccessedTime=(new Date).getTime()},e.prototype.destroyFullWidthRow=function(t){this.getContext().destroyBean(t)},e.prototype.purgeCache=function(t){for(var e=t;e<this.cacheItems.length;e++){var o=this.cacheItems[e];this.destroyFullWidthRow(o.center),this.destroyFullWidthRow(o.left),this.destroyFullWidthRow(o.right)}this.cacheItems.length>t&&(this.cacheItems.length=t)},e.prototype.get=function(t,e){if(t.detail){var o,n=this.getCacheItem(t);if(n)switch(e){case dt.PINNED_LEFT:n.left&&(o=n.left,n.left=void 0);break;case dt.PINNED_RIGHT:n.right&&(o=n.right,n.right=void 0);break;default:n.center&&(o=n.center,n.center=void 0)}return o}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.purgeCache(0)},Xp([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Xp([tt],e.prototype,"postConstruct",null),Xp([et],e.prototype,"destroy",null),e=Xp([ot("detailRowCompCache")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),$p=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Zp=(function(t){function o(){return null!==t&&t.apply(this,arguments)||this}Qp(o,t),o.prototype.getFirstRow=function(){var t,e=0;return this.pinnedRowModel.getPinnedTopRowCount()?t=dt.PINNED_TOP:this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t=dt.PINNED_BOTTOM),void 0===t?null:{rowIndex:e,rowPinned:t}},o.prototype.getLastRow=function(){var t,e,o=this.pinnedRowModel.getPinnedBottomRowCount(),n=this.pinnedRowModel.getPinnedTopRowCount();return o?(e=dt.PINNED_BOTTOM,t=o-1):this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageLastRow()):n&&(e=dt.PINNED_TOP,t=n-1),void 0===t?null:{rowIndex:t,rowPinned:e}},o.prototype.getRowNode=function(t){switch(t.rowPinned){case dt.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case dt.PINNED_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 dt.PINNED_TOP:if(o.rowPinned!==dt.PINNED_TOP)return!0;break;case dt.PINNED_BOTTOM:if(o.rowPinned!==dt.PINNED_BOTTOM)return!1;break;default:if(e(o.rowPinned))return o.rowPinned!==dt.PINNED_TOP}return t.rowIndex<o.rowIndex},$p([nt("rowModel")],o.prototype,"rowModel",void 0),$p([nt("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),$p([nt("paginationProxy")],o.prototype,"paginationProxy",void 0),o=$p([ot("rowPositionUtils")],o)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Jp=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},tu=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Zp(e,t),e.prototype.createId=function(t){var e=t.rowIndex,o=t.rowPinned,n=t.column;return this.createIdFromValues(e,n,o)},e.prototype.createIdFromValues=function(t,e,o){return t+"."+(null==o?"null":o)+"."+e.getId()},e.prototype.equals=function(t,e){var o=t.column===e.column,n=t.rowPinned===e.rowPinned,i=t.rowIndex===e.rowIndex;return o&&n&&i},e=Jp([ot("cellPositionUtils")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),eu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ou=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}tu(e,t),e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(t){return n(t===dt.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},e.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},e.prototype.getRowAtPixel=function(t,e){var o=e===dt.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(n(o))return 0;for(var i=0;i<o.length;i++){var r=o[i];if(r.rowTop+r.rowHeight-1>=t)return i}return o.length-1},e.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0);var e={type:Ht.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1);var e={type:Ht.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.createNodesFromData=function(t,e){var o=this,n=[];if(t){var i=0;t.forEach((function(t,r){var s=new hi;o.context.createBean(s),s.data=t;var a=e?hi.ID_PREFIX_TOP_PINNED:hi.ID_PREFIX_BOTTOM_PINNED;s.id=a+r,s.rowPinned=e?dt.PINNED_TOP:dt.PINNED_BOTTOM,s.setRowTop(i),s.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(r),i+=s.rowHeight,n.push(s)}))}return n},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(t){return this.pinnedTopRows[t]},e.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},e.prototype.forEachPinnedTopRow=function(t){n(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},e.prototype.forEachPinnedBottomRow=function(t){n(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=d(t);return e.rowTop+e.rowHeight},eu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),eu([nt("columnApi")],e.prototype,"columnApi",void 0),eu([nt("gridApi")],e.prototype,"gridApi",void 0),eu([tt],e.prototype,"init",null),e=eu([ot("pinnedRowModel")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),nu=function(t){this.cellValueChanges=t},iu=function(t){function e(e,o,n){var i=t.call(this,e)||this;return i.initialRange=o,i.finalRange=n,i}return ou(e,t),e}(nu),ru=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}(),su=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),au=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},lu=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellValueChanges=[],e.isCellEditing=!1,e.isRowEditing=!1,e.isPasting=!1,e.isFilling=!1,e.onCellValueChanged=function(t){if(e.isCellEditing||e.isRowEditing||e.isPasting||e.isFilling){var o=t.rowPinned,n=t.rowIndex,i=t.column,r=t.oldValue,s=t.value,a={rowPinned:o,rowIndex:n,columnId:i.getColId(),oldValue:r,newValue:s};e.cellValueChanges.push(a)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}su(e,t),e.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var t=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();t<=0||(this.undoStack=new ru(t),this.redoStack=new ru(t),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,Ht.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Ht.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Ht.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Ht.EVENT_ROW_DRAG_END,this.clearStacks))}},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(){if(this.undoStack){var t=this.undoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.oldValue})),t instanceof iu?this.processRangeAndCellFocus(t.cellValueChanges,t.initialRange):this.processRangeAndCellFocus(t.cellValueChanges),this.redoStack.push(t))}},e.prototype.redo=function(){if(this.redoStack){var t=this.redoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.newValue})),t instanceof iu?this.processRangeAndCellFocus(t.cellValueChanges,t.finalRange):this.processRangeAndCellFocus(t.cellValueChanges),this.undoStack.push(t))}},e.prototype.processAction=function(t,e){var o=this;t.cellValueChanges.forEach((function(t){var n=t.rowIndex,i=t.rowPinned,r=t.columnId,s={rowIndex:n,rowPinned:i},a=o.getRowNode(s);null!=a.rowTop&&a.setDataValue(r,e(t))}))},e.prototype.processRangeAndCellFocus=function(t,e){if(e){var o=e.startRow,n=e.endRow,i={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:e.startColumn.getColId()};this.setLastFocusedCell(i);var r={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:n.rowIndex,rowEndPinned:n.rowPinned,columnStart:e.startColumn,columns:e.columns};this.gridApi.addCellRange(r)}else{var s=t[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a),p={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId};this.setLastFocusedCell(p)}},e.prototype.setLastFocusedCell=function(t){var e=t.rowIndex,o=t.columnId,n=t.rowPinned;this.gridApi.ensureIndexVisible(e),this.gridApi.ensureColumnVisible(o),ht.isRegistered(lt.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusController.setFocusedCell(e,o,n,!0)},e.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,Ht.EVENT_ROW_EDITING_STARTED,(function(){t.isRowEditing=!0})),this.addManagedListener(this.eventService,Ht.EVENT_ROW_EDITING_STOPPED,(function(){var e=new nu(t.cellValueChanges);t.pushActionsToUndoStack(e),t.isRowEditing=!1}))},e.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,Ht.EVENT_CELL_EDITING_STARTED,(function(){t.isCellEditing=!0})),this.addManagedListener(this.eventService,Ht.EVENT_CELL_EDITING_STOPPED,(function(){if(t.isCellEditing=!1,!t.isRowEditing&&!t.isPasting&&!t.isFilling){var e=new nu(t.cellValueChanges);t.pushActionsToUndoStack(e)}}))},e.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,Ht.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,Ht.EVENT_PASTE_END,(function(){var e=new nu(t.cellValueChanges);t.pushActionsToUndoStack(e),t.isPasting=!1}))},e.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,Ht.EVENT_FILL_START,(function(){t.isFilling=!0})),this.addManagedListener(this.eventService,Ht.EVENT_FILL_END,(function(e){var o=new iu(t.cellValueChanges,e.initialRange,e.finalRange);t.pushActionsToUndoStack(o),t.isFilling=!1}))},e.prototype.pushActionsToUndoStack=function(t){this.undoStack.push(t),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(t){switch(t.rowPinned){case dt.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case dt.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},au([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),au([nt("focusController")],e.prototype,"focusController",void 0),au([nt("gridApi")],e.prototype,"gridApi",void 0),au([nt("rowModel")],e.prototype,"rowModel",void 0),au([nt("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),au([tt],e.prototype,"init",null),e=au([ot("undoRedoService")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),pu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},uu=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.componentsMappedByName={},e}lu(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=pu([ot("agStackComponentsRegistry")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),cu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},du=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}uu(e,t),e.prototype.findHeader=function(t,e){var o,n,i;if(t.column instanceof vt?(n="getDisplayedGroup"+e,o=this.columnController[n](t.column)):(i="getDisplayedCol"+e,o=this.columnController[i](t.column)),o)return{column:o,headerRowIndex:t.headerRowIndex}},e.prototype.findColAtEdgeForHeaderRow=function(t,e){var o=this.columnController.getAllDisplayedColumns(),n=o["start"===e?0:o.length-1];if(n){var i=this.headerNavigationService.getHeaderContainer(n.getPinned()).getRowComps()[t];return(i&&i.getType())==fs.COLUMN_GROUP?{headerRowIndex:t,column:this.columnController.getColumnGroupAtLevel(n,t)}:{headerRowIndex:i?t:-1,column:n}}},cu([nt("columnController")],e.prototype,"columnController",void 0),cu([nt("headerNavigationService")],e.prototype,"headerNavigationService",void 0),e=cu([ot("headerPositionUtils")],e)}(Gt),function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}),hu=(function(){function t(){}t.prototype.buildColumnDefs=function(t,e,o){var n=this,i=[],r={};return t.forEach((function(t){for(var s=!0,a=n.createDefFromColumn(t,e,o),l=t;l.getParent();){var p=l.getParent(),u=void 0;if(p.isPadding())l=p;else{var c=r[p.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=n.createDefFromGroup(p)).children=[a],r[u.groupId]=u,a=u,l=p}}s&&i.push(a)})),i},t.prototype.createDefFromGroup=function(t){var e=A(t.getColGroupDef(),["children"]);return e.groupId=t.getGroupId(),e},t.prototype.createDefFromColumn=function(t,e,o){var n=A(t.getColDef());return n.colId=t.getColId(),n.width=t.getActualWidth(),n.rowGroup=t.isRowGroupActive(),n.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,n.pivot=t.isPivotActive(),n.pivotIndex=t.isPivotActive()?o.indexOf(t):null,n.aggFunc=t.isValueActive()?t.getAggFunc():null,n.hide=!t.isVisible()||void 0,n.pinned=t.isPinned()?t.getPinned():null,n.sort=t.getSort()?t.getSort():null,n.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,n},t=du([ot("columnDefFactory")],t)}(),function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}),fu=(function(){function t(){}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"),w(o,this.processClassesFromGridOptions(t.rowNode)),w(o,this.preProcessRowClassRules(t.rowNode,t.scope)),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"),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)}))},n=this.gridOptionsWrapper.getRowClass();if(n){if("function"==typeof n)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");o(n)}var i=this.gridOptionsWrapper.getRowClassFunc();i&&o(i({node:t,data:t.data,rowIndex:t.rowIndex,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi()}));return e},t.prototype.preProcessRowClassRules=function(t,e){var o=[];return this.processRowClassRules(t,e,(function(t){o.push(t)}),(function(t){})),o},t.prototype.processRowClassRules=function(t,e,o,n){this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),$scope:e,context:this.gridOptionsWrapper.getContext()},o,n)},t.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},hu([nt("stylingService")],t.prototype,"stylingService",void 0),hu([nt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=hu([ot("rowCssClassCalculator")],t)}(),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),gu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},yu=(function(t){function e(o){var n=t.call(this,e.getTemplate(o.cssClass))||this;return n.items=[],n.params=o,o.items&&o.items.forEach((function(t){return n.addItem(t)})),n}fu(e,t),e.getTemplate=function(t){return'<div class="ag-tabs '+t+'">\n            <div ref="eHeader" role="menu" 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){switch(t.keyCode){case xn.RIGHT:case xn.LEFT:if(!this.eHeader.contains(document.activeElement))return;var e=this.items.indexOf(this.activeItem),o=t.keyCode===xn.RIGHT?Math.min(e+1,this.items.length-1):Math.max(e-1,0);if(e===o)return;t.preventDefault();var n=this.items[o];this.showItemWrapper(n),n.eHeaderButton.focus();break;case xn.UP:case xn.DOWN:t.stopPropagation()}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var e=this.focusController,o=this.eHeader,n=this.eBody,i=this.activeItem,r=document.activeElement;if(t.preventDefault(),o.contains(r))e.focusInto(n,t.shiftKey);else if(e.isFocusUnderManagedComponent(n))i.eHeaderButton.focus();else{var s=e.findNextFocusableElement(n,!1,t.shiftKey);s?s.focus():i.eHeaderButton.focus()}}},e.prototype.setAfterAttachedParams=function(t){this.afterAttachedParams=t},e.prototype.getMinDimensions=function(){var t=this.getGui().cloneNode(!0),e=t.querySelector('[ref="eBody"]');t.style.position="fixed",this.getGui().appendChild(t);var o=0,n=0;return this.items.forEach((function(i){Je(e);var r=i.tabbedItem.bodyPromise.resolveNow(null,(function(t){return t.cloneNode(!0)}));null!=r&&(e.appendChild(r),o<t.offsetWidth&&(o=t.offsetWidth),n<t.offsetHeight&&(n=t.offsetHeight))})),this.getGui().removeChild(t),{height:n,width:o}},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(t){var e=document.createElement("span");e.setAttribute("tabIndex","-1"),e.setAttribute("role","menuitem"),e.appendChild(t.title),xe(e,"ag-tab"),this.eHeader.appendChild(e),Lo(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=a(this.items,(function(e){return e.tabbedItem===t}));e&&this.showItemWrapper(e)},e.prototype.showItemWrapper=function(t){var e=this;this.params.onItemClicked&&this.params.onItemClicked({item:t.tabbedItem}),this.activeItem!==t?(Je(this.eBody),t.tabbedItem.bodyPromise.then((function(t){e.eBody.appendChild(t);var o=!e.focusController.isKeyboardFocus();e.focusController.focusInto(e.eBody,!1,o)})),this.activeItem&&Ve(this.activeItem.eHeaderButton,"ag-tab-selected"),xe(t.eHeaderButton,"ag-tab-selected"),this.activeItem=t,t.tabbedItem.afterAttachedCallback&&t.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):$(this.params.onActiveItemClicked)},gu([In("eHeader")],e.prototype,"eHeader",void 0),gu([In("eBody")],e.prototype,"eBody",void 0)}(Kn),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),vu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},mu=function(t){function e(o,n){var i=t.call(this)||this;return i.version=0,i.state=e.STATE_DIRTY,i.rowNodeCacheParams=n,i.blockNumber=o,i.startRow=o*n.blockSize,i.endRow=i.startRow+n.blockSize,i}return yu(e,t),e.prototype.isAnyNodeOpen=function(t){var e=!1;return this.forEachNodeCallback((function(t){t.expanded&&(e=!0)}),t),e},e.prototype.forEachNodeCallback=function(t,e){for(var o=this.startRow;o<this.endRow;o++){if(o<e)t(this.getRowUsingLocalIndex(o),o)}},e.prototype.forEachNode=function(t,e,o,n){this.forEachNodeCallback((function(o){t(o,e.next()),n&&o.childrenCache&&o.childrenCache.forEachNodeDeep(t,e)}),o)},e.prototype.forEachNodeDeep=function(t,e,o){this.forEachNode(t,e,o,!0)},e.prototype.forEachNodeShallow=function(t,e,o){this.forEachNode(t,e,o,!1)},e.prototype.getVersion=function(){return this.version},e.prototype.getLastAccessed=function(){return this.lastAccessed},e.prototype.getRowUsingLocalIndex=function(t,e){void 0===e&&(e=!1),e||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next());var o=t-this.startRow;return this.rowNodes[o]},e.prototype.init=function(){this.createRowNodes()},e.prototype.getStartRow=function(){return this.startRow},e.prototype.getEndRow=function(){return this.endRow},e.prototype.getBlockNumber=function(){return this.blockNumber},e.prototype.setDirty=function(){this.version++,this.state=e.STATE_DIRTY},e.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(t){return t.setData(null)}))},e.prototype.getState=function(){return this.state},e.prototype.setRowNode=function(t,e){var o=t-this.startRow;this.rowNodes[o]=e},e.prototype.setBlankRowNode=function(t){var e=this.createBlankRowNode(t),o=t-this.startRow;return this.rowNodes[o]=e,e},e.prototype.setNewData=function(t,e){var o=this.setBlankRowNode(t);return this.setDataAndId(o,e,this.startRow+t),o},e.prototype.createBlankRowNode=function(t){var e=this.getContext().createBean(new hi);return e.setRowHeight(this.rowNodeCacheParams.rowHeight),e},e.prototype.createRowNodes=function(){this.rowNodes=[];for(var t=0;t<this.rowNodeCacheParams.blockSize;t++){var e=this.startRow+t,o=this.createBlankRowNode(e);this.rowNodes.push(o)}},e.prototype.load=function(){this.state=e.STATE_LOADING,this.loadFromDatasource()},e.prototype.pageLoadFailed=function(){this.state=e.STATE_FAILED;var t={type:e.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(t)},e.prototype.populateWithRowData=function(t){var e=this,o=[];this.rowNodes.forEach((function(n,i){var r=t[i];n.stub&&o.push(n),e.setDataAndId(n,r,e.startRow+i)})),o.length>0&&this.rowRenderer.redrawRows(o)},e.prototype.destroyRowNodes=function(){var t=this;this.rowNodes.forEach((function(e){e.childrenCache&&(t.destroyBean(e.childrenCache),e.childrenCache=null),e.clearRowTop()}))},e.prototype.pageLoaded=function(t,o,n){t===this.version&&(this.state=e.STATE_LOADED,this.populateWithRowData(o)),n=ne(n);var i={type:e.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:n};this.dispatchEvent(i)},e.EVENT_LOAD_COMPLETE="loadComplete",e.STATE_DIRTY="dirty",e.STATE_LOADING="loading",e.STATE_LOADED="loaded",e.STATE_FAILED="failed",vu([nt("rowRenderer")],e.prototype,"rowRenderer",void 0),vu([tt],e.prototype,"init",null),vu([et],e.prototype,"destroyRowNodes",null),e}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),wu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Eu=function(t,e){return function(o,n){e(o,n,t)}},Ru=(function(t){function o(e,o){var n=t.call(this)||this;return n.activeBlockLoadsCount=0,n.blocks=[],n.active=!0,n.maxConcurrentRequests=e,o&&o>0&&(n.checkBlockToLoadDebounce=Q(n.performCheckBlocksToLoad.bind(n),o)),n}Cu(o,t),o.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},o.prototype.addBlock=function(t){this.blocks.push(t)},o.prototype.removeBlock=function(t){g(this.blocks,t)},o.prototype.destroy=function(){t.prototype.destroy.call(this),this.active=!1},o.prototype.loadComplete=function(){this.activeBlockLoadsCount--},o.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},o.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=null;this.blocks.forEach((function(e){e.getState()===mu.STATE_DIRTY&&(t=e)})),t?(t.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+t.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},o.prototype.getBlockState=function(){var t={};return this.blocks.forEach((function(o){var n=o.getNodeIdPrefix(),i={blockNumber:o.getBlockNumber(),startRow:o.getStartRow(),endRow:o.getEndRow(),pageStatus:o.getState()};e(n)?t[n+o.getBlockNumber()]=i:t[o.getBlockNumber()]=i})),t},o.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},o.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},wu([Eu(0,st("loggerFactory"))],o.prototype,"setBeans",null)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),Ou=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Pu=(function(t){function n(e){var o=t.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=e.initialRowCount,o.cacheParams=e,o}Ru(n,t),n.prototype.destroyAllBlocks=function(){var t=this;this.forEachBlockInOrder((function(e){return t.destroyBlock(e)}))},n.prototype.init=function(){var t=this;this.active=!0,this.addDestroyFunc((function(){return t.active=!1}))},n.prototype.isActive=function(){return this.active},n.prototype.getVirtualRowCount=function(){return this.virtualRowCount},n.prototype.hack_setVirtualRowCount=function(t){this.virtualRowCount=t},n.prototype.isMaxRowFound=function(){return this.maxRowFound},n.prototype.onPageLoaded=function(t){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+t.page.getBlockNumber()+", lastRow = "+t.lastRow),t.success&&(this.checkVirtualRowCount(t.page,t.lastRow),this.onCacheUpdated()))},n.prototype.purgeBlocksIfNeeded=function(t){var e=this,o=[];this.forEachBlockInOrder((function(e){e!==t&&o.push(e)})),o.sort((function(t,e){return e.getLastAccessed()-t.getLastAccessed()}));var i=this.cacheParams.maxBlocksInCache>0,r=i?this.cacheParams.maxBlocksInCache-1:null,s=n.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(t,o){if(t.getState()===mu.STATE_DIRTY&&o>=s||!!i&&o>=r){if(t.isAnyNodeOpen(e.virtualRowCount))return;if(e.isBlockCurrentlyDisplayed(t))return;e.removeBlockFromCache(t)}}))},n.prototype.isBlockCurrentlyDisplayed=function(t){var e=this.rowRenderer.getFirstVirtualRenderedRow(),o=this.rowRenderer.getLastVirtualRenderedRow(),n=t.getDisplayIndexStart(),i=t.getDisplayIndexEnd()-1;return null!=n&&null!=i&&(!(n>o)&&!(i<e))},n.prototype.postCreateBlock=function(t){t.addEventListener(mu.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(t.getBlockNumber(),t),this.purgeBlocksIfNeeded(t),this.checkBlockToLoad()},n.prototype.removeBlockFromCache=function(t){t&&this.destroyBlock(t)},n.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},n.prototype.checkVirtualRowCount=function(t,e){if("number"==typeof e&&e>=0)this.virtualRowCount=e,this.maxRowFound=!0;else if(!this.maxRowFound){var o=(t.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<o&&(this.virtualRowCount=o)}},n.prototype.setVirtualRowCount=function(t,o){this.virtualRowCount=t,e(o)&&(this.maxRowFound=o),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},n.prototype.forEachNodeDeep=function(t,e){var o=this;void 0===e&&(e=new Sn),this.forEachBlockInOrder((function(n){return n.forEachNodeDeep(t,e,o.virtualRowCount)}))},n.prototype.forEachBlockInOrder=function(t){var e=this.getBlockIdsSorted();this.forEachBlockId(e,t)},n.prototype.forEachBlockInReverseOrder=function(t){var e=this.getBlockIdsSorted().reverse();this.forEachBlockId(e,t)},n.prototype.forEachBlockId=function(t,e){var o=this;t.forEach((function(t){var n=o.blocks[t];e(n,t)}))},n.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(t){return parseInt(t,10)})).sort((function(t,e){return t-e}))},n.prototype.getBlock=function(t){return this.blocks[t]},n.prototype.setBlock=function(t,e){this.blocks[t]=e,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(e)},n.prototype.destroyBlock=function(t){delete this.blocks[t.getBlockNumber()],this.destroyBean(t),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(t)},n.prototype.onCacheUpdated=function(){if(this.isActive()){this.destroyAllBlocksPastVirtualRowCount();var t={type:n.EVENT_CACHE_UPDATED};this.dispatchEvent(t)}},n.prototype.destroyAllBlocksPastVirtualRowCount=function(){var t=this,e=[];this.forEachBlockInOrder((function(o,n){n*t.cacheParams.blockSize>=t.virtualRowCount&&e.push(o)})),e.length>0&&e.forEach((function(e){return t.destroyBlock(e)}))},n.prototype.purgeCache=function(){var t=this;this.forEachBlockInOrder((function(e){return t.removeBlockFromCache(e)})),this.maxRowFound=!1,0===this.virtualRowCount&&(this.virtualRowCount=this.cacheParams.initialRowCount),this.onCacheUpdated()},n.prototype.getRowNodesInRange=function(t,e){var n=this,i=[],r=-1,s=!1,a=new Sn;o(t)&&(s=!0);var l=!1;return this.forEachBlockInOrder((function(o,p){l||(s&&r+1!==p?l=!0:(r=p,o.forEachNodeShallow((function(o){var n=o===t||o===e;(s||n)&&i.push(o),n&&(s=!s)}),a,n.virtualRowCount)))})),l||s?[]:i},n.EVENT_CACHE_UPDATED="cacheUpdated",n.MAX_EMPTY_BLOCKS_TO_KEEP=2,Ou([nt("rowRenderer")],n.prototype,"rowRenderer",void 0),Ou([et],n.prototype,"destroyAllBlocks",null),Ou([tt],n.prototype,"init",null)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}()),bu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Su=function(t){function e(o,n){void 0===o&&(o="default"),void 0===n&&(n="listbox");var i=t.call(this,e.getTemplate(o),!0)||this;return i.cssIdentifier=o,i.ariaRole=n,i.renderedRows=new Map,i.rowHeight=20,i.isDestroyed=!1,i}return Pu(e,t),e.prototype.postConstruct=function(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),t.prototype.postConstruct.call(this)},e.prototype.addResizeObserver=function(){var t=this.drawVirtualRows.bind(this),e=this.resizeObserverService.observeResize(this.getGui(),t);this.addDestroyFunc(e)},e.prototype.focusInnerElement=function(t){this.focusRow(t?this.model.getRowCount()-1:0)},e.prototype.onFocusIn=function(e){t.prototype.onFocusIn.call(this,e);var o=e.target;He(o,"ag-virtual-list-item")&&(this.lastFocusedRowIndex=No(o)-1)},e.prototype.onFocusOut=function(e){t.prototype.onFocusOut.call(this,e),this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)},e.prototype.handleKeyDown=function(t){switch(t.keyCode){case xn.UP:case xn.DOWN:this.navigate(t.keyCode===xn.UP)&&t.preventDefault()}},e.prototype.onTabKeyDown=function(t){this.navigate(t.shiftKey)?t.preventDefault():this.focusController.focusInto(this.getGui(),!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(){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.getTemplate=function(t){return'\n            <div class="ag-virtual-list-viewport ag-'+t+'-virtual-list-viewport" role="listbox">\n                <div class="ag-virtual-list-container ag-'+t+'-virtual-list-container" ref="eContainer"></div>\n            </div>'},e.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},e.prototype.ensureIndexVisible=function(t){var e=this.model.getRowCount();if("number"!=typeof t||t<0||t>=e)console.warn("invalid row index for ensureIndexVisible: "+t);else{var o=t*this.rowHeight,n=o+this.rowHeight,i=this.getGui(),r=i.scrollTop,s=i.offsetHeight,a=r+s<n;if(r>o)i.scrollTop=o;else if(a){var l=n-s;i.scrollTop=l}}},e.prototype.setComponentCreator=function(t){this.componentCreator=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(){var t=this;if(null!=this.model&&!this.isDestroyed){var e=this.model.getRowCount();this.eContainer.style.height=e*this.rowHeight+"px",setTimeout((function(){t.isDestroyed||(t.clearVirtualRows(),t.drawVirtualRows())}),0)}},e.prototype.clearVirtualRows=function(){var t=this;this.renderedRows.forEach((function(e,o){return t.removeRow(o)}))},e.prototype.drawVirtualRows=function(){var t=this.getGui(),e=t.scrollTop,o=e+t.offsetHeight,n=Math.floor(e/this.rowHeight),i=Math.floor(o/this.rowHeight);this.ensureRowsRendered(n,i)},e.prototype.ensureRowsRendered=function(t,e){var o=this;this.renderedRows.forEach((function(n,i){(i<t||i>e)&&i!==o.lastFocusedRowIndex&&o.removeRow(i)}));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),n=document.createElement("div");if(xe(n,"ag-virtual-list-item"),xe(n,"ag-"+this.cssIdentifier+"-virtual-list-item"),n.setAttribute("role","tree"===this.ariaRole?"treeitem":"option"),Wo(n,this.model.getRowCount()),Ho(n,t+1),n.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var i=this.model.isRowSelected(t);Xo(n,!!i),Qo(n,i)}n.style.height=this.rowHeight+"px",n.style.top=this.rowHeight*t+"px";var r=this.componentCreator(o,n);r.addGuiEventListener("focusin",(function(){return e.lastFocusedRowIndex=t})),n.appendChild(r.getGui()),this.renderedRows.has(t-1)?this.renderedRows.get(t-1).eDiv.insertAdjacentElement("afterend",n):this.renderedRows.has(t+1)?this.renderedRows.get(t+1).eDiv.insertAdjacentElement("beforebegin",n):this.eContainer.appendChild(n),this.renderedRows.set(t,{rowComponent:r,eDiv:n})},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.addScrollListener=function(){var t=this;this.addGuiEventListener("scroll",(function(){return t.drawVirtualRows()}))},e.prototype.setModel=function(t){this.model=t},e.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,t.prototype.destroy.call(this))},bu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),bu([nt("resizeObserverService")],e.prototype,"resizeObserverService",void 0),bu([In("eContainer")],e.prototype,"eContainer",void 0),e}(Kn);!function(t){t.GroupedColumn="groupedColumn",t.StackedColumn="stackedColumn",t.NormalizedColumn="normalizedColumn",t.GroupedBar="groupedBar",t.StackedBar="stackedBar",t.NormalizedBar="normalizedBar",t.Line="line",t.Scatter="scatter",t.Bubble="bubble",t.Pie="pie",t.Doughnut="doughnut",t.Area="area",t.StackedArea="stackedArea",t.NormalizedArea="normalizedArea",t.Histogram="histogram"}(yp||(yp={})),function(t){t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left"}(vp||(vp={}));
/**
 * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
 * @version v24.1.0
 * @link http://www.ag-grid.com/
 * @license MIT
 */
var Du="undefined"==typeof global?{}:global;Du.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Du.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Du.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Du.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Du.Node="undefined"==typeof Node?{}:Node,Du.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var Tu=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_u=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Au=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.watermarkMessage=void 0,e}var o;return Tu(e,t),o=e,e.prototype.validateLicense=function(){if(bn.missingOrEmpty(o.licenseKey))this.outputMissingLicenseKey();else if(o.licenseKey.length>32){var t=o.extractLicenseComponents(o.licenseKey),e=t.md5,n=t.license,i=t.version,r=t.isTrial;e===this.md5.md5(n)?bn.exists(i)&&i?this.validateLicenseKeyForVersion(i,!!r,n):this.validateLegacyKey(n):this.outputInvalidLicenseKey()}else this.outputInvalidLicenseKey()},e.extractExpiry=function(t){var e=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(o.decode(e),10))},e.extractLicenseComponents=function(t){var e=t.replace(/[\u200B-\u200D\uFEFF]/g,""),n=(e=e.replace(/\r?\n|\r/g,"")).length-32,i=e.substring(n),r=e.substring(0,n),s=o.extractBracketedInformation(e);return{md5:i,license:r,version:s[0],isTrial:s[1]}},e.prototype.getLicenseDetails=function(t){var e=o.extractLicenseComponents(t),n=e.md5,i=e.license,r=e.version,s=e.isTrial,a=n===this.md5.md5(i),l=null;return a&&(l=o.extractExpiry(i),a=!isNaN(l.getTime())),{licenseKey:t,valid:a,expiry:a?o.formatDate(l):null,version:r||"legacy",isTrial:s}},e.prototype.isDisplayWatermark=function(){return!bn.missingOrEmpty(this.watermarkMessage)},e.prototype.getWatermarkMessage=function(){return this.watermarkMessage},e.formatDate=function(t){var e=t.getDate(),o=t.getMonth(),n=t.getFullYear();return e+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][o]+" "+n},e.getGridReleaseDate=function(){return new Date(parseInt(o.decode(o.RELEASE_INFORMATION),10))},e.decode=function(t){for(var e,n,i,r,s,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p="",u=0,c=t.replace(/[^A-Za-z0-9+/=]/g,"");u<c.length;)e=l.indexOf(c.charAt(u++))<<2|(r=l.indexOf(c.charAt(u++)))>>4,n=(15&r)<<4|(s=l.indexOf(c.charAt(u++)))>>2,i=(3&s)<<6|(a=l.indexOf(c.charAt(u++))),p+=String.fromCharCode(e),64!=s&&(p+=String.fromCharCode(n)),64!=a&&(p+=String.fromCharCode(i));return p=o.utf8_decode(p)},e.utf8_decode=function(t){t=t.replace(/rn/g,"n");for(var e="",o=0;o<t.length;o++){var n=t.charCodeAt(o);n<128?e+=String.fromCharCode(n):n>127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e},e.setLicenseKey=function(t){o.licenseKey=t},e.extractBracketedInformation=function(t){var e=t.split("[").filter((function(t){return t.indexOf("]")>-1})).map((function(t){return t.split("]")[0]}));if(!e||0===e.length)return[null,null];var o=1===e.filter((function(t){return"TRIAL"===t})).length;return[e.filter((function(t){return 0===t.indexOf("v")})).map((function(t){return t.replace(/^v/,"")}))[0],o]},e.prototype.validateLicenseKeyForVersion=function(t,e,o){switch(t){case"2":e?this.validateForTrial(o):this.validateLegacyKey(o)}},e.prototype.validateLegacyKey=function(t){var e=o.getGridReleaseDate(),n=o.extractExpiry(t),i=!1,r=!1;if(isNaN(n.getTime())||(i=!0,r=e<n),i){if(!r){var s=o.formatDate(n),a=o.formatDate(e);this.outputIncompatibleVersion(s,a)}}else this.outputInvalidLicenseKey()},e.prototype.validateForTrial=function(t){var e=o.extractExpiry(t),n=new Date,i=!1,r=!1;if(isNaN(e.getTime())||(i=!0,r=e>n),i){if(!r){var s=o.formatDate(e);this.outputExpiredTrialKey(s)}}else this.outputInvalidLicenseKey()},e.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for ag-Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},e.prototype.outputExpiredTrialKey=function(t){console.error("****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License *******************************************"),console.error("*****************************************   Trial Period Expired.    *******************************************"),console.error("* Your license for ag-Grid Enterprise expired on "+t+".                                                *"),console.error("* Please email info@ag-grid.com to purchase a license.                                                         *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},e.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All ag-Grid Enterprise features are unlocked.                                                                *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production.     *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license.                        *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},e.prototype.outputIncompatibleVersion=function(t,e){console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),console.error("*                                             ag-Grid Enterprise License                                                   *"),console.error("*                           License not compatible with installed version of ag-Grid Enterprise.                           *"),console.error("*                                                                                                                          *"),console.error("* Your ag-Grid License entitles you to all versions of ag-Grid that we release within the time covered by your license     *"),console.error("* - typically we provide one year licenses which entitles you to all releases / updates of ag-Grid within that year.       *"),console.error("* Your license has an end (expiry) date which stops the license key working with versions of ag-Grid released after the    *"),console.error("* license end date. The license key that you have expires on "+t+", however the version of ag-Grid you    *"),console.error("* are trying to use was released on "+e+".                                                               *"),console.error("*                                                                                                                          *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this   *"),console.error("* version of ag-Grid.                                                                                                      *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="License Expired"},e.RELEASE_INFORMATION="MTYwMjA3NjI1MjU3OA==",_u([nt("md5")],e.prototype,"md5",void 0),_u([J],e.prototype,"validateLicense",null),e=o=_u([ot("licenseManager")],e)}(Gt),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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Nu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Lu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ieCompatibility=!1,e}return Fu(e,t),e.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},e.prototype.md5cycle=function(t,e){var o=t[0],n=t[1],i=t[2],r=t[3];o=this.ff(o,n,i,r,e[0],7,-680876936),r=this.ff(r,o,n,i,e[1],12,-389564586),i=this.ff(i,r,o,n,e[2],17,606105819),n=this.ff(n,i,r,o,e[3],22,-1044525330),o=this.ff(o,n,i,r,e[4],7,-176418897),r=this.ff(r,o,n,i,e[5],12,1200080426),i=this.ff(i,r,o,n,e[6],17,-1473231341),n=this.ff(n,i,r,o,e[7],22,-45705983),o=this.ff(o,n,i,r,e[8],7,1770035416),r=this.ff(r,o,n,i,e[9],12,-1958414417),i=this.ff(i,r,o,n,e[10],17,-42063),n=this.ff(n,i,r,o,e[11],22,-1990404162),o=this.ff(o,n,i,r,e[12],7,1804603682),r=this.ff(r,o,n,i,e[13],12,-40341101),i=this.ff(i,r,o,n,e[14],17,-1502002290),n=this.ff(n,i,r,o,e[15],22,1236535329),o=this.gg(o,n,i,r,e[1],5,-165796510),r=this.gg(r,o,n,i,e[6],9,-1069501632),i=this.gg(i,r,o,n,e[11],14,643717713),n=this.gg(n,i,r,o,e[0],20,-373897302),o=this.gg(o,n,i,r,e[5],5,-701558691),r=this.gg(r,o,n,i,e[10],9,38016083),i=this.gg(i,r,o,n,e[15],14,-660478335),n=this.gg(n,i,r,o,e[4],20,-405537848),o=this.gg(o,n,i,r,e[9],5,568446438),r=this.gg(r,o,n,i,e[14],9,-1019803690),i=this.gg(i,r,o,n,e[3],14,-187363961),n=this.gg(n,i,r,o,e[8],20,1163531501),o=this.gg(o,n,i,r,e[13],5,-1444681467),r=this.gg(r,o,n,i,e[2],9,-51403784),i=this.gg(i,r,o,n,e[7],14,1735328473),n=this.gg(n,i,r,o,e[12],20,-1926607734),o=this.hh(o,n,i,r,e[5],4,-378558),r=this.hh(r,o,n,i,e[8],11,-2022574463),i=this.hh(i,r,o,n,e[11],16,1839030562),n=this.hh(n,i,r,o,e[14],23,-35309556),o=this.hh(o,n,i,r,e[1],4,-1530992060),r=this.hh(r,o,n,i,e[4],11,1272893353),i=this.hh(i,r,o,n,e[7],16,-155497632),n=this.hh(n,i,r,o,e[10],23,-1094730640),o=this.hh(o,n,i,r,e[13],4,681279174),r=this.hh(r,o,n,i,e[0],11,-358537222),i=this.hh(i,r,o,n,e[3],16,-722521979),n=this.hh(n,i,r,o,e[6],23,76029189),o=this.hh(o,n,i,r,e[9],4,-640364487),r=this.hh(r,o,n,i,e[12],11,-421815835),i=this.hh(i,r,o,n,e[15],16,530742520),n=this.hh(n,i,r,o,e[2],23,-995338651),o=this.ii(o,n,i,r,e[0],6,-198630844),r=this.ii(r,o,n,i,e[7],10,1126891415),i=this.ii(i,r,o,n,e[14],15,-1416354905),n=this.ii(n,i,r,o,e[5],21,-57434055),o=this.ii(o,n,i,r,e[12],6,1700485571),r=this.ii(r,o,n,i,e[3],10,-1894986606),i=this.ii(i,r,o,n,e[10],15,-1051523),n=this.ii(n,i,r,o,e[1],21,-2054922799),o=this.ii(o,n,i,r,e[8],6,1873313359),r=this.ii(r,o,n,i,e[15],10,-30611744),i=this.ii(i,r,o,n,e[6],15,-1560198380),n=this.ii(n,i,r,o,e[13],21,1309151649),o=this.ii(o,n,i,r,e[4],6,-145523070),r=this.ii(r,o,n,i,e[11],10,-1120210379),i=this.ii(i,r,o,n,e[2],15,718787259),n=this.ii(n,i,r,o,e[9],21,-343485551),t[0]=this.add32(o,t[0]),t[1]=this.add32(n,t[1]),t[2]=this.add32(i,t[2]),t[3]=this.add32(r,t[3])},e.prototype.cmn=function(t,e,o,n,i,r){return e=this.add32(this.add32(e,t),this.add32(n,r)),this.add32(e<<i|e>>>32-i,o)},e.prototype.ff=function(t,e,o,n,i,r,s){return this.cmn(e&o|~e&n,t,e,i,r,s)},e.prototype.gg=function(t,e,o,n,i,r,s){return this.cmn(e&n|o&~n,t,e,i,r,s)},e.prototype.hh=function(t,e,o,n,i,r,s){return this.cmn(e^o^n,t,e,i,r,s)},e.prototype.ii=function(t,e,o,n,i,r,s){return this.cmn(o^(e|~n),t,e,i,r,s)},e.prototype.md51=function(t){var e,o=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)this.md5cycle(n,this.md5blk(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(this.md5cycle(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*o,this.md5cycle(n,i),n},e.prototype.md5blk=function(t){for(var e=[],o=0;o<64;o+=4)e[o>>2]=t.charCodeAt(o)+(t.charCodeAt(o+1)<<8)+(t.charCodeAt(o+2)<<16)+(t.charCodeAt(o+3)<<24);return e},e.prototype.rhex=function(t){for(var e="0123456789abcdef".split(""),o="",n=0;n<4;n++)o+=e[t>>8*n+4&15]+e[t>>8*n&15];return o},e.prototype.hex=function(t){for(var e=0;e<t.length;e++)t[e]=this.rhex(t[e]);return t.join("")},e.prototype.md5=function(t){return this.hex(this.md51(t))},e.prototype.add32=function(t,e){return this.ieCompatibility?this.add32Compat(t,e):this.add32Std(t,e)},e.prototype.add32Std=function(t,e){return t+e&4294967295},e.prototype.add32Compat=function(t,e){var o=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(o>>16)<<16|65535&o},Nu([tt],e.prototype,"init",null),e=Nu([ot("md5")],e)}(Gt),Iu=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Mu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Gu=function(t){function e(){return t.call(this,'<div class="ag-watermark">\n                    <div ref="eLicenseTextRef" class="ag-watermark-text"></div>\n               </div>')||this}return Iu(e,t),e.prototype.postConstruct=function(){var t=this,e=this.shouldDisplayWatermark();bn.addOrRemoveCssClass(this.getGui(),"ag-hidden",!e),e&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout((function(){return t.addCssClass("ag-opacity-zero")}),0),window.setTimeout((function(){return t.addCssClass("ag-hidden")}),5e3))},e.prototype.shouldDisplayWatermark=function(){var t=this.licenseManager.isDisplayWatermark(),e=null!=location.hostname.match("^127.0.0.1|localhost|www.ag-grid.com$");return-1!==location.search.indexOf("forceWatermark")||t&&!e},Mu([nt("licenseManager")],e.prototype,"licenseManager",void 0),Mu([In("eLicenseTextRef")],e.prototype,"eLicenseTextRef",void 0),Mu([tt],e.prototype,"postConstruct",null),e}(Fn),xu={moduleName:lt.EnterpriseCoreModule,beans:[Au,Lu],agStackComponents:[{componentName:"AgWatermark",componentClass:Gu}]},Vu=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Hu=function(t){function e(e){var o=t.call(this,'<div class="ag-rich-select-row"></div>')||this;return o.params=e,o}return Vu(e,t),e.prototype.setState=function(t,e,o){this.populateWithRenderer(t,e)||this.populateWithoutRenderer(t,e),bn.addOrRemoveCssClass(this.getGui(),"ag-rich-select-row-selected",o)},e.prototype.populateWithoutRenderer=function(t,e){var o=null!=e?e:t;bn.exists(o)&&""!==o?this.getGui().textContent=o.toString():this.getGui().innerHTML="&nbsp;"},e.prototype.populateWithRenderer=function(t,e){var o=this,n={value:t,valueFormatted:e,api:this.gridOptionsWrapper.getApi()},i=this.userComponentFactory.newCellRenderer(this.params,n);return null!=i?bn.bindCellRendererToHtmlElement(i,this.getGui()):this.getGui().innerText=null!=n.valueFormatted?n.valueFormatted:n.value,!!i&&(i.then((function(t){o.addDestroyFunc((function(){o.getContext().destroyBean(t)}))})),!0)},Wu([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Wu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(Fn),ku=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)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Bu=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},ju=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.selectionConfirmed=!1,o.searchString="",o}return ku(e,t),e.prototype.init=function(t){this.params=t,this.selectedValue=t.value,this.originalSelectedValue=t.value,this.focusAfterAttached=t.cellStartedEdit;var e=bn.createIconNoSpan("smallDown",this.gridOptionsWrapper);if(bn.addCssClass(e,"ag-rich-select-value-icon"),this.eValue.appendChild(e),this.virtualList=this.getContext().createBean(new Su("rich-select")),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),bn.exists(this.params.cellHeight)&&this.virtualList.setRowHeight(this.params.cellHeight),this.renderSelectedValue(),bn.missing(t.values))console.warn("ag-Grid: richSelectCellEditor requires values for it to work");else{var o=t.values;this.virtualList.setModel({getRowCount:function(){return o.length},getRow:function(t){return o[t]}}),this.addGuiEventListener("keydown",this.onKeyDown.bind(this));var n=this.virtualList.getGui();this.addManagedListener(n,"click",this.onClick.bind(this)),this.addManagedListener(n,"mousemove",this.onMouseMove.bind(this));var i=bn.exists(t.searchDebounceDelay)?t.searchDebounceDelay:300;this.clearSearchString=bn.debounce(this.clearSearchString,i),bn.exists(t.charPress)&&this.searchText(t.charPress)}},e.prototype.onKeyDown=function(t){var e=t.key;switch(e){case Sa.ENTER:this.onEnterKeyDown();break;case Sa.DOWN:case Sa.UP:this.onNavigationKeyPressed(t,e);break;default:this.searchText(t)}},e.prototype.onEnterKeyDown=function(){this.selectionConfirmed=!0,this.params.stopEditing()},e.prototype.onNavigationKeyPressed=function(t,e){t.preventDefault();var o=this.params.values.indexOf(this.selectedValue),n=e===Sa.UP?o-1:o+1;if(n>=0&&n<this.params.values.length){var i=this.params.values[n];this.setSelectedValue(i)}},e.prototype.searchText=function(t){if("string"==typeof t)this.searchString+=t,this.runSearch(),this.clearSearchString();else{var e=t.key;if(e===Sa.BACKSPACE)this.searchString=this.searchString.slice(0,-1),e="";else if(!bn.isEventFromPrintableCharacter(t))return;this.searchText(e)}},e.prototype.runSearch=function(){var t,e=this.params.values;if("number"!=typeof e[0]&&"string"!=typeof e[0]||(t=e.map(String)),"object"==typeof e[0]&&this.params.colDef.keyCreator&&(t=e.map(this.params.colDef.keyCreator)),t){var o=bn.fuzzySuggestions(this.searchString,t,!0,!0)[0];if(o){var n=e[t.indexOf(o)];this.setSelectedValue(n)}}},e.prototype.clearSearchString=function(){this.searchString=""},e.prototype.renderSelectedValue=function(){var t=this,e=this.params.formatValue(this.selectedValue),o=this.eValue,n={value:this.selectedValue,valueFormatted:e,api:this.gridOptionsWrapper.getApi()},i=this.userComponentFactory.newCellRenderer(this.params,n);bn.exists(i)?(bn.bindCellRendererToHtmlElement(i,o),i.then((function(e){t.addDestroyFunc((function(){return t.getContext().destroyBean(e)}))}))):bn.exists(this.selectedValue)?o.innerHTML=e:bn.clearElement(o)},e.prototype.setSelectedValue=function(t){if(this.selectedValue!==t){var e=this.params.values.indexOf(t);-1!==e&&(this.selectedValue=t,this.virtualList.ensureIndexVisible(e),this.virtualList.refresh())}},e.prototype.createRowComponent=function(t){var e=this.params.formatValue(t),o=new Hu(this.params);return this.getContext().createBean(o),o.setState(t,e,t===this.selectedValue),o},e.prototype.onMouseMove=function(t){var e=this.virtualList.getGui().getBoundingClientRect(),o=this.virtualList.getScrollTop(),n=t.clientY-e.top+o,i=Math.floor(n/this.virtualList.getRowHeight()),r=this.params.values[i];void 0!==r&&this.setSelectedValue(r)},e.prototype.onClick=function(){this.selectionConfirmed=!0,this.params.stopEditing()},e.prototype.afterGuiAttached=function(){var t=this.params.values.indexOf(this.selectedValue);this.virtualList.refresh(),t>=0&&this.virtualList.ensureIndexVisible(t),this.virtualList.refresh(),this.focusAfterAttached&&this.getGui().focus()},e.prototype.getValue=function(){return this.selectionConfirmed?this.selectedValue:this.originalSelectedValue},e.TEMPLATE='<div class="ag-rich-select" tabindex="-1">\n            <div ref="eValue" class="ag-rich-select-value"></div>\n            <div ref="eList" class="ag-rich-select-list"></div>\n        </div>',Bu([nt("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Bu([nt("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Bu([In("eValue")],e.prototype,"eValue",void 0),Bu([In("eList")],e.prototype,"eList",void 0),e}(Ln),Uu={moduleName:lt.RichSelectModule,beans:[],userComponents:[{componentName:"agRichSelect",componentClass:ju},{componentName:"agRichSelectCellEditor",componentClass:ju}],dependantModules:[xu]};exports.RichSelectModule=Uu;