From 4c22369dba6cf966ec24f58596eb5bad15ea7ab3 Mon Sep 17 00:00:00 2001 From: nyxeka Date: Tue, 2 Apr 2024 18:07:02 -0400 Subject: [PATCH] Add pin task button, reference issue #235 - add new icon for pinned tasks - add api do_pin_and_request, pin, unpin - add pin and run button to history tab - add pin button to pending tab - allow modifying of pending tasks when they are pinned --- agent_scheduler/api.py | 36 ++++ agent_scheduler/db/__init__.py | 4 + agent_scheduler/db/task.py | 10 + agent_scheduler/models.py | 1 + agent_scheduler/task_runner.py | 31 +++- javascript/agent-scheduler.iife.js | 227 ++++++++++++----------- style.css | 2 +- ui/src/assets/icons/pin.svg | 4 + ui/src/assets/icons/pinned-filled.svg | 4 + ui/src/extension/index.scss | 8 + ui/src/extension/index.ts | 52 +++++- ui/src/extension/stores/history.store.ts | 6 + ui/src/extension/stores/pending.store.ts | 6 + ui/src/extension/types.ts | 1 + 14 files changed, 277 insertions(+), 115 deletions(-) create mode 100644 ui/src/assets/icons/pin.svg create mode 100644 ui/src/assets/icons/pinned-filled.svg diff --git a/agent_scheduler/api.py b/agent_scheduler/api.py index 8c8692a..a801550 100644 --- a/agent_scheduler/api.py +++ b/agent_scheduler/api.py @@ -336,6 +336,24 @@ def run_task(id: str): return {"success": True, "message": "Task is executing"} + @app.post("/agent-scheduler/v1/task/{id}/pin", dependencies=deps) + def pin_task(id: str): + task = task_manager.get_task(id) + if task is None: + return {"success": False, "message": "Task not found"} + task.pinned = True + task_manager.update_task(task) + return {"success": True, "message": "Task pinned successfully"} + + @app.post("/agent-scheduler/v1/task/{id}/unpin", dependencies=deps) + def unpin_task(id: str): + task = task_manager.get_task(id) + if task is None: + return {"success": False, "message": "Task not found"} + task.pinned = False + task_manager.update_task(task) + return {"success": True, "message": "Task unpinned successfully"} + @app.post("/agent-scheduler/v1/requeue/{id}", dependencies=deps, deprecated=True) @app.post("/agent-scheduler/v1/task/{id}/requeue", dependencies=deps) def requeue_task(id: str): @@ -347,11 +365,29 @@ def requeue_task(id: str): task.result = None task.status = TaskStatus.PENDING task.bookmarked = False + task.pinned = False task.name = f"Copy of {task.name}" if task.name else None task_manager.add_task(task) task_runner.execute_pending_tasks_threading() return {"success": True, "message": "Task requeued"} + # /agent-scheduler/v1/task/${id}/requeue-and-pin + @app.post("/agent-scheduler/v1/task/{id}/do-pin-and-requeue", dependencies=deps) + def requeue_and_pin_task(id: str): + task = task_manager.get_task(id) + if task is None: + return {"success": False, "message": "Task not found"} + + task.id = str(uuid4()) + task.result = None + task.status = TaskStatus.PENDING + task.bookmarked = False + task.pinned = True + task.name = f"Copy of {task.name}" if task.name else None + task_manager.add_task(task) + task_runner.execute_pending_tasks_threading() + + return {"success": True, "message": "Task requeued and pinned"} @app.post("/agent-scheduler/v1/task/requeue-failed", dependencies=deps) def requeue_failed_tasks(): diff --git a/agent_scheduler/db/__init__.py b/agent_scheduler/db/__init__.py index c42194d..edc9347 100644 --- a/agent_scheduler/db/__init__.py +++ b/agent_scheduler/db/__init__.py @@ -45,6 +45,10 @@ def init(): if not any(col["name"] == "bookmarked" for col in task_columns): conn.execute(text("ALTER TABLE task ADD COLUMN bookmarked BOOLEAN DEFAULT FALSE")) + # add pinned column + if not any(col["name"] == "pinned" for col in task_columns): + conn.execute(text("ALTER TABLE task ADD COLUMN pinned BOOLEAN DEFAULT FALSE")) + params_column = next(col for col in task_columns if col["name"] == "params") if version > "1" and not isinstance(params_column["type"], Text): transaction = conn.begin() diff --git a/agent_scheduler/db/task.py b/agent_scheduler/db/task.py index 19b687a..7f3dc10 100644 --- a/agent_scheduler/db/task.py +++ b/agent_scheduler/db/task.py @@ -72,6 +72,7 @@ def from_table(table: "TaskTable"): status=table.status, result=table.result, bookmarked=table.bookmarked, + pinned=table.pinned, created_at=table.created_at, updated_at=table.updated_at, ) @@ -89,6 +90,7 @@ def to_table(self): status=self.status, result=self.result, bookmarked=self.bookmarked, + pinned=self.pinned, ) def from_json(json_obj: Dict): @@ -104,6 +106,7 @@ def from_json(json_obj: Dict): priority=json_obj.get("priority", int(datetime.now(timezone.utc).timestamp() * 1000)), result=json_obj.get("result", None), bookmarked=json_obj.get("bookmarked", False), + pinned=json_obj.get("pinned", False), created_at=datetime.fromtimestamp(json_obj.get("created_at", datetime.now(timezone.utc).timestamp())), updated_at=datetime.fromtimestamp(json_obj.get("updated_at", datetime.now(timezone.utc).timestamp())), ) @@ -121,6 +124,7 @@ def to_json(self): "priority": self.priority, "result": self.result, "bookmarked": self.bookmarked, + "pinned": self.pinned, "created_at": int(self.created_at.timestamp()), "updated_at": int(self.updated_at.timestamp()), } @@ -140,6 +144,7 @@ class TaskTable(Base): status = Column(String(20), nullable=False, default="pending") # pending, running, done, failed result = Column(Text) # task result bookmarked = Column(Boolean, nullable=True, default=False) + pinned = Column(Boolean, nullable=True, default=False) created_at = Column( DateTime, nullable=False, @@ -197,6 +202,7 @@ def get_tasks( limit: int = None, offset: int = None, order: str = "asc", + pinned: bool = None, ) -> List[TaskTable]: session = Session(self.engine) try: @@ -213,6 +219,10 @@ def get_tasks( if api_task_id: query = query.filter(TaskTable.api_task_id == api_task_id) + + if pinned is not None: + query = query.filter(TaskTable.pinned == pinned) + if bookmarked == True: query = query.filter(TaskTable.bookmarked == bookmarked) else: diff --git a/agent_scheduler/models.py b/agent_scheduler/models.py index 30e2fc0..f5e6c50 100644 --- a/agent_scheduler/models.py +++ b/agent_scheduler/models.py @@ -38,6 +38,7 @@ class TaskModel(BaseModel): position: Optional[int] = Field(title="Task Position") result: Optional[str] = Field(title="Task Result", description="The result of the task in JSON format") bookmarked: Optional[bool] = Field(title="Is task bookmarked") + pinned: Optional[bool] = Field(title="Is task pinned") created_at: Optional[datetime] = Field( title="Task Created At", description="The time when the task was created", diff --git a/agent_scheduler/task_runner.py b/agent_scheduler/task_runner.py index 9b58136..61c1601 100644 --- a/agent_scheduler/task_runner.py +++ b/agent_scheduler/task_runner.py @@ -87,6 +87,7 @@ def __init__(self, UiControlNetUnit=None): # Mark this to True when reload UI self.dispose = False self.interrupted = None + self.current_task_pin_status_changed = None if TaskRunner.instance is not None: raise Exception("TaskRunner instance already exists") @@ -342,6 +343,7 @@ def execute_task(self, task: Task, get_next_task: Callable[[], Task]): } self.interrupted = None + self.current_task_pin_status_changed = None self.__saved_images_path = [] self.__run_callbacks("task_started", task_id, **task_meta) @@ -377,6 +379,7 @@ def execute_task(self, task: Task, get_next_task: Callable[[], Task]): if is_interrupted: log.info(f"\n[AgentScheduler] Task {task.id} interrupted") task.status = TaskStatus.INTERRUPTED + task.pinned = False task_manager.update_task(task) self.__run_callbacks( "task_finished", @@ -390,10 +393,23 @@ def execute_task(self, task: Task, get_next_task: Callable[[], Task]): "images": self.__saved_images_path.copy(), "geninfo": geninfo, } - - task.status = TaskStatus.DONE + + try: + # necessary to update in case it changed while pending + task.pinned = task_manager.get_task(task.id).pinned + except Exception as e: + task.pinned = False + log.error(f"[AgentScheduler] Error updating task {task.id} pinned status: {e}") + task.result = json.dumps(result) + + if task.pinned: + task.priority = int(datetime.now(timezone.utc).timestamp() * 1000) + cbstatus = TaskStatus.DONE if not task.pinned else TaskStatus.PENDING + task.status = cbstatus + task_manager.update_task(task) + self.__run_callbacks( "task_finished", task_id, @@ -520,8 +536,17 @@ def __get_pending_task(self): # get more task if needed if self.__total_pending_tasks > 0: + + # to-do: implement task priority button or something? + + # first search non-pinned: log.info(f"[AgentScheduler] Total pending tasks: {self.__total_pending_tasks}") - pending_tasks = task_manager.get_tasks(status="pending", limit=1) + pending_tasks = task_manager.get_tasks(status="pending", limit=1, pinned=False) + if len(pending_tasks) > 0: + return pending_tasks[0] + + # finally, look for pinned: + pending_tasks = task_manager.get_tasks(status="pending", limit=1, pinned=True) if len(pending_tasks) > 0: return pending_tasks[0] else: diff --git a/javascript/agent-scheduler.iife.js b/javascript/agent-scheduler.iife.js index 9135cc6..2aba4d5 100644 --- a/javascript/agent-scheduler.iife.js +++ b/javascript/agent-scheduler.iife.js @@ -2,9 +2,9 @@ * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.1.1 * @link https://www.ag-grid.com/ * @license MIT - */function ct(n){return n==null||n===""?null:n}function P(n,t){return t===void 0&&(t=!1),n!=null&&(n!==""||t)}function H(n){return!P(n)}function Ge(n){return n==null||n.length===0}function zr(n){return n!=null&&typeof n.toString=="function"?n.toString():null}function Mt(n){if(n!==void 0){if(n===null||n==="")return null;if(typeof n=="number")return isNaN(n)?void 0:n;var t=parseInt(n,10);return isNaN(t)?void 0:t}}function xo(n){if(n!==void 0)return n===null||n===""?!1:typeof n=="boolean"?n:/true/i.test(n)}function yc(n){if(!(n==null||n===""))return n}function Yi(n,t){var e=n?JSON.stringify(n):null,r=t?JSON.stringify(t):null;return e===r}function mc(n,t,e){e===void 0&&(e=!1);var r=n==null,o=t==null;if(n&&n.toNumber&&(n=n.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&o)return 0;if(r)return-1;if(o)return 1;function i(s,a){return s>a?1:s=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ec=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i};function ye(n,t){var e,r;if(n!=null){if(Array.isArray(n)){for(var o=0;o=0)){var i=e[o],s=Go(i)&&i.constructor===Object;s?r[o]=No(i):r[o]=i}}),r}}function It(n){if(!n)return[];var t=Object;if(typeof t.values=="function")return t.values(n);var e=[];for(var r in n)n.hasOwnProperty(r)&&n.propertyIsEnumerable(r)&&e.push(n[r]);return e}function Ve(n,t,e,r){e===void 0&&(e=!0),r===void 0&&(r=!1),P(t)&&ye(t,function(o,i){var s=n[o];if(s!==i){if(r){var a=s==null&&i!=null;if(a){var l=typeof i=="object"&&i.constructor===Object,u=l;u&&(s={},n[o]=s)}}Go(i)&&Go(s)&&!Array.isArray(s)?Ve(s,i,e,r):(e||i!==void 0)&&(n[o]=i)}})}function wr(n,t,e){if(!(!t||!n)){if(!e)return n[t];for(var r=t.split("."),o=n,i=0;ia?1:s=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_c=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i};function ye(n,t){var e,r;if(n!=null){if(Array.isArray(n)){for(var o=0;o=0)){var i=e[o],s=Go(i)&&i.constructor===Object;s?r[o]=No(i):r[o]=i}}),r}}function It(n){if(!n)return[];var t=Object;if(typeof t.values=="function")return t.values(n);var e=[];for(var r in n)n.hasOwnProperty(r)&&n.propertyIsEnumerable(r)&&e.push(n[r]);return e}function Ve(n,t,e,r){e===void 0&&(e=!0),r===void 0&&(r=!1),P(t)&&ye(t,function(o,i){var s=n[o];if(s!==i){if(r){var a=s==null&&i!=null;if(a){var l=typeof i=="object"&&i.constructor===Object,u=l;u&&(s={},n[o]=s)}}Go(i)&&Go(s)&&!Array.isArray(s)?Ve(s,i,e,r):(e||i!==void 0)&&(n[o]=i)}})}function wr(n,t,e){if(!(!t||!n)){if(!e)return n[t];for(var r=t.split("."),o=n,i=0;i0&&window.setTimeout(function(){return n.forEach(function(e){return e()})},t)}function He(n,t){var e;return function(){for(var r=[],o=0;oe;(n()||l)&&(t(),s=!0,i!=null&&(window.clearInterval(i),i=null),l&&r&&console.warn(r))};a(),s||(i=window.setInterval(a,10))}function Rc(){for(var n=[],t=0;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},fa=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0&&window.setTimeout(function(){return n.forEach(function(e){return e()})},t)}function He(n,t){var e;return function(){for(var r=[],o=0;oe;(n()||l)&&(t(),s=!0,i!=null&&(window.clearInterval(i),i=null),l&&r&&console.warn(r))};a(),s||(i=window.setInterval(a,10))}function Oc(){for(var n=[],t=0;t0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},fa=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r<\/script> @@ -19,13 +19,13 @@ For more info see: https://www.ag-grid.com/javascript-grid/modules/`)}else s="AG import 'ag-grid-enterprise'; -For more info see: https://www.ag-grid.com/javascript-grid/packages/`);return er(function(){console.warn(s)},i),!1},n.__warnEnterpriseChartDisabled=function(t){var e="ag-charts-enterprise",r=e+":"+t,o="https://ag-grid.com/javascript-data-grid/integrated-charts/",i="AG Grid: the '".concat(t,"' chart type is not supported in AG Charts Community. See ").concat(o," for more details.");er(function(){console.warn(i)},r)},n.__isRegistered=function(t,e){var r;return!!n.globalModulesMap[t]||!!(!((r=n.gridModulesMap[e])===null||r===void 0)&&r[t])},n.__getRegisteredModules=function(t){return fa(fa([],Kr(Zt(n.globalModulesMap)),!1),Kr(Zt(n.gridModulesMap[t]||{})),!1)},n.__getGridRegisteredModules=function(t){var e;return Zt((e=n.gridModulesMap[t])!==null&&e!==void 0?e:{})||[]},n.__isPackageBased=function(){return!n.moduleBased},n.globalModulesMap={},n.gridModulesMap={},n.areGridScopedModules=!1,n}(),Pc=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Dc=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r> creating ag-Application Context"),this.createBeans();var r=this.getBeanInstances();this.wireBeans(r),this.logger.log(">> ag-Application Context ready - component is alive")}}return n.prototype.getBeanInstances=function(){return Zt(this.beanWrappers).map(function(t){return t.beanInstance})},n.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},n.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),P(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},n.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),ye(this.beanWrappers,function(r,o){var i;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(i=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var s=t.getBeansForParameters(i,o.bean.name),a=new(o.bean.bind.apply(o.bean,Dc([null],Pc(s),!1)));o.beanInstance=a});var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: ".concat(e))},n.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var r=void 0;t.prototype.constructor?r=Vo(t.prototype.constructor):r=""+t,console.error("Context item ".concat(r," is not a bean"));return}var o={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=o},n.prototype.autoWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){var s=o.agClassAttributes;s&&s.forEach(function(a){var l=e.lookupBeanInstance(i,a.beanName,a.optional);r[a.attributeName]=l})})})},n.prototype.methodWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){ye(o.autowireMethods,function(s,a){if(s!=="agConstructor"){var l=e.getBeansForParameters(a,i);r[s].apply(r,l)}})})})},n.prototype.forEachMetaDataInHierarchy=function(t,e){for(var r=Object.getPrototypeOf(t);r!=null;){var o=r.constructor;if(o.hasOwnProperty("__agBeanMetaData")){var i=o.__agBeanMetaData,s=this.getBeanName(o);e(i,s)}r=Object.getPrototypeOf(r)}},n.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString(),r=e.substring(9,e.indexOf("("));return r},n.prototype.getBeansForParameters=function(t,e){var r=this,o=[];return t&&ye(t,function(i,s){var a=r.lookupBeanInstance(e,s);o[Number(i)]=a}),o},n.prototype.lookupBeanInstance=function(t,e,r){if(r===void 0&&(r=!1),this.destroyed)return this.logger.log("AG Grid: bean reference ".concat(e," is used after the grid is destroyed!")),null;if(e==="context")return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var o=this.beanWrappers[e];return o?o.beanInstance:(r||console.error("AG Grid: unable to find bean reference ".concat(e," while initialising ").concat(t)),null)},n.prototype.callLifeCycleMethods=function(t,e){var r=this;t.forEach(function(o){return r.callLifeCycleMethodsOnBean(o,e)})},n.prototype.callLifeCycleMethodsOnBean=function(t,e,r){var o={};this.forEachMetaDataInHierarchy(t,function(s){var a=s[e];a&&a.forEach(function(l){l!=r&&(o[l]=!0)})});var i=Object.keys(o);i.forEach(function(s){return t[s]()})},n.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},n.prototype.destroy=function(){if(!this.destroyed){this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,X.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}},n.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},n.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach(function(r){e.callLifeCycleMethodsOnBean(r,"preDestroyMethods","destroy");var o=r;typeof o.destroy=="function"&&o.destroy()}),[]):[]},n.prototype.isDestroyed=function(){return this.destroyed},n.prototype.getGridId=function(){return this.contextParams.gridId},n}();function va(n,t,e){var r=tr(n.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function F(n,t,e){var r=tr(n.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function Se(n,t,e){var r=tr(n.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function x(n){return function(t){var e=tr(t);e.beanName=n}}function v(n){return function(t,e,r){ga(t,n,!1,t,e,null)}}function Y(n){return function(t,e,r){ga(t,n,!0,t,e,null)}}function ga(n,t,e,r,o,i){if(t===null){console.error("AG Grid: Autowired name should not be null");return}if(typeof i=="number"){console.error("AG Grid: Autowired should be on an attribute");return}var s=tr(n.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:o,beanName:t,optional:e})}function Ye(n){return function(t,e,r){var o=typeof t=="function"?t:t.constructor,i;if(typeof r=="number"){var s=void 0;e?(i=tr(o),s=e):(i=tr(o),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][r]=n}}}function tr(n){return n.hasOwnProperty("__agBeanMetaData")||(n.__agBeanMetaData={}),n.__agBeanMetaData}var ya=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Bo=function(n,t){return function(e,r){t(e,r,n)}},xt=function(){function n(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return n.prototype.setBeans=function(t,e,r,o){if(r===void 0&&(r=null),o===void 0&&(o=null),this.frameworkOverrides=e,this.gridOptionsService=t,r){var i=t.useAsyncEvents();this.addGlobalListener(r,i)}o&&this.addGlobalListener(o,!1)},n.prototype.setFrameworkOverrides=function(t){this.frameworkOverrides=t},n.prototype.getListeners=function(t,e,r){var o=e?this.allAsyncListeners:this.allSyncListeners,i=o.get(t);return!i&&r&&(i=new Set,o.set(t,i)),i},n.prototype.noRegisteredListenersExist=function(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0},n.prototype.addEventListener=function(t,e,r){r===void 0&&(r=!1),this.getListeners(t,r,!0).add(e)},n.prototype.removeEventListener=function(t,e,r){r===void 0&&(r=!1);var o=this.getListeners(t,r,!1);if(o&&(o.delete(e),o.size===0)){var i=r?this.allAsyncListeners:this.allSyncListeners;i.delete(t)}},n.prototype.addGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},n.prototype.removeGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},n.prototype.dispatchEvent=function(t){var e=t;this.gridOptionsService&&this.gridOptionsService.addGridCommonParams(e),this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},n.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},n.prototype.dispatchToListeners=function(t,e){var r=this,o,i=t.type;if(e&&"event"in t){var s=t.event;s instanceof Event&&(t.eventPath=s.composedPath())}var a=function(p,d){return p.forEach(function(h){if(d.has(h)){var f=r.frameworkOverrides?function(){return r.frameworkOverrides.wrapIncoming(function(){return h(t)})}:function(){return h(t)};e?r.dispatchAsync(f):f()}})},l=(o=this.getListeners(i,e,!1))!==null&&o!==void 0?o:new Set,u=new Set(l);u.size>0&&a(u,l);var c=new Set(e?this.globalAsyncListeners:this.globalSyncListeners);c.forEach(function(p){var d=r.frameworkOverrides?function(){return r.frameworkOverrides.wrapIncoming(function(){return p(i,t)})}:function(){return p(i,t)};e?r.dispatchAsync(d):d()})},n.prototype.dispatchAsync=function(t){var e=this;this.asyncFunctionsQueue.push(t),this.scheduled||(this.frameworkOverrides.wrapIncoming(function(){window.setTimeout(e.flushAsyncQueue.bind(e),0)}),this.scheduled=!0)},n.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach(function(e){return e()})},ya([Bo(0,Ye("gridOptionsService")),Bo(1,Ye("frameworkOverrides")),Bo(2,Ye("globalEventListener")),Bo(3,Ye("globalSyncEventListener"))],n.prototype,"setBeans",null),n=ya([x("eventService")],n),n}(),tn=function(){function n(t){this.frameworkOverrides=t,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}return n.prototype.wrap=function(t){var e=this,r=t;return this.frameworkOverrides.shouldWrapOutgoing&&(r=function(o){e.frameworkOverrides.wrapOutgoing(function(){return t(o)})},this.wrappedListeners.set(t,r)),r},n.prototype.wrapGlobal=function(t){var e=this,r=t;return this.frameworkOverrides.shouldWrapOutgoing&&(r=function(o,i){e.frameworkOverrides.wrapOutgoing(function(){return t(o,i)})},this.wrappedGlobalListeners.set(t,r)),r},n.prototype.unwrap=function(t){var e;return(e=this.wrappedListeners.get(t))!==null&&e!==void 0?e:t},n.prototype.unwrapGlobal=function(t){var e;return(e=this.wrappedGlobalListeners.get(t))!==null&&e!==void 0?e:t},n}(),$r=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},bc={resizable:!0,sortable:!0},Fc=0;function ma(){return Fc++}var J=function(){function n(t,e,r,o){this.instanceId=ma(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new xt,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=r,this.primary=o,this.setState(t)}return n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setState=function(t){t.sort!==void 0?(t.sort==="asc"||t.sort==="desc")&&(this.sort=t.sort):(t.initialSort==="asc"||t.initialSort==="desc")&&(this.sort=t.initialSort);var e=t.sortIndex,r=t.initialSortIndex;e!==void 0?e!==null&&(this.sortIndex=e):r!==null&&(this.sortIndex=r);var o=t.hide,i=t.initialHide;o!==void 0?this.visible=!o:this.visible=!i,t.pinned!==void 0?this.setPinned(t.pinned):this.setPinned(t.initialPinned);var s=t.flex,a=t.initialFlex;s!==void 0?this.flex=s:a!==void 0&&(this.flex=a)},n.prototype.setColDef=function(t,e,r){this.colDef=t,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged",r))},n.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},n.prototype.setParent=function(t){this.parent=t},n.prototype.getParent=function(){return this.parent},n.prototype.setOriginalParent=function(t){this.originalParent=t},n.prototype.getOriginalParent=function(){return this.originalParent},n.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()},n.prototype.initDotNotation=function(){var t=this.gridOptionsService.get("suppressFieldDotNotation");this.fieldContainsDots=P(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=P(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},n.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},n.prototype.initTooltip=function(){this.tooltipEnabled=P(this.colDef.tooltipField)||P(this.colDef.tooltipValueGetter)||P(this.colDef.tooltipComponent)},n.prototype.resetActualWidth=function(t){var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},n.prototype.isEmptyGroup=function(){return!1},n.prototype.isRowGroupDisplayed=function(t){if(H(this.colDef)||H(this.colDef.showRowGroup))return!1;var e=this.colDef.showRowGroup===!0,r=this.colDef.showRowGroup===t;return e||r},n.prototype.isPrimary=function(){return this.primary},n.prototype.isFilterAllowed=function(){var t=!!this.colDef.filter;return t},n.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},n.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},n.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},n.prototype.addEventListener=function(t,e){var r,o;this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new tn(this.frameworkOverrides));var i=(o=(r=this.frameworkEventListenerService)===null||r===void 0?void 0:r.wrap(e))!==null&&o!==void 0?o:e;this.eventService.addEventListener(t,i)},n.prototype.removeEventListener=function(t,e){var r,o,i=(o=(r=this.frameworkEventListenerService)===null||r===void 0?void 0:r.unwrap(e))!==null&&o!==void 0?o:e;this.eventService.removeEventListener(t,i)},n.prototype.createColumnFunctionCallbackParams=function(t){return this.gridOptionsService.addGridCommonParams({node:t,data:t.data,column:this,colDef:this.colDef})},n.prototype.isSuppressNavigable=function(t){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){var e=this.createColumnFunctionCallbackParams(t),r=this.colDef.suppressNavigable;return r(e)}return!1},n.prototype.isCellEditable=function(t){return t.group&&!this.gridOptionsService.get("enableGroupEdit")?!1:this.isColumnFunc(t,this.colDef.editable)},n.prototype.isSuppressFillHandle=function(){return!!this.colDef.suppressFillHandle},n.prototype.isAutoHeight=function(){return!!this.colDef.autoHeight},n.prototype.isAutoHeaderHeight=function(){return!!this.colDef.autoHeaderHeight},n.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},n.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},n.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},n.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},n.prototype.isResizable=function(){return!!this.getColDefValue("resizable")},n.prototype.getColDefValue=function(t){var e;return(e=this.colDef[t])!==null&&e!==void 0?e:bc[t]},n.prototype.isColumnFunc=function(t,e){if(typeof e=="boolean")return e;if(typeof e=="function"){var r=this.createColumnFunctionCallbackParams(t),o=e;return o(r)}return!1},n.prototype.setMoving=function(t,e){this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",e))},n.prototype.createColumnEvent=function(t,e){return this.gridOptionsService.addGridCommonParams({type:t,column:this,columns:[this],source:e})},n.prototype.isMoving=function(){return this.moving},n.prototype.getSort=function(){return this.sort},n.prototype.setSort=function(t,e){this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",e))),this.dispatchStateUpdatedEvent("sort")},n.prototype.setMenuVisible=function(t,e){this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",e)))},n.prototype.isMenuVisible=function(){return this.menuVisible},n.prototype.isSortable=function(){return!!this.getColDefValue("sortable")},n.prototype.isSortAscending=function(){return this.sort==="asc"},n.prototype.isSortDescending=function(){return this.sort==="desc"},n.prototype.isSortNone=function(){return H(this.sort)},n.prototype.isSorting=function(){return P(this.sort)},n.prototype.getSortIndex=function(){return this.sortIndex},n.prototype.setSortIndex=function(t){this.sortIndex=t,this.dispatchStateUpdatedEvent("sortIndex")},n.prototype.setAggFunc=function(t){this.aggFunc=t,this.dispatchStateUpdatedEvent("aggFunc")},n.prototype.getAggFunc=function(){return this.aggFunc},n.prototype.getLeft=function(){return this.left},n.prototype.getOldLeft=function(){return this.oldLeft},n.prototype.getRight=function(){return this.left+this.actualWidth},n.prototype.setLeft=function(t,e){this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",e)))},n.prototype.isFilterActive=function(){return this.filterActive},n.prototype.setFilterActive=function(t,e,r){this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",e)));var o=this.createColumnEvent("filterChanged",e);r&&Ve(o,r),this.eventService.dispatchEvent(o)},n.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},n.prototype.setPinned=function(t){t===!0||t==="left"?this.pinned="left":t==="right"?this.pinned="right":this.pinned=null,this.dispatchStateUpdatedEvent("pinned")},n.prototype.setFirstRightPinned=function(t,e){this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",e)))},n.prototype.setLastLeftPinned=function(t,e){this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",e)))},n.prototype.isFirstRightPinned=function(){return this.firstRightPinned},n.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},n.prototype.isPinned=function(){return this.pinned==="left"||this.pinned==="right"},n.prototype.isPinnedLeft=function(){return this.pinned==="left"},n.prototype.isPinnedRight=function(){return this.pinned==="right"},n.prototype.getPinned=function(){return this.pinned},n.prototype.setVisible=function(t,e){var r=t===!0;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",e))),this.dispatchStateUpdatedEvent("hide")},n.prototype.isVisible=function(){return this.visible},n.prototype.isSpanHeaderHeight=function(){var t=this.getColDef();return!t.suppressSpanHeaderHeight&&!t.autoHeaderHeight},n.prototype.getColumnGroupPaddingInfo=function(){var t=this.getParent();if(!t||!t.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var e=t.getPaddingLevel()+1,r=!0;t;){if(!t.isPadding()){r=!1;break}t=t.getParent()}return{numberOfParents:e,isSpanningTotal:r}},n.prototype.getColDef=function(){return this.colDef},n.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},n.prototype.getColId=function(){return this.colId},n.prototype.getId=function(){return this.colId},n.prototype.getUniqueId=function(){return this.colId},n.prototype.getDefinition=function(){return this.colDef},n.prototype.getActualWidth=function(){return this.actualWidth},n.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},n.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},n.prototype.createBaseColDefParams=function(t){var e=this.gridOptionsService.addGridCommonParams({node:t,data:t.data,colDef:this.colDef,column:this});return e},n.prototype.getColSpan=function(t){if(H(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),r=this.colDef.colSpan(e);return Math.max(r,1)},n.prototype.getRowSpan=function(t){if(H(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),r=this.colDef.rowSpan(e);return Math.max(r,1)},n.prototype.setActualWidth=function(t,e,r){r===void 0&&(r=!1),this.minWidth!=null&&(t=Math.max(t,this.minWidth)),this.maxWidth!=null&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&e!=="flex"&&e!=="gridInitializing"&&(this.flex=null),r||this.fireColumnWidthChangedEvent(e)),this.dispatchStateUpdatedEvent("width")},n.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",t))},n.prototype.isGreaterThanMax=function(t){return this.maxWidth!=null?t>this.maxWidth:!1},n.prototype.getMinWidth=function(){return this.minWidth},n.prototype.getMaxWidth=function(){return this.maxWidth},n.prototype.getFlex=function(){return this.flex||0},n.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t),this.dispatchStateUpdatedEvent("flex")},n.prototype.setMinimum=function(t){P(this.minWidth)&&this.setActualWidth(this.minWidth,t)},n.prototype.setRowGroupActive=function(t,e){this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",e))),this.dispatchStateUpdatedEvent("rowGroup")},n.prototype.isRowGroupActive=function(){return this.rowGroupActive},n.prototype.setPivotActive=function(t,e){this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",e))),this.dispatchStateUpdatedEvent("pivot")},n.prototype.isPivotActive=function(){return this.pivotActive},n.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},n.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},n.prototype.setValueActive=function(t,e){this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",e)))},n.prototype.isValueActive=function(){return this.aggregationActive},n.prototype.isAllowPivot=function(){return this.colDef.enablePivot===!0},n.prototype.isAllowValue=function(){return this.colDef.enableValue===!0},n.prototype.isAllowRowGroup=function(){return this.colDef.enableRowGroup===!0},n.prototype.getMenuTabs=function(t){V("As of v31.1, 'getMenuTabs' is deprecated. Use 'getColDef().menuTabs ?? defaultValues' instead.");var e=this.getColDef().menuTabs;return e==null&&(e=t),e},n.prototype.dispatchStateUpdatedEvent=function(t){this.eventService.dispatchEvent({type:n.EVENT_STATE_UPDATED,key:t})},n.EVENT_MOVING_CHANGED="movingChanged",n.EVENT_LEFT_CHANGED="leftChanged",n.EVENT_WIDTH_CHANGED="widthChanged",n.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",n.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",n.EVENT_VISIBLE_CHANGED="visibleChanged",n.EVENT_FILTER_CHANGED="filterChanged",n.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",n.EVENT_SORT_CHANGED="sortChanged",n.EVENT_COL_DEF_CHANGED="colDefChanged",n.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",n.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",n.EVENT_PIVOT_CHANGED="columnPivotChanged",n.EVENT_VALUE_CHANGED="columnValueChanged",n.EVENT_STATE_UPDATED="columnStateUpdated",$r([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),$r([v("columnUtils")],n.prototype,"columnUtils",void 0),$r([v("columnHoverService")],n.prototype,"columnHoverService",void 0),$r([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),$r([F],n.prototype,"initialise",null),n}(),Lc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ie=function(){function n(t,e,r,o){this.localEventService=new xt,this.expandable=!1,this.instanceId=ma(),this.expandableListenerRemoveCallback=null,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=r,this.level=o}return n.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},n.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setOriginalParent=function(t){this.originalParent=t},n.prototype.getOriginalParent=function(){return this.originalParent},n.prototype.getLevel=function(){return this.level},n.prototype.isVisible=function(){return this.children?this.children.some(function(t){return t.isVisible()}):!1},n.prototype.isPadding=function(){return this.padding},n.prototype.setExpanded=function(t){this.expanded=t===void 0?!1:t;var e={type:n.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(e)},n.prototype.isExpandable=function(){return this.expandable},n.prototype.isExpanded=function(){return this.expanded},n.prototype.getGroupId=function(){return this.groupId},n.prototype.getId=function(){return this.getGroupId()},n.prototype.setChildren=function(t){this.children=t},n.prototype.getChildren=function(){return this.children},n.prototype.getColGroupDef=function(){return this.colGroupDef},n.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},n.prototype.addLeafColumns=function(t){this.children&&this.children.forEach(function(e){e instanceof J?t.push(e):e instanceof n&&e.addLeafColumns(t)})},n.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},n.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(function(r){return r.addEventListener("visibleChanged",e)}),this.expandableListenerRemoveCallback=function(){t.getLeafColumns().forEach(function(r){return r.removeEventListener("visibleChanged",e)}),t.expandableListenerRemoveCallback=null}},n.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,e=!1,r=!1,o=this.findChildrenRemovingPadding(),i=0,s=o.length;i0}function q(n){if(!(!n||!n.length))return n[n.length-1]}function Tt(n,t,e){return n==null&&t==null?!0:n!=null&&t!=null&&n.length===t.length&&n.every(function(r,o){return e?e(r,t[o]):t[o]===r})}function xc(n,t){return Tt(n,t)}function Ca(n){return n.sort(function(t,e){return t-e})}function Nc(n,t){if(n)for(var e=n.length-2;e>=0;e--){var r=n[e]===t,o=n[e+1]===t;r&&o&&n.splice(e+1,1)}}function rn(n,t){var e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.pop())}function Ee(n,t){var e=n.indexOf(t);e>=0&&n.splice(e,1)}function Sa(n,t){for(var e=0;e=0;r--){var o=t[r];Yr(n,o,e)}}function on(n,t,e){wa(n,t),t.slice().reverse().forEach(function(r){return Yr(n,r,e)})}function ot(n,t){return n.indexOf(t)>-1}function Ea(n){return[].concat.apply([],n)}function nn(n,t){t==null||n==null||t.forEach(function(e){return n.push(e)})}function Vc(n){return n.map(zr)}function Hc(n,t){if(n!=null)for(var e=n.length-1;e>=0;e--)t(n[e],e)}var Bc=Object.freeze({__proto__:null,existsAndNotEmpty:Ic,last:q,areEqual:Tt,shallowCompare:xc,sortNumerically:Ca,removeRepeatsFromArray:Nc,removeFromUnorderedArray:rn,removeFromArray:Ee,removeAllFromUnorderedArray:Sa,removeAllFromArray:wa,insertIntoArray:Yr,insertArrayIntoArray:Gc,moveInArray:on,includes:ot,flatten:Ea,pushAll:nn,toStrings:Vc,forEachReverse:Hc}),_a="__ag_Grid_Stop_Propagation",kc=["touchstart","touchend","touchmove","touchcancel","scroll"],sn={};function it(n){n[_a]=!0}function nt(n){return n[_a]===!0}var an=function(){var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},t=function(e){if(typeof sn[e]=="boolean")return sn[e];var r=document.createElement(n[e]||"div");return e="on"+e,sn[e]=e in r};return t}();function ko(n,t,e){for(var r=t;r;){var o=n.getDomData(r,e);if(o)return o;r=r.parentElement}return null}function Wo(n,t){return!t||!n?!1:Oa(t).indexOf(n)>=0}function Ra(n){for(var t=[],e=n.target;e;)t.push(e),e=e.parentElement;return t}function Oa(n){var t=n;return t.path?t.path:t.composedPath?t.composedPath():Ra(t)}function Ta(n,t,e,r){var o=ot(kc,e),i=o?{passive:!0}:void 0;n&&n.addEventListener&&n.addEventListener(t,e,r,i)}var Wc=Object.freeze({__proto__:null,stopPropagationForAgGrid:it,isStopPropagationForAgGrid:nt,isEventSupported:an,getCtrlForEventTarget:ko,isElementInEventPath:Wo,createEventPath:Ra,getEventPath:Oa,addSafePassiveEventListener:Ta}),rr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},D=function(){function n(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=function(){return!t.destroyed}}return n.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},n.prototype.getContext=function(){return this.context},n.prototype.destroy=function(){this.destroyFunctions.forEach(function(t){return t()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:n.EVENT_DESTROYED})},n.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new xt),this.localEventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},n.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},n.prototype.addManagedListener=function(t,e,r){var o=this;if(!this.destroyed){t instanceof HTMLElement?Ta(this.getFrameworkOverrides(),t,e,r):t.addEventListener(e,r);var i=function(){return t.removeEventListener(e,r),o.destroyFunctions=o.destroyFunctions.filter(function(s){return s!==i}),null};return this.destroyFunctions.push(i),i}},n.prototype.setupGridOptionListener=function(t,e){var r=this;this.gridOptionsService.addEventListener(t,e);var o=function(){return r.gridOptionsService.removeEventListener(t,e),r.destroyFunctions=r.destroyFunctions.filter(function(i){return i!==o}),null};return this.destroyFunctions.push(o),o},n.prototype.addManagedPropertyListener=function(t,e){return this.destroyed?function(){return null}:this.setupGridOptionListener(t,e)},n.prototype.addManagedPropertyListeners=function(t,e){var r=this;if(!this.destroyed){var o=t.join("-")+this.propertyListenerId++,i=function(s){if(s.changeSet){if(s.changeSet&&s.changeSet.id===r.lastChangeSetIdLookup[o])return;r.lastChangeSetIdLookup[o]=s.changeSet.id}var a={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};e(a)};t.forEach(function(s){return r.setupGridOptionListener(s,i)})}},n.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},n.prototype.createManagedBean=function(t,e){var r=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),r},n.prototype.createBean=function(t,e,r){return(e||this.getContext()).createBean(t,r)},n.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},n.prototype.destroyBeans=function(t,e){var r=this;return t&&t.forEach(function(o){return r.destroyBean(o,e)}),[]},n.EVENT_DESTROYED="destroyed",rr([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),rr([v("context")],n.prototype,"context",void 0),rr([v("eventService")],n.prototype,"eventService",void 0),rr([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),rr([v("localeService")],n.prototype,"localeService",void 0),rr([v("environment")],n.prototype,"environment",void 0),rr([Se],n.prototype,"destroy",null),n}(),jc=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),jo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Uc=function(n,t){return function(e,r){t(e,r,n)}},zc=function(n){jc(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,r,o,i){var s=new Sc,a=this.extractExistingTreeData(o),l=a.existingCols,u=a.existingGroups,c=a.existingColKeys;s.addExistingKeys(c);var p=this.recursivelyCreateColumns(e,0,r,l,s,u,i),d=this.findMaxDept(p,0);this.logger.log("Number of levels for grouped columns is "+d);var h=this.balanceColumnTree(p,0,d,s),f=function(y,m){y instanceof ie&&y.setupExpandable(),y.setOriginalParent(m)};return this.columnUtils.depthFirstOriginalTreeSearch(null,h,f),{columnTree:h,treeDept:d}},t.prototype.extractExistingTreeData=function(e){var r=[],o=[],i=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){if(s instanceof ie){var a=s;o.push(a)}else{var l=s;i.push(l.getId()),r.push(l)}}),{existingCols:r,existingGroups:o,existingColKeys:i}},t.prototype.createForAutoGroups=function(e,r){var o=this;return e.map(function(i){return o.createAutoGroupTreeItem(r,i)})},t.prototype.createAutoGroupTreeItem=function(e,r){for(var o=this.findDepth(e),i=r,s=o-1;s>=0;s--){var a=new ie(null,"FAKE_PATH_".concat(r.getId(),"}_").concat(s),!0,s);this.createBean(a),a.setChildren([i]),i.setOriginalParent(a),i=a}return o===0&&r.setOriginalParent(null),i},t.prototype.findDepth=function(e){for(var r=0,o=e;o&&o[0]&&o[0]instanceof ie;)r++,o=o[0].getChildren();return r},t.prototype.balanceColumnTree=function(e,r,o,i){for(var s=[],a=0;a=r;h--){var f=i.getUniqueKey(null,null),y=this.createMergedColGroupDef(null),m=new ie(y,f,!0,r);this.createBean(m),d&&d.setChildren([m]),d=m,p||(p=d)}if(p&&d){s.push(p);var C=e.some(function(w){return w instanceof ie});if(C){d.setChildren([l]);continue}else{d.setChildren(e);break}}s.push(l)}}return s},t.prototype.findMaxDept=function(e,r){for(var o=r,i=0;i=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},se=function(){function n(t,e,r,o){this.displayedChildren=[],this.localEventService=new xt,this.groupId=e,this.partId=r,this.providedColumnGroup=t,this.pinned=o}return n.createUniqueId=function(t,e){return t+"_"+e},n.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},n.prototype.getParent=function(){return this.parent},n.prototype.setParent=function(t){this.parent=t},n.prototype.getUniqueId=function(){return n.createUniqueId(this.groupId,this.partId)},n.prototype.isEmptyGroup=function(){return this.displayedChildren.length===0},n.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!t||t.length===0?!1:t.every(function(e){return e.isMoving()})},n.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(o){o instanceof n&&o.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsService.get("enableRtl")){var t=q(this.displayedChildren),e=t.getLeft();this.setLeft(e)}else{var r=this.displayedChildren[0].getLeft();this.setLeft(r)}else this.setLeft(null)},n.prototype.getLeft=function(){return this.left},n.prototype.getOldLeft=function(){return this.oldLeft},n.prototype.setLeft=function(t){this.oldLeft=this.left,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_LEFT_CHANGED)))},n.prototype.getPinned=function(){return this.pinned},n.prototype.createAgEvent=function(t){return{type:t}},n.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},n.prototype.getGroupId=function(){return this.groupId},n.prototype.getPartId=function(){return this.partId},n.prototype.isChildInThisGroupDeepSearch=function(t){var e=!1;return this.children.forEach(function(r){t===r&&(e=!0),r instanceof n&&r.isChildInThisGroupDeepSearch(t)&&(e=!0)}),e},n.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach(function(e){t+=e.getActualWidth()}),t},n.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach(function(e){e.isResizable()&&(t=!0)}),t},n.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach(function(e){t+=e.getMinWidth()||0}),t},n.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},n.prototype.getDisplayedChildren=function(){return this.displayedChildren},n.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},n.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},n.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},n.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},n.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},n.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},n.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},n.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},n.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach(function(e){e instanceof J?t.push(e):e instanceof n&&e.addDisplayedLeafColumns(t)})},n.prototype.addLeafColumns=function(t){this.children.forEach(function(e){e instanceof J?t.push(e):e instanceof n&&e.addLeafColumns(t)})},n.prototype.getChildren=function(){return this.children},n.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},n.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},n.prototype.getPaddingLevel=function(){var t=this.getParent();return!this.isPadding()||!t||!t.isPadding()?0:1+t.getPaddingLevel()},n.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var e=this;e!=null&&e.isPadding();)e=e.getParent();var r=e?e.providedColumnGroup.isExpandable():!1;if(!r){this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED));return}this.children.forEach(function(o){var i=o instanceof n&&(!o.displayedChildren||!o.displayedChildren.length);if(!i){var s=o.getColumnGroupShow();switch(s){case"open":e.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case"closed":e.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o);break}}}),this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED))},n.EVENT_LEFT_CHANGED="leftChanged",n.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",Kc([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n}(),g=function(){function n(){}return n.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",n.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",n.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",n.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",n.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",n.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",n.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",n.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",n.EVENT_COLUMN_MOVED="columnMoved",n.EVENT_COLUMN_VISIBLE="columnVisible",n.EVENT_COLUMN_PINNED="columnPinned",n.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",n.EVENT_COLUMN_RESIZED="columnResized",n.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",n.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED="suppressMovableColumns",n.EVENT_SUPPRESS_MENU_HIDE_CHANGED="suppressMenuHide",n.EVENT_SUPPRESS_FIELD_DOT_NOTATION="suppressFieldDotNotation",n.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",n.EVENT_COLUMN_HEADER_MOUSE_OVER="columnHeaderMouseOver",n.EVENT_COLUMN_HEADER_MOUSE_LEAVE="columnHeaderMouseLeave",n.EVENT_COLUMN_HEADER_CLICKED="columnHeaderClicked",n.EVENT_COLUMN_HEADER_CONTEXT_MENU="columnHeaderContextMenu",n.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",n.EVENT_ROW_GROUP_OPENED="rowGroupOpened",n.EVENT_ROW_DATA_UPDATED="rowDataUpdated",n.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",n.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",n.EVENT_CHART_CREATED="chartCreated",n.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",n.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",n.EVENT_CHART_DESTROYED="chartDestroyed",n.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",n.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",n.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",n.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",n.EVENT_MODEL_UPDATED="modelUpdated",n.EVENT_CUT_START="cutStart",n.EVENT_CUT_END="cutEnd",n.EVENT_PASTE_START="pasteStart",n.EVENT_PASTE_END="pasteEnd",n.EVENT_FILL_START="fillStart",n.EVENT_FILL_END="fillEnd",n.EVENT_RANGE_DELETE_START="rangeDeleteStart",n.EVENT_RANGE_DELETE_END="rangeDeleteEnd",n.EVENT_UNDO_STARTED="undoStarted",n.EVENT_UNDO_ENDED="undoEnded",n.EVENT_REDO_STARTED="redoStarted",n.EVENT_REDO_ENDED="redoEnded",n.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",n.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",n.EVENT_CELL_CLICKED="cellClicked",n.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",n.EVENT_CELL_MOUSE_DOWN="cellMouseDown",n.EVENT_CELL_CONTEXT_MENU="cellContextMenu",n.EVENT_CELL_VALUE_CHANGED="cellValueChanged",n.EVENT_CELL_EDIT_REQUEST="cellEditRequest",n.EVENT_ROW_VALUE_CHANGED="rowValueChanged",n.EVENT_CELL_FOCUSED="cellFocused",n.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",n.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",n.EVENT_ROW_SELECTED="rowSelected",n.EVENT_SELECTION_CHANGED="selectionChanged",n.EVENT_TOOLTIP_SHOW="tooltipShow",n.EVENT_TOOLTIP_HIDE="tooltipHide",n.EVENT_CELL_KEY_DOWN="cellKeyDown",n.EVENT_CELL_MOUSE_OVER="cellMouseOver",n.EVENT_CELL_MOUSE_OUT="cellMouseOut",n.EVENT_FILTER_CHANGED="filterChanged",n.EVENT_FILTER_MODIFIED="filterModified",n.EVENT_FILTER_OPENED="filterOpened",n.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",n.EVENT_SORT_CHANGED="sortChanged",n.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",n.EVENT_ROW_CLICKED="rowClicked",n.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",n.EVENT_GRID_READY="gridReady",n.EVENT_GRID_PRE_DESTROYED="gridPreDestroyed",n.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",n.EVENT_VIEWPORT_CHANGED="viewportChanged",n.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",n.EVENT_FIRST_DATA_RENDERED="firstDataRendered",n.EVENT_DRAG_STARTED="dragStarted",n.EVENT_DRAG_STOPPED="dragStopped",n.EVENT_CHECKBOX_CHANGED="checkboxChanged",n.EVENT_ROW_EDITING_STARTED="rowEditingStarted",n.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",n.EVENT_CELL_EDITING_STARTED="cellEditingStarted",n.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",n.EVENT_BODY_SCROLL="bodyScroll",n.EVENT_BODY_SCROLL_END="bodyScrollEnd",n.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",n.EVENT_PAGINATION_CHANGED="paginationChanged",n.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",n.EVENT_STORE_REFRESHED="storeRefreshed",n.EVENT_STATE_UPDATED="stateUpdated",n.EVENT_COLUMN_MENU_VISIBLE_CHANGED="columnMenuVisibleChanged",n.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",n.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED="columnContainerWidthChanged",n.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",n.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",n.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",n.EVENT_FLASH_CELLS="flashCells",n.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",n.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",n.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",n.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",n.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",n.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",n.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",n.EVENT_ROW_DRAG_ENTER="rowDragEnter",n.EVENT_ROW_DRAG_MOVE="rowDragMove",n.EVENT_ROW_DRAG_LEAVE="rowDragLeave",n.EVENT_ROW_DRAG_END="rowDragEnd",n.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",n.EVENT_POPUP_TO_FRONT="popupToFront",n.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",n.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",n.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",n.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",n.EVENT_STORE_UPDATED="storeUpdated",n.EVENT_FILTER_DESTROYED="filterDestroyed",n.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",n.EVENT_ROW_COUNT_READY="rowCountReady",n.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",n.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",n.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",n.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",n.EVENT_SIDE_BAR_UPDATED="sideBarUpdated",n}(),Pa=function(){function n(){this.existingIds={}}return n.prototype.getInstanceIdForKey=function(t){var e=this.existingIds[t],r;return typeof e!="number"?r=0:r=e+1,this.existingIds[t]=r,r},n}(),$c=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ln=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Er="ag-Grid-AutoColumn",Yc=function(n){$c(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createAutoGroupColumns=function(e){var r=this,o=[],i=this.gridOptionsService.get("treeData"),s=this.gridOptionsService.isGroupMultiAutoColumn();return i&&s&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),s=!1),s?e.forEach(function(a,l){o.push(r.createOneAutoGroupColumn(a,l))}):o.push(this.createOneAutoGroupColumn()),o},t.prototype.updateAutoGroupColumns=function(e,r){var o=this;e.forEach(function(i,s){return o.updateOneAutoGroupColumn(i,s,r)})},t.prototype.createOneAutoGroupColumn=function(e,r){var o;e?o="".concat(Er,"-").concat(e.getId()):o=Er;var i=this.createAutoGroupColDef(o,e,r);i.colId=o;var s=new J(i,null,o,!0);return this.context.createBean(s),s},t.prototype.updateOneAutoGroupColumn=function(e,r,o){var i=e.getColDef(),s=typeof i.showRowGroup=="string"?i.showRowGroup:void 0,a=s!=null?this.columnModel.getPrimaryColumn(s):void 0,l=this.createAutoGroupColDef(e.getId(),a??void 0,r);e.setColDef(l,null,o),this.columnFactory.applyColumnState(e,l,o)},t.prototype.createAutoGroupColDef=function(e,r,o){var i=this.createBaseColDef(r),s=this.gridOptionsService.get("autoGroupColumnDef");if(Ve(i,s),i=this.columnFactory.addColumnDefaultAndTypes(i,e),!this.gridOptionsService.get("treeData")){var a=H(i.field)&&H(i.valueGetter)&&H(i.filterValueGetter)&&i.filter!=="agGroupColumnFilter";a&&(i.filter=!1)}o&&o>0&&(i.headerCheckboxSelection=!1);var l=this.gridOptionsService.isColumnsSortingCoupledToGroup(),u=i.valueGetter||i.field!=null;return l&&!u&&(i.sortIndex=void 0,i.initialSort=void 0),i},t.prototype.createBaseColDef=function(e){var r=this.gridOptionsService.get("autoGroupColumnDef"),o=this.localeService.getLocaleTextFunc(),i={headerName:o("group","Group")},s=r&&(r.cellRenderer||r.cellRendererSelector);if(s||(i.cellRenderer="agGroupCellRenderer"),e){var a=e.getColDef();Object.assign(i,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:a.headerValueGetter}),a.cellRenderer&&Object.assign(i,{cellRendererParams:{innerRenderer:a.cellRenderer,innerRendererParams:a.cellRendererParams}}),i.showRowGroup=e.getColId()}else i.showRowGroup=!0;return i},ln([v("columnModel")],t.prototype,"columnModel",void 0),ln([v("columnFactory")],t.prototype,"columnFactory",void 0),t=ln([x("autoGroupColService")],t),t}(D),qc=/[&<>"']/g,Qc={"&":"&","<":"<",">":">",'"':""","'":"'"};function Xc(n){var t=String.fromCharCode;function e(p){var d=[];if(!p)return[];for(var h=p.length,f=0,y,m;f=55296&&y<=56319&&f=55296&&p<=57343)throw Error("Lone surrogate U+"+p.toString(16).toUpperCase()+" is not a scalar value")}function o(p,d){return t(p>>d&63|128)}function i(p){if(p>=0&&p<=31&&p!==10){var d=p.toString(16).toUpperCase(),h=d.padStart(4,"0");return"_x".concat(h,"_")}if(!(p&4294967168))return t(p);var f="";return p&4294965248?p&4294901760?p&4292870144||(f=t(p>>18&7|240),f+=o(p,12),f+=o(p,6)):(r(p),f=t(p>>12&15|224),f+=o(p,6)):f=t(p>>6&31|192),f+=t(p&63|128),f}for(var s=e(n),a=s.length,l=-1,u,c="";++l1?o.substring(1,o.length):"")}).join(" ")}function Aa(n){return n.replace(/[A-Z]/g,function(t){return"-".concat(t.toLocaleLowerCase())})}var Zc=Object.freeze({__proto__:null,utf8_encode:Xc,capitalise:Jc,escapeString:ae,camelCaseToHumanText:Da,camelCaseToHyphenated:Aa});function Nt(n){var t=new Map;return n.forEach(function(e){return t.set(e[0],e[1])}),t}function ep(n,t){var e=new Map;return n.forEach(function(r){return e.set(t(r),r)}),e}function tp(n){var t=[];return n.forEach(function(e,r){return t.push(r)}),t}var rp=Object.freeze({__proto__:null,convertToMap:Nt,mapById:ep,keys:tp}),op=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ve=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ip=function(n,t){return function(e,r){t(e,r,n)}},np=function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},ke=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},sp=function(n){op(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.viewportRowLeft={},e.viewportRowRight={},e.viewportRowCenter={},e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.changeEventsDispatching=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.shouldQueueResizeOperations=!1,e.resizeOperationQueue=[],e}return t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.get("suppressColumnVirtualisation");var r=this.gridOptionsService.get("pivotMode");this.isPivotSettingAllowed(r)&&(this.pivotMode=r),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],function(o){return e.buildAutoGroupColumns(_r(o.source))}),this.addManagedPropertyListener("autoGroupColumnDef",function(o){return e.onAutoGroupColumnDefChanged(_r(o.source))}),this.addManagedPropertyListeners(["defaultColDef","columnTypes","suppressFieldDotNotation"],function(o){return e.onSharedColDefChanged(_r(o.source))}),this.addManagedPropertyListener("pivotMode",function(o){return e.setPivotMode(e.gridOptionsService.get("pivotMode"),_r(o.source))}),this.addManagedListener(this.eventService,g.EVENT_FIRST_DATA_RENDERED,function(){return e.onFirstDataRendered()})},t.prototype.buildAutoGroupColumns=function(e){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns(e))},t.prototype.onAutoGroupColumnDefChanged=function(e){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e)},t.prototype.onSharedColDefChanged=function(e){this.gridColumns&&(this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e),this.createColumnsFromColumnDefs(!0,e))},t.prototype.setColumnDefs=function(e,r){var o=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(o,r)},t.prototype.recreateColumnDefs=function(e){this.onSharedColDefChanged(e)},t.prototype.destroyOldColumns=function(e,r){var o={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){o[s.getInstanceId()]=s}),r&&this.columnUtils.depthFirstOriginalTreeSearch(null,r,function(s){o[s.getInstanceId()]=null});var i=Object.values(o).filter(function(s){return s!=null});this.destroyBeans(i)}},t.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},t.prototype.createColumnsFromColumnDefs=function(e,r){var o=this,i=e?this.compareColumnStatesAndDispatchEvents(r):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var s=this.primaryColumns,a=this.primaryColumnTree,l=this.columnFactory.createColumnTree(this.columnDefs,!0,a,r);this.destroyOldColumns(this.primaryColumnTree,l.columnTree),this.primaryColumnTree=l.columnTree,this.primaryHeaderRowCount=l.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(p){return o.primaryColumnsMap[p.getId()]=p}),this.extractRowGroupColumns(r,s),this.extractPivotColumns(r,s),this.extractValueColumns(r,s),this.ready=!0;var u=this.gridColsArePrimary===void 0,c=this.gridColsArePrimary||u||this.autoGroupsNeedBuilding;c&&(this.updateGridColumns(),e&&this.gridColsArePrimary&&!this.gridOptionsService.get("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(r),this.checkViewportColumns()),this.dispatchEverythingChanged(r),this.changeEventsDispatching=!0,i&&i(),this.changeEventsDispatching=!1,this.dispatchNewColumnsLoaded(r)},t.prototype.shouldRowModelIgnoreRefresh=function(){return this.changeEventsDispatching},t.prototype.dispatchNewColumnsLoaded=function(e){var r={type:g.EVENT_NEW_COLUMNS_LOADED,source:e};this.eventService.dispatchEvent(r),e==="gridInitializing"&&this.onColumnsReady()},t.prototype.dispatchEverythingChanged=function(e){var r={type:g.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(r)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,r=this.primaryColumns;if(r){var o=r.filter(function(s){return e.gridColumns.indexOf(s)>=0}),i=this.gridColumns.filter(function(s){return o.indexOf(s)<0});this.gridColumns=ke(ke([],Be(i),!1),Be(o),!1),this.gridColumns=this.placeLockedColumns(this.gridColumns)}},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsService.get("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var r=e,o=[];r!=null;)o.push(r),r=this.getDisplayedColAfter(r);return o},t.prototype.checkViewportColumns=function(e){if(e===void 0&&(e=!1),this.displayedColumnsCenter!=null){var r=this.extractViewport();if(r){var o={type:g.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(o)}}},t.prototype.setViewportPosition=function(e,r,o){o===void 0&&(o=!1),(e!==this.scrollWidth||r!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=r,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(o))},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return e&&this.gridOptionsService.get("treeData")?(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1):!0},t.prototype.setPivotMode=function(e,r){if(!(e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode))&&(this.pivotMode=e,!!this.gridColumns)){this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(r);var o={type:g.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.getSecondaryPivotColumn=function(e,r){if(H(this.secondaryColumns))return null;var o=this.getPrimaryColumn(r),i=null;return this.secondaryColumns.forEach(function(s){var a=s.getColDef().pivotKeys,l=s.getColDef().pivotValueColumn,u=Tt(a,e),c=l===o;u&&c&&(i=s)}),i},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var r,o;this.gridOptionsService.get("enableRtl")?(r=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?q(this.displayedColumnsRight):null):(r=this.displayedColumnsLeft?q(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(i){i.setLastLeftPinned(i===r,e),i.setFirstRightPinned(i===o,e)})},t.prototype.autoSizeColumns=function(e){var r=this;if(this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return r.autoSizeColumns(e)});return}var o=e.columns,i=e.skipHeader,s=e.skipHeaderGroups,a=e.stopAtGroup,l=e.source,u=l===void 0?"api":l;this.animationFrameService.flushAllFrames();for(var c=[],p=-1,d=i??this.gridOptionsService.get("skipHeaderOnAutoSize"),h=s??d;p!==0;)p=0,this.actionOnGridColumns(o,function(f){if(c.indexOf(f)>=0)return!1;var y=r.autoWidthCalculator.getPreferredWidthForColumn(f,d);if(y>0){var m=r.normaliseColumnWidth(f,y);f.setActualWidth(m,u),c.push(f),p++}return!0},u);h||this.autoSizeColumnGroupsByColumns(o,u,a),this.dispatchColumnResizedEvent(c,!0,"autosizeColumns")},t.prototype.dispatchColumnResizedEvent=function(e,r,o,i){if(i===void 0&&(i=null),e&&e.length){var s={type:g.EVENT_COLUMN_RESIZED,columns:e,column:e.length===1?e[0]:null,flexColumns:i,finished:r,source:o};this.eventService.dispatchEvent(s)}},t.prototype.dispatchColumnChangedEvent=function(e,r,o){var i={type:e,columns:r,column:r&&r.length==1?r[0]:null,source:o};this.eventService.dispatchEvent(i)},t.prototype.dispatchColumnMovedEvent=function(e){var r=e.movedColumns,o=e.source,i=e.toIndex,s=e.finished,a={type:g.EVENT_COLUMN_MOVED,columns:r,column:r&&r.length===1?r[0]:null,toIndex:i,finished:s,source:o};this.eventService.dispatchEvent(a)},t.prototype.dispatchColumnPinnedEvent=function(e,r){if(e.length){var o=e.length===1?e[0]:null,i=this.getCommonValue(e,function(a){return a.getPinned()}),s={type:g.EVENT_COLUMN_PINNED,pinned:i??null,columns:e,column:o,source:r};this.eventService.dispatchEvent(s)}},t.prototype.dispatchColumnVisibleEvent=function(e,r){if(e.length){var o=e.length===1?e[0]:null,i=this.getCommonValue(e,function(a){return a.isVisible()}),s={type:g.EVENT_COLUMN_VISIBLE,visible:i,columns:e,column:o,source:r};this.eventService.dispatchEvent(s)}},t.prototype.autoSizeColumn=function(e,r,o){e&&this.autoSizeColumns({columns:[e],skipHeader:o,skipHeaderGroups:!0,source:r})},t.prototype.autoSizeColumnGroupsByColumns=function(e,r,o){var i,s,a,l,u=new Set,c=this.getGridColumns(e);c.forEach(function(E){for(var S=E.getParent();S&&S!=o;)S.isPadding()||u.add(S),S=S.getParent()});var p,d=[];try{for(var h=un(u),f=h.next();!f.done;f=h.next()){var y=f.value;try{for(var m=(a=void 0,un(this.ctrlsService.getHeaderRowContainerCtrls())),C=m.next();!C.done;C=m.next()){var w=C.value;if(p=w.getHeaderCtrlForColumn(y),p)break}}catch(E){a={error:E}}finally{try{C&&!C.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}p&&p.resizeLeafColumnsToFit(r)}}catch(E){i={error:E}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return d},t.prototype.autoSizeAllColumns=function(e,r){var o=this;if(this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return o.autoSizeAllColumns(e,r)});return}var i=this.getAllDisplayedColumns();this.autoSizeColumns({columns:i,skipHeader:r,source:e})},t.prototype.getColumnsFromTree=function(e){var r=[],o=function(i){for(var s=0;s=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.isColSpanActive=function(){return this.colSpanActive},t.prototype.getDisplayedColumnsForRow=function(e,r,o,i){for(var s=[],a=null,l=function(p){var d=r[p],h=r.length-p,f=Math.min(d.getColSpan(e),h),y=[d];if(f>1){for(var m=f-1,C=1;C<=m;C++)y.push(r[p+C]);p+=m}var w;if(o?(w=!1,y.forEach(function(S){o(S)&&(w=!0)})):w=!0,w){if(s.length===0&&a){var E=i?i(d):!1;E&&s.push(a)}s.push(d)}a=d,u=p},u,c=0;cr.viewportLeft},i=this.isColumnVirtualisationSuppressed()?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,i,o)},t.prototype.isColumnAtEdge=function(e,r){var o=this.getAllDisplayedColumns();if(!o.length)return!1;var i=r==="first",s;if(e instanceof se){var a=e.getDisplayedLeafColumns();if(!a.length)return!1;s=i?a[0]:q(a)}else s=e;return(i?o[0]:q(o))===s},t.prototype.getAriaColumnIndex=function(e){var r;return e instanceof se?r=e.getLeafColumns()[0]:r=e,this.ariaOrderColumns.indexOf(r)+1},t.prototype.isColumnInHeaderViewport=function(e){return e.isAutoHeaderHeight()?!0:this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var r=e.getLeft()||0,o=r+e.getActualWidth(),i=this.viewportLeft-200,s=this.viewportRight+200,a=rs&&o>s;return!a&&!l},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,r,o,i,s,a){var l=this;if(!(!e||Ge(e))){var u=!1;if(e.forEach(function(p){if(p){var d=l.getPrimaryColumn(p);if(d){if(o){if(r.indexOf(d)>=0)return;r.push(d)}else{if(r.indexOf(d)<0)return;Ee(r,d)}i(d),u=!0}}}),!!u){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a);var c={type:s,columns:r,column:r.length===1?r[0]:null,source:a};this.eventService.dispatchEvent(c)}}},t.prototype.setRowGroupColumns=function(e,r){this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,g.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),r)},t.prototype.setRowGroupActive=function(e,r,o){e!==r.isRowGroupActive()&&(r.setRowGroupActive(e,o),e&&!this.gridOptionsService.get("suppressRowGroupHidesColumns")&&this.setColumnsVisible([r],!1,o),!e&&!this.gridOptionsService.get("suppressMakeColumnVisibleAfterUnGroup")&&this.setColumnsVisible([r],!0,o))},t.prototype.addRowGroupColumns=function(e,r){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),g.EVENT_COLUMN_ROW_GROUP_CHANGED,r)},t.prototype.removeRowGroupColumns=function(e,r){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),g.EVENT_COLUMN_ROW_GROUP_CHANGED,r)},t.prototype.addPivotColumns=function(e,r){this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(o){return o.setPivotActive(!0,r)},g.EVENT_COLUMN_PIVOT_CHANGED,r)},t.prototype.setPivotColumns=function(e,r){this.setPrimaryColumnList(e,this.pivotColumns,g.EVENT_COLUMN_PIVOT_CHANGED,!0,function(o,i){i.setPivotActive(o,r)},r)},t.prototype.removePivotColumns=function(e,r){this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(o){return o.setPivotActive(!1,r)},g.EVENT_COLUMN_PIVOT_CHANGED,r)},t.prototype.setPrimaryColumnList=function(e,r,o,i,s,a){var l=this;if(this.gridColumns){var u=new Map;r.forEach(function(c,p){return u.set(c,p)}),r.length=0,P(e)&&e.forEach(function(c){var p=l.getPrimaryColumn(c);p&&r.push(p)}),r.forEach(function(c,p){var d=u.get(c);if(d===void 0){u.set(c,0);return}i&&d!==p||u.delete(c)}),(this.primaryColumns||[]).forEach(function(c){var p=r.indexOf(c)>=0;s(p,c)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a),this.dispatchColumnChangedEvent(o,ke([],Be(u.keys()),!1),a)}},t.prototype.setValueColumns=function(e,r){this.setPrimaryColumnList(e,this.valueColumns,g.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),r)},t.prototype.setValueActive=function(e,r,o){if(e!==r.isValueActive()&&(r.setValueActive(e,o),e&&!r.getAggFunc())){var i=this.aggFuncService.getDefaultAggFunc(r);r.setAggFunc(i)}},t.prototype.addValueColumns=function(e,r){this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),g.EVENT_COLUMN_VALUE_CHANGED,r)},t.prototype.removeValueColumns=function(e,r){this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),g.EVENT_COLUMN_VALUE_CHANGED,r)},t.prototype.normaliseColumnWidth=function(e,r){var o=e.getMinWidth();P(o)&&r0?s+=d:a=!1});var l=o>=i,u=!a||o<=s;return l&&u},t.prototype.resizeColumnSets=function(e){var r=this,o=e.resizeSets,i=e.finished,s=e.source,a=!o||o.every(function(f){return r.checkMinAndMaxWidthsForSet(f)});if(!a){if(i){var l=o&&o.length>0?o[0].columns:null;this.dispatchColumnResizedEvent(l,i,s)}return}var u=[],c=[];o.forEach(function(f){var y=f.width,m=f.columns,C=f.ratios,w={},E={};m.forEach(function(A){return c.push(A)});for(var S=!0,R=0,O=function(){if(R++,R>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";S=!1;var A=[],M=0,N=y;m.forEach(function(W,ee){var oe=E[W.getId()];if(oe)N-=w[W.getId()];else{A.push(W);var Z=C[ee];M+=Z}});var I=1/M;A.forEach(function(W,ee){var oe=ee===A.length-1,Z;oe?Z=N:(Z=Math.round(C[ee]*y*I),N-=Z);var te=W.getMinWidth(),Q=W.getMaxWidth();P(te)&&Z0&&Z>Q&&(Z=Q,E[W.getId()]=!0,S=!0),w[W.getId()]=Z})};S;){var b=O();if(b==="break")break}m.forEach(function(A){var M=w[A.getId()],N=A.getActualWidth();N!==M&&(A.setActualWidth(M,s),u.push(A))})});var p=u.length>0,d=[];p&&(d=this.refreshFlexedColumns({resizingCols:c,skipSetLeft:!0}),this.setLeftValues(s),this.updateBodyWidths(),this.checkViewportColumns());var h=c.concat(d);(p||i)&&this.dispatchColumnResizedEvent(h,i,s,d)},t.prototype.setColumnAggFunc=function(e,r,o){if(e){var i=this.getPrimaryColumn(e);i&&(i.setAggFunc(r),this.dispatchColumnChangedEvent(g.EVENT_COLUMN_VALUE_CHANGED,[i],o))}},t.prototype.moveRowGroupColumn=function(e,r,o){if(!this.isRowGroupEmpty()){var i=this.rowGroupColumns[e],s=this.rowGroupColumns.slice(e,r);this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(r,0,i);var a={type:g.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:s,column:s.length===1?s[0]:null,source:o};this.eventService.dispatchEvent(a)}},t.prototype.moveColumns=function(e,r,o,i){if(i===void 0&&(i=!0),!!this.gridColumns){if(this.columnAnimationService.start(),r>this.gridColumns.length-e.length){console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+r),console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");return}var s=this.getGridColumns(e),a=!this.doesMovePassRules(s,r);a||(on(this.gridColumns,s,r),this.updateDisplayedColumns(o),this.dispatchColumnMovedEvent({movedColumns:s,source:o,toIndex:r,finished:i}),this.columnAnimationService.finish())}},t.prototype.doesMovePassRules=function(e,r){var o=this.getProposedColumnOrder(e,r);return this.doesOrderPassRules(o)},t.prototype.doesOrderPassRules=function(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))},t.prototype.getProposedColumnOrder=function(e,r){var o=this.gridColumns.slice();return on(o,e,r),o},t.prototype.sortColumnsLikeGridColumns=function(e){var r=this;if(!(!e||e.length<=1)){var o=e.filter(function(i){return r.gridColumns.indexOf(i)<0}).length>0;o||e.sort(function(i,s){var a=r.gridColumns.indexOf(i),l=r.gridColumns.indexOf(s);return a-l})}},t.prototype.doesMovePassLockedPositions=function(e){var r=0,o=!0,i=function(s){return s?s===!0||s==="left"?0:2:1};return e.forEach(function(s){var a=i(s.getColDef().lockPosition);ad&&(r=!1)}}}),r},t.prototype.moveColumnByIndex=function(e,r,o){if(this.gridColumns){var i=this.gridColumns[e];this.moveColumns([i],r,o)}},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var r=this.primaryColumns.slice();return this.gridColsArePrimary?r.sort(function(o,i){return e.gridColumns.indexOf(o)-e.gridColumns.indexOf(i)}):this.lastPrimaryOrder&&r.sort(function(o,i){return e.lastPrimaryOrder.indexOf(o)-e.lastPrimaryOrder.indexOf(i)}),this.columnDefFactory.buildColumnDefs(r,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),r=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e;var i=this.bodyWidth!==e||this.leftWidth!==r||this.rightWidth!==o;if(i){this.bodyWidth=e,this.leftWidth=r,this.rightWidth=o;var s={type:g.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED};this.eventService.dispatchEvent(s);var a={type:g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(a)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns:null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns:null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){var e;return(e=this.gridColumns)!==null&&e!==void 0?e:[]},t.prototype.isEmpty=function(){return Ge(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return Ge(this.rowGroupColumns)},t.prototype.setColumnsVisible=function(e,r,o){r===void 0&&(r=!1),this.applyColumnState({state:e.map(function(i){return{colId:typeof i=="string"?i:i.getColId(),hide:!r}})},o)},t.prototype.setColumnsPinned=function(e,r,o){if(this.gridColumns){if(this.gridOptionsService.isDomLayout("print")){console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'");return}this.columnAnimationService.start();var i;r===!0||r==="left"?i="left":r==="right"?i="right":i=null,this.actionOnGridColumns(e,function(s){return s.getPinned()!==i?(s.setPinned(i),!0):!1},o,function(){var s={type:g.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,source:o};return s}),this.columnAnimationService.finish()}},t.prototype.actionOnGridColumns=function(e,r,o,i){var s=this;if(!Ge(e)){var a=[];if(e.forEach(function(u){if(u){var c=s.getGridColumn(u);if(c){var p=r(c);p!==!1&&a.push(c)}}}),!!a.length&&(this.updateDisplayedColumns(o),P(i)&&i)){var l=i();l.columns=a,l.column=a.length===1?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var r=this.getAllDisplayedColumns(),o=r.indexOf(e);return o>0?r[o-1]:null},t.prototype.getDisplayedColAfter=function(e){var r=this.getAllDisplayedColumns(),o=r.indexOf(e);return o0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},t.prototype.createStateItemFromColumn=function(e){var r=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,s=e.getSort()!=null?e.getSort():null,a=e.getSortIndex()!=null?e.getSortIndex():null,l=e.getFlex()!=null&&e.getFlex()>0?e.getFlex():null,u={colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:s,sortIndex:a,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:r,pivot:e.isPivotActive(),pivotIndex:o,flex:l};return u},t.prototype.getColumnState=function(){if(H(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns(),r=e.map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(r),r},t.prototype.orderColumnStateList=function(e){var r=Nt(this.gridColumns.map(function(o,i){return[o.getColId(),i]}));e.sort(function(o,i){var s=r.has(o.colId)?r.get(o.colId):-1,a=r.has(i.colId)?r.get(i.colId):-1;return s-a})},t.prototype.resetColumnState=function(e){var r=this;if(!Ge(this.primaryColumns)){var o=this.getColumnsFromTree(this.primaryColumnTree),i=[],s=1e3,a=1e3,l=[];this.groupAutoColumns&&(l=l.concat(this.groupAutoColumns)),o&&(l=l.concat(o)),l.forEach(function(u){var c=r.getColumnStateFromColDef(u);H(c.rowGroupIndex)&&c.rowGroup&&(c.rowGroupIndex=s++),H(c.pivotIndex)&&c.pivot&&(c.pivotIndex=a++),i.push(c)}),this.applyColumnState({state:i,applyOrder:!0},e)}},t.prototype.getColumnStateFromColDef=function(e){var r=function(m,C){return m??C??null},o=e.getColDef(),i=r(o.sort,o.initialSort),s=r(o.sortIndex,o.initialSortIndex),a=r(o.hide,o.initialHide),l=r(o.pinned,o.initialPinned),u=r(o.width,o.initialWidth),c=r(o.flex,o.initialFlex),p=r(o.rowGroupIndex,o.initialRowGroupIndex),d=r(o.rowGroup,o.initialRowGroup);p==null&&(d==null||d==!1)&&(p=null,d=null);var h=r(o.pivotIndex,o.initialPivotIndex),f=r(o.pivot,o.initialPivot);h==null&&(f==null||f==!1)&&(h=null,f=null);var y=r(o.aggFunc,o.initialAggFunc);return{colId:e.getColId(),sort:i,sortIndex:s,hide:a,pinned:l,width:u,flex:c,rowGroup:d,rowGroupIndex:p,pivot:f,pivotIndex:h,aggFunc:y}},t.prototype.applyColumnState=function(e,r){var o=this;if(Ge(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var i=function(u,c,p){var d=o.compareColumnStatesAndDispatchEvents(r);o.autoGroupsNeedBuilding=!0;var h=c.slice(),f={},y={},m=[],C=[],w=0,E=o.rowGroupColumns.slice(),S=o.pivotColumns.slice();u.forEach(function(A){var M=A.colId||"",N=M.startsWith(Er);if(N){m.push(A),C.push(A);return}var I=p(M);I?(o.syncColumnWithStateItem(I,A,e.defaultState,f,y,!1,r),Ee(h,I)):(C.push(A),w+=1)});var R=function(A){return o.syncColumnWithStateItem(A,null,e.defaultState,f,y,!1,r)};h.forEach(R);var O=function(A,M,N,I){var W=A[N.getId()],ee=A[I.getId()],oe=W!=null,Z=ee!=null;if(oe&&Z)return W-ee;if(oe)return-1;if(Z)return 1;var te=M.indexOf(N),Q=M.indexOf(I),Ne=te>=0,ut=Q>=0;return Ne&&ut?te-Q:Ne?-1:1};o.rowGroupColumns.sort(O.bind(o,f,E)),o.pivotColumns.sort(O.bind(o,y,S)),o.updateGridColumns();var b=o.groupAutoColumns?o.groupAutoColumns.slice():[];return m.forEach(function(A){var M=o.getAutoColumn(A.colId);Ee(b,M),o.syncColumnWithStateItem(M,A,e.defaultState,null,null,!0,r)}),b.forEach(R),o.applyOrderAfterApplyState(e),o.updateDisplayedColumns(r),o.dispatchEverythingChanged(r),d(),{unmatchedAndAutoStates:C,unmatchedCount:w}};this.columnAnimationService.start();var s=i(e.state||[],this.primaryColumns||[],function(u){return o.getPrimaryColumn(u)}),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||P(e.defaultState))&&(l=i(a,this.secondaryColumns||[],function(u){return o.getSecondaryColumn(u)}).unmatchedCount),this.columnAnimationService.finish(),l===0},t.prototype.applyOrderAfterApplyState=function(e){var r=this;if(!(!e.applyOrder||!e.state)){var o=[],i={};e.state.forEach(function(a){if(!(!a.colId||i[a.colId])){var l=r.gridColumnsMap[a.colId];l&&(o.push(l),i[a.colId]=!0)}});var s=0;if(this.gridColumns.forEach(function(a){var l=a.getColId(),u=i[l]!=null;if(!u){var c=l.startsWith(Er);c?Yr(o,a,s++):o.push(a)}}),o=this.placeLockedColumns(o),!this.doesMovePassMarryChildren(o)){console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");return}this.gridColumns=o}},t.prototype.compareColumnStatesAndDispatchEvents=function(e){var r=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},i=this.getColumnState(),s={};return i.forEach(function(a){s[a.colId]=a}),function(){var a=r.getPrimaryAndSecondaryAndAutoColumns(),l=function(w,E,S,R){var O=E.map(R),b=S.map(R),A=Tt(O,b);if(!A){var M=new Set(E);S.forEach(function(W){M.delete(W)||M.add(W)});var N=ke([],Be(M),!1),I={type:w,columns:N,column:N.length===1?N[0]:null,source:e};r.eventService.dispatchEvent(I)}},u=function(w){var E=[];return a.forEach(function(S){var R=s[S.getColId()];R&&w(R,S)&&E.push(S)}),E},c=function(w){return w.getColId()};l(g.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,r.rowGroupColumns,c),l(g.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,r.pivotColumns,c);var p=function(w,E){var S=w.aggFunc!=null,R=S!=E.isValueActive(),O=S&&w.aggFunc!=E.getAggFunc();return R||O},d=u(p);d.length>0&&r.dispatchColumnChangedEvent(g.EVENT_COLUMN_VALUE_CHANGED,d,e);var h=function(w,E){return w.width!=E.getActualWidth()};r.dispatchColumnResizedEvent(u(h),!0,e);var f=function(w,E){return w.pinned!=E.getPinned()};r.dispatchColumnPinnedEvent(u(f),e);var y=function(w,E){return w.hide==E.isVisible()};r.dispatchColumnVisibleEvent(u(y),e);var m=function(w,E){return w.sort!=E.getSort()||w.sortIndex!=E.getSortIndex()},C=u(m);C.length>0&&r.sortController.dispatchSortChangedEvents(e,C),r.normaliseColumnMovedEventForColumnState(i,e)}},t.prototype.getCommonValue=function(e,r){if(!(!e||e.length==0)){for(var o=r(e[0]),i=1;i=d&&e.setActualWidth(f,l)}var y=u("sort").value1;y!==void 0&&(y==="desc"||y==="asc"?e.setSort(y,l):e.setSort(void 0,l));var m=u("sortIndex").value1;if(m!==void 0&&e.setSortIndex(m),!(a||!e.isPrimary())){var C=u("aggFunc").value1;C!==void 0&&(typeof C=="string"?(e.setAggFunc(C),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(P(C)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,l),Ee(this.valueColumns,e))));var w=u("rowGroup","rowGroupIndex"),E=w.value1,S=w.value2;(E!==void 0||S!==void 0)&&(typeof S=="number"||E?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),i&&typeof S=="number"&&(i[e.getId()]=S)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),Ee(this.rowGroupColumns,e)));var R=u("pivot","pivotIndex"),O=R.value1,b=R.value2;(O!==void 0||b!==void 0)&&(typeof b=="number"||O?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),s&&typeof b=="number"&&(s[e.getId()]=b)):e.isPivotActive()&&(e.setPivotActive(!1,l),Ee(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,r){var o=[];return e&&e.forEach(function(i){var s=r(i);s&&o.push(s)}),o},t.prototype.getColumnWithValidation=function(e){if(e==null)return null;var r=this.getGridColumn(e);return r||console.warn("AG Grid: could not find column "+e),r},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.lookupGridColumn=function(e){return this.gridColumnsMap[e]},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,r,o){if(!e||!o)return null;if(typeof e=="string"&&o[e])return o[e];for(var i=0;i=0:f?b?S=C:A?S=E!=null&&E>=0:S=!1:S=r.indexOf(h)>=0,S){var M=f?w!=null||E!=null:w!=null;M?u.push(h):c.push(h)}});var p=function(h){var f=i(h.getColDef()),y=s(h.getColDef());return f??y};u.sort(function(h,f){var y=p(h),m=p(f);return y===m?0:y=0&&d.push(h)}),c.forEach(function(h){d.indexOf(h)<0&&d.push(h)}),r.forEach(function(h){d.indexOf(h)<0&&o(h,!1)}),d.forEach(function(h){r.indexOf(h)<0&&o(h,!0)}),d},t.prototype.extractPivotColumns=function(e,r){this.pivotColumns=this.extractColumns(r,this.pivotColumns,function(o,i){return o.setPivotActive(i,e)},function(o){return o.pivotIndex},function(o){return o.initialPivotIndex},function(o){return o.pivot},function(o){return o.initialPivot})},t.prototype.resetColumnGroupState=function(e){if(this.primaryColumnTree){var r=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(o){if(o instanceof ie){var i=o.getColGroupDef(),s={groupId:o.getGroupId(),open:i?i.openByDefault:void 0};r.push(s)}}),this.setColumnGroupState(r,e)}},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(r){r instanceof ie&&e.push({groupId:r.getGroupId(),open:r.isExpanded()})}),e},t.prototype.setColumnGroupState=function(e,r){var o=this;if(this.gridBalancedTree){this.columnAnimationService.start();var i=[];if(e.forEach(function(a){var l=a.groupId,u=a.open,c=o.getProvidedColumnGroup(l);c&&c.isExpanded()!==u&&(o.logger.log("columnGroupOpened("+c.getGroupId()+","+u+")"),c.setExpanded(u),i.push(c))}),this.updateGroupsAndDisplayedColumns(r),this.setFirstRightAndLastLeftPinned(r),i.length){var s={type:g.EVENT_COLUMN_GROUP_OPENED,columnGroup:ie.length===1?i[0]:void 0,columnGroups:i};this.eventService.dispatchEvent(s)}this.columnAnimationService.finish()}},t.prototype.setColumnGroupOpened=function(e,r,o){var i;e instanceof ie?i=e.getId():i=e||"",this.setColumnGroupState([{groupId:i,open:r}],o)},t.prototype.getProvidedColumnGroup=function(e){typeof e!="string"&&console.error("AG Grid: group key must be a string");var r=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){o instanceof ie&&o.getId()===e&&(r=o)}),r},t.prototype.calculateColumnsForDisplay=function(){var e=this,r;return this.pivotMode&&H(this.secondaryColumns)?r=this.gridColumns.filter(function(o){var i=e.groupAutoColumns&&ot(e.groupAutoColumns,o),s=e.valueColumns&&ot(e.valueColumns,o);return i||s}):r=this.gridColumns.filter(function(o){var i=e.groupAutoColumns&&ot(e.groupAutoColumns,o);return i||o.isVisible()}),r},t.prototype.checkColSpanActiveInCols=function(e){var r=!1;return e.forEach(function(o){P(o.getColDef().colSpan)&&(r=!0)}),r},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var r=function(o){var i=o.getColDef(),s=i.showRowGroup;i&&P(s)&&(e.groupDisplayColumns.push(o),typeof s=="string"?e.groupDisplayColumnsMap[s]=o:s===!0&&e.getRowGroupColumns().forEach(function(a){e.groupDisplayColumnsMap[a.getId()]=o}))};this.gridColumns.forEach(r)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},t.prototype.updateDisplayedColumns=function(e){var r=this.calculateColumnsForDisplay();this.buildDisplayedTrees(r),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return P(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,r){var o=this;if(this.gridColumns){var i=e&&e.length>0;if(!(!i&&H(this.secondaryColumns))){if(i){this.processSecondaryColumnDefinitions(e);var s=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0,r);this.destroyOldColumns(this.secondaryBalancedTree,s.columnTree),this.secondaryBalancedTree=s.columnTree,this.secondaryHeaderRowCount=s.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(a){return o.secondaryColumnsMap[a.getId()]=a}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(r)}}},t.prototype.processSecondaryColumnDefinitions=function(e){var r=this.gridOptionsService.get("processPivotResultColDef"),o=this.gridOptionsService.get("processPivotResultColGroupDef");if(!(!r&&!o)){var i=function(s){s.forEach(function(a){var l=P(a.children);if(l){var u=a;o&&o(u),i(u.children)}else{var c=a;r&&r(c)}})};e&&i(e)}},t.prototype.updateGridColumns=function(){var e=this,r=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var o=this.createGroupAutoColumnsIfNeeded();if(o){var i=Nt(this.groupAutoColumns.map(function(u){return[u,!0]}));this.lastPrimaryOrder&&(this.lastPrimaryOrder=this.lastPrimaryOrder.filter(function(u){return!i.has(u)}),this.lastPrimaryOrder=ke(ke([],Be(this.groupAutoColumns),!1),Be(this.lastPrimaryOrder),!1)),this.lastSecondaryOrder&&(this.lastSecondaryOrder=this.lastSecondaryOrder.filter(function(u){return!i.has(u)}),this.lastSecondaryOrder=ke(ke([],Be(this.groupAutoColumns),!1),Be(this.lastSecondaryOrder),!1))}var s;if(this.secondaryColumns&&this.secondaryBalancedTree){var a=this.secondaryColumns.some(function(u){return e.gridColumnsMap[u.getColId()]!==void 0});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,a&&(s=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,s=this.lastPrimaryOrder);if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(s),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(u){return e.gridColumnsMap[u.getId()]=u}),this.setAutoHeightActive(),!Tt(r,this.gridBalancedTree)){var l={type:g.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(l)}},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter(function(r){return r.isAutoHeight()}).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide");e||V("autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}},t.prototype.orderGridColsLike=function(e){if(!H(e)){var r=Nt(e.map(function(c,p){return[c,p]})),o=!0;if(this.gridColumns.forEach(function(c){r.has(c)&&(o=!1)}),!o){var i=Nt(this.gridColumns.map(function(c){return[c,!0]})),s=e.filter(function(c){return i.has(c)}),a=Nt(s.map(function(c){return[c,!0]})),l=this.gridColumns.filter(function(c){return!a.has(c)}),u=s.slice();l.forEach(function(c){var p=c.getOriginalParent();if(!p){u.push(c);return}for(var d=[];!d.length&&p;){var h=p.getLeafColumns();h.forEach(function(m){var C=u.indexOf(m)>=0,w=d.indexOf(m)<0;C&&w&&d.push(m)}),p=p.getOriginalParent()}if(!d.length){u.push(c);return}var f=d.map(function(m){return u.indexOf(m)}),y=Math.max.apply(Math,ke([],Be(f),!1));Yr(u,c,y+1)}),this.gridColumns=u}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.refreshQuickFilterColumns=function(){var e,r=(e=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)!==null&&e!==void 0?e:[];this.groupAutoColumns&&(r=r.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.get("includeHiddenColumnsInQuickFilter")?r:r.filter(function(o){return o.isVisible()||o.isRowGroupActive()})},t.prototype.placeLockedColumns=function(e){var r=[],o=[],i=[];return e.forEach(function(s){var a=s.getColDef().lockPosition;a==="right"?i.push(s):a==="left"||a===!0?r.push(s):o.push(s)}),ke(ke(ke([],Be(r),!1),Be(o),!1),Be(i),!1)},t.prototype.addAutoGroupToGridColumns=function(){if(H(this.groupAutoColumns)){this.destroyOldColumns(this.groupAutoColsBalancedTree),this.groupAutoColsBalancedTree=null;return}this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},t.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.ariaOrderColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var r={type:g.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(r)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinColumnsAriaOrder(),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter(function(r){return r.isAutoHeight()})},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinColumnsAriaOrder=function(){var e,r,o=this.getAllGridColumns(),i=[],s=[],a=[];try{for(var l=un(o),u=l.next();!u.done;u=l.next()){var c=u.value,p=c.getPinned();p?p===!0||p==="left"?i.push(c):a.push(c):s.push(c)}}catch(d){e={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}this.ariaOrderColumns=i.concat(s).concat(a)},t.prototype.joinDisplayedColumns=function(){this.gridOptionsService.get("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var r=this;if(this.primaryColumns){var o=this.getPrimaryAndSecondaryAndAutoColumns().slice(0),i=this.gridOptionsService.get("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(s){if(i){var a=r.getWidthOfColsInList(s);s.forEach(function(u){a-=u.getActualWidth(),u.setLeft(a,e)})}else{var l=0;s.forEach(function(u){u.setLeft(l,e),l+=u.getActualWidth()})}Sa(o,s)}),o.forEach(function(s){s.setLeft(null,e)})}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(r){if(r instanceof se){var o=r;o.checkLeft()}})})},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,r){r.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(o){o instanceof J&&r.push(o)})},t.prototype.isColumnVirtualisationSuppressed=function(){return this.suppressColumnVirtualisation||this.viewportRight===0},t.prototype.extractViewportColumns=function(){this.isColumnVirtualisationSuppressed()?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,r){var o;switch(e){case"left":o=this.viewportRowLeft[r];break;case"right":o=this.viewportRowRight[r];break;default:o=this.viewportRowCenter[r];break}return H(o)&&(o=[]),o},t.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach(function(o){return e[o.getId()]=!0});var r=function(o,i,s){for(var a=!1,l=0;l=0;l--)if(s.has(a[l])){i=l;break}}for(var u=0,c=[],p=0,d=0,l=0;li;h?(c.push(this.displayedColumnsCenter[l]),d+=this.displayedColumnsCenter[l].getFlex(),p+=(r=this.displayedColumnsCenter[l].getMinWidth())!==null&&r!==void 0?r:0):u+=this.displayedColumnsCenter[l].getActualWidth()}if(!c.length)return[];var f=[];u+p>this.flexViewportWidth&&(c.forEach(function(A){var M;return A.setActualWidth((M=A.getMinWidth())!==null&&M!==void 0?M:0,o)}),f=c,c=[]);var y=[],m;e:for(;;){m=this.flexViewportWidth-u;for(var C=m/d,l=0;lO&&(S=O),S){w.setActualWidth(S,o),rn(c,w),d-=w.getFlex(),f.push(w),u+=w.getActualWidth();continue e}y[l]=Math.round(E)}break}var b=m;return c.forEach(function(A,M){A.setActualWidth(Math.min(y[M],b),o),f.push(A),b-=y[M]}),e.skipSetLeft||this.setLeftValues(o),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(f,!0,o,c),c},t.prototype.sizeColumnsToFit=function(e,r,o,i){var s=this,a,l,u,c,p;if(r===void 0&&(r="sizeColumnsToFit"),this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return s.sizeColumnsToFit(e,r,o,i)});return}var d={};i&&((a=i==null?void 0:i.columnLimits)===null||a===void 0||a.forEach(function(Q){var Ne=Q.key,ut=np(Q,["key"]);d[typeof Ne=="string"?Ne:Ne.getColId()]=ut}));var h=this.getAllDisplayedColumns(),f=e===this.getWidthOfColsInList(h);if(!(e<=0||!h.length||f)){var y=[],m=[];h.forEach(function(Q){Q.getColDef().suppressSizeToFit===!0?m.push(Q):y.push(Q)});var C=y.slice(0),w=!1,E=function(Q){Ee(y,Q),m.push(Q)};for(y.forEach(function(Q){var Ne,ut;Q.resetActualWidth(r);var Lt=d==null?void 0:d[Q.getId()],la=(Ne=Lt==null?void 0:Lt.minWidth)!==null&&Ne!==void 0?Ne:i==null?void 0:i.defaultMinWidth,ua=(ut=Lt==null?void 0:Lt.maxWidth)!==null&&ut!==void 0?ut:i==null?void 0:i.defaultMaxWidth,gc=Q.getActualWidth();typeof la=="number"&&gcua&&Q.setActualWidth(ua,r,!0)});!w;){w=!0;var S=e-this.getWidthOfColsInList(m);if(S<=0)y.forEach(function(Q){var Ne,ut,Lt=(ut=(Ne=d==null?void 0:d[Q.getId()])===null||Ne===void 0?void 0:Ne.minWidth)!==null&&ut!==void 0?ut:i==null?void 0:i.defaultMinWidth;if(typeof Lt=="number"){Q.setActualWidth(Lt,r,!0);return}Q.setMinimum(r)});else for(var R=S/this.getWidthOfColsInList(y),O=S,b=y.length-1;b>=0;b--){var A=y[b],M=d==null?void 0:d[A.getId()],N=(l=M==null?void 0:M.minWidth)!==null&&l!==void 0?l:i==null?void 0:i.defaultMinWidth,I=(u=M==null?void 0:M.maxWidth)!==null&&u!==void 0?u:i==null?void 0:i.defaultMaxWidth,W=(c=A.getMinWidth())!==null&&c!==void 0?c:0,ee=(p=A.getMaxWidth())!==null&&p!==void 0?p:Number.MAX_VALUE,oe=typeof N=="number"&&N>W?N:A.getMinWidth(),Z=typeof I=="number"&&IZ?(te=Z,E(A),w=!1):b===0&&(te=O),A.setActualWidth(te,r,!0),O-=te}}C.forEach(function(Q){Q.fireColumnWidthChangedEvent(r)}),this.setLeftValues(r),this.updateBodyWidths(),!o&&this.dispatchColumnResizedEvent(C,!0,r)}},t.prototype.buildDisplayedTrees=function(e){var r=[],o=[],i=[];e.forEach(function(a){switch(a.getPinned()){case"left":r.push(a);break;case"right":o.push(a);break;default:i.push(a);break}});var s=new Pa;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(r,s,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,s,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(i,s,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var r=function(o){e.displayedColumnsAndGroupsMap[o.getUniqueId()]=o};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,r),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,r),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,r)},t.prototype.isDisplayed=function(e){var r=this.displayedColumnsAndGroupsMap[e.getUniqueId()];return r===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(r){r instanceof se&&r.calculateDisplayedColumns()})},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){var e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var r=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),o=this.pivotMode?this.gridOptionsService.get("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn(),i=this.rowGroupColumns.length>0||this.gridOptionsService.get("treeData"),s=i&&!o&&!r;if(s){var a=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns),l=!this.autoColsEqual(a,this.groupAutoColumns);if(l||e)return this.groupAutoColumns=a,!0}else this.groupAutoColumns=null;return!1},t.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get("groupDisplayType"),r=e==="custom";if(r)return!0;var o=this.gridOptionsService.get("treeDataDisplayType");return o==="custom"},t.prototype.autoColsEqual=function(e,r){return Tt(e,r,function(o,i){return o.getColId()===i.getColId()})},t.prototype.getWidthOfColsInList=function(e){return e.reduce(function(r,o){return r+o.getActualWidth()},0)},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.get("enableRtl"),r=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&r.reverse();for(var o=0;oo},t.prototype.generateColumnStateForRowGroupAndPivotIndexes=function(e,r){var o=this,i={},s=function(a,l,u,c,p,d){if(!l.length||!o.primaryColumns)return[];for(var h=Object.keys(a),f=new Set(h),y=new Set(h),m=new Set(l.map(function(N){var I=N.getColId();return y.delete(I),I}).concat(h)),C=[],w={},E=0,S=0;S=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},up=function(n){ap(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.calculateColMinWidth=function(e){return e.minWidth!=null?e.minWidth:this.environment.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return e.maxWidth!=null?e.maxWidth:Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var r=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),i,s=Mt(e.width),a=Mt(e.initialWidth);return s!=null?i=s:a!=null?i=a:i=200,Math.max(Math.min(i,o),r)},t.prototype.getOriginalPathForColumn=function(e,r){var o=[],i=!1,s=function(a,l){for(var u=0;u=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dp=function(n){cp(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createDisplayedGroups=function(e,r,o,i){for(var s=this,a=this.mapOldGroupsById(i),l=[],u=e,c=function(){var p=u;u=[];for(var d=0,h=function(R){var O=d;d=R;var b=p[O],A=b instanceof se?b.getProvidedColumnGroup():b,M=A.getOriginalParent();if(M==null){for(var N=O;N0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Vt=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Fa=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},gp=function(n){fp(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.componentsMappedByName={},e}return t.prototype.setupComponents=function(e){var r=this;e&&e.forEach(function(o){return r.addComponent(o)})},t.prototype.addComponent=function(e){var r=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=r.toUpperCase();this.componentsMappedByName[o]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=vp([x("agStackComponentsRegistry")],t),t}(D);function qe(n,t,e){e==null||typeof e=="string"&&e==""?pn(n,t):Qe(n,t,e)}function Qe(n,t,e){n.setAttribute(Ma(t),e.toString())}function pn(n,t){n.removeAttribute(Ma(t))}function Ma(n){return"aria-".concat(n)}function le(n,t){t?n.setAttribute("role",t):n.removeAttribute("role")}function Ia(n){var t;return n==="asc"?t="ascending":n==="desc"?t="descending":n==="mixed"?t="other":t="none",t}function yp(n){return parseInt(n.getAttribute("aria-level"),10)}function xa(n){return parseInt(n.getAttribute("aria-posinset"),10)}function Na(n){return n.getAttribute("aria-label")}function Ht(n,t){qe(n,"label",t)}function Uo(n,t){qe(n,"labelledby",t)}function mp(n,t){qe(n,"describedby",t)}function dn(n,t){qe(n,"live",t)}function Ga(n,t){qe(n,"atomic",t)}function Va(n,t){qe(n,"relevant",t)}function Ha(n,t){qe(n,"level",t)}function hn(n,t){qe(n,"disabled",t)}function zo(n,t){qe(n,"hidden",t)}function fn(n,t){qe(n,"activedescendant",t)}function Pt(n,t){Qe(n,"expanded",t)}function Ba(n){pn(n,"expanded")}function vn(n,t){Qe(n,"setsize",t)}function gn(n,t){Qe(n,"posinset",t)}function ka(n,t){Qe(n,"multiselectable",t)}function Wa(n,t){Qe(n,"rowcount",t)}function yn(n,t){Qe(n,"rowindex",t)}function ja(n,t){Qe(n,"colcount",t)}function mn(n,t){Qe(n,"colindex",t)}function Ua(n,t){Qe(n,"colspan",t)}function za(n,t){Qe(n,"sort",t)}function Ka(n){pn(n,"sort")}function Rr(n,t){qe(n,"selected",t)}function Cp(n,t){Qe(n,"checked",t===void 0?"mixed":t)}function Cn(n,t){qe(n,"controls",t.id),Uo(t,n.id)}function Sn(n,t){return t===void 0?n("ariaIndeterminate","indeterminate"):t===!0?n("ariaChecked","checked"):n("ariaUnchecked","unchecked")}var Sp=Object.freeze({__proto__:null,setAriaRole:le,getAriaSortState:Ia,getAriaLevel:yp,getAriaPosInSet:xa,getAriaLabel:Na,setAriaLabel:Ht,setAriaLabelledBy:Uo,setAriaDescribedBy:mp,setAriaLive:dn,setAriaAtomic:Ga,setAriaRelevant:Va,setAriaLevel:Ha,setAriaDisabled:hn,setAriaHidden:zo,setAriaActiveDescendant:fn,setAriaExpanded:Pt,removeAriaExpanded:Ba,setAriaSetSize:vn,setAriaPosInSet:gn,setAriaMultiSelectable:ka,setAriaRowCount:Wa,setAriaRowIndex:yn,setAriaColCount:ja,setAriaColIndex:mn,setAriaColSpan:Ua,setAriaSort:za,removeAriaSort:Ka,setAriaSelected:Rr,setAriaChecked:Cp,setAriaControls:Cn,getAriaCheckboxStateName:Sn}),wn,Ko,En,_n,Rn,On,Tn,Pn;function ht(){return wn===void 0&&(wn=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),wn}function Dn(){if(Ko===void 0)if(ht()){var n=navigator.userAgent.match(/version\/(\d+)/i);n&&(Ko=n[1]!=null?parseFloat(n[1]):0)}else Ko=0;return Ko}function $o(){if(En===void 0){var n=window;En=!!n.chrome&&(!!n.chrome.webstore||!!n.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return En}function An(){return _n===void 0&&(_n=/(firefox)/i.test(navigator.userAgent)),_n}function bn(){return Rn===void 0&&(Rn=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Rn}function Dt(){return On===void 0&&(On=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),On}function Fn(){return!ht()||Dn()>=15}function Yo(n){if(!n)return null;var t=n.tabIndex,e=n.getAttribute("tabIndex");return t===-1&&(e===null||e===""&&!An())?null:t.toString()}function $a(){if(!document.body)return-1;var n=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,e=document.createElement("div");for(document.body.appendChild(e);;){var r=n*2;if(e.style.height=r+"px",r>t||e.clientHeight!==r)break;n=r}return document.body.removeChild(e),n}function Ya(){var n,t,e;return(t=(n=document.body)===null||n===void 0?void 0:n.clientWidth)!==null&&t!==void 0?t:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientWidth)||-1}function qa(){var n,t,e;return(t=(n=document.body)===null||n===void 0?void 0:n.clientHeight)!==null&&t!==void 0?t:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientHeight)||-1}function Qa(){return Pn==null&&Xa(),Pn}function Xa(){var n=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",n.appendChild(t);var e=t.offsetWidth-t.clientWidth;e===0&&t.clientWidth===0&&(e=null),t.parentNode&&t.parentNode.removeChild(t),e!=null&&(Pn=e,Tn=e===0)}function Ln(){return Tn==null&&Xa(),Tn}var wp=Object.freeze({__proto__:null,isBrowserSafari:ht,getSafariVersion:Dn,isBrowserChrome:$o,isBrowserFirefox:An,isMacOsUserAgent:bn,isIOSUserAgent:Dt,browserSupportsPreventScroll:Fn,getTabIndex:Yo,getMaxDivHeight:$a,getBodyWidth:Ya,getBodyHeight:qa,getScrollbarWidth:Qa,isInvisibleScrollbar:Ln});function Or(n,t){return n.toString().padStart(t,"0")}function Ja(n,t){for(var e=[],r=n;r<=t;r++)e.push(r);return e}function Ep(n){return typeof n=="string"&&(n=parseInt(n,10)),typeof n=="number"?Math.floor(n):null}function _p(n,t){for(var e="",r=0;r>>=8;return e}function Rp(n,t,e){return typeof n!="number"?"":Mn(Math.round(n*100)/100,t,e)}function Mn(n,t,e){return typeof n!="number"?"":n.toString().replace(".",e).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1".concat(t))}function Op(n){return n==null?null:n.reduce(function(t,e){return t+e},0)}var Tp=Object.freeze({__proto__:null,padStartWidthZeros:Or,createArrayOfNumbers:Ja,cleanNumber:Ep,decToHex:_p,formatNumberTwoDecimalPlacesAndCommas:Rp,formatNumberCommas:Mn,sum:Op}),In=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i};function Xe(n,t,e){if(t===void 0&&(t=!0),e===void 0&&(e="-"),!n)return null;var r=[n.getFullYear(),n.getMonth()+1,n.getDate()].map(function(o){return Or(o,2)}).join(e);return t&&(r+=" "+[n.getHours(),n.getMinutes(),n.getSeconds()].map(function(o){return Or(o,2)}).join(":")),r}var xn=function(n){if(n>3&&n<21)return"th";var t=n%10;switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Tr(n,t){t===void 0&&(t="YYYY-MM-DD");var e=Or(n.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i={YYYY:function(){return e.slice(e.length-4,e.length)},YY:function(){return e.slice(e.length-2,e.length)},Y:function(){return"".concat(n.getFullYear())},MMMM:function(){return r[n.getMonth()]},MMM:function(){return r[n.getMonth()].slice(0,3)},MM:function(){return Or(n.getMonth()+1,2)},Mo:function(){return"".concat(n.getMonth()+1).concat(xn(n.getMonth()+1))},M:function(){return"".concat(n.getMonth()+1)},Do:function(){return"".concat(n.getDate()).concat(xn(n.getDate()))},DD:function(){return Or(n.getDate(),2)},D:function(){return"".concat(n.getDate())},dddd:function(){return o[n.getDay()]},ddd:function(){return o[n.getDay()].slice(0,3)},dd:function(){return o[n.getDay()].slice(0,2)},do:function(){return"".concat(n.getDay()).concat(xn(n.getDay()))},d:function(){return"".concat(n.getDay())}},s=new RegExp(Object.keys(i).join("|"),"g");return t.replace(s,function(a){return a in i?i[a]():a})}function _e(n){if(!n)return null;var t=In(n.split(" "),2),e=t[0],r=t[1];if(!e)return null;var o=e.split("-").map(function(f){return parseInt(f,10)});if(o.filter(function(f){return!isNaN(f)}).length!==3)return null;var i=In(o,3),s=i[0],a=i[1],l=i[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!r||r==="00:00:00")return u;var c=In(r.split(":").map(function(f){return parseInt(f,10)}),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var Pp=Object.freeze({__proto__:null,serialiseDate:Xe,dateToFormattedString:Tr,parseDateTimeFromString:_e}),Dp=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ap=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},qo;function Nn(n,t,e){for(var r=n.parentElement,o=r&&r.firstChild;o;)t&&o.classList.toggle(t,o===n),e&&o.classList.toggle(e,o!==n),o=o.nextSibling}var Za="[tabindex], input, select, button, textarea, [href]",Gn="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Vn(n){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,e="input, select, button, textarea",r=t.call(n,e),o=t.call(n,Gn),i=We(n),s=r&&!o&&i;return s}function $(n,t,e){e===void 0&&(e={});var r=e.skipAriaHidden;n.classList.toggle("ag-hidden",!t),r||zo(n,!t)}function el(n,t,e){e===void 0&&(e={});var r=e.skipAriaHidden;n.classList.toggle("ag-invisible",!t),r||zo(n,!t)}function Pr(n,t){var e="disabled",r=t?function(o){return o.setAttribute(e,"")}:function(o){return o.removeAttribute(e)};r(n),zn(n.querySelectorAll("input"),function(o){return r(o)})}function or(n,t,e){for(var r=0;n;){if(n.classList.contains(t))return!0;if(n=n.parentElement,typeof e=="number"){if(++r>e)break}else if(n===e)break}return!1}function Bt(n){var t=window.getComputedStyle(n),e=t.height,r=t.width,o=t.borderTopWidth,i=t.borderRightWidth,s=t.borderBottomWidth,a=t.borderLeftWidth,l=t.paddingTop,u=t.paddingRight,c=t.paddingBottom,p=t.paddingLeft,d=t.marginTop,h=t.marginRight,f=t.marginBottom,y=t.marginLeft,m=t.boxSizing;return{height:parseFloat(e||"0"),width:parseFloat(r||"0"),borderTopWidth:parseFloat(o||"0"),borderRightWidth:parseFloat(i||"0"),borderBottomWidth:parseFloat(s||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(l||"0"),paddingRight:parseFloat(u||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(p||"0"),marginTop:parseFloat(d||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(f||"0"),marginLeft:parseFloat(y||"0"),boxSizing:m}}function qr(n){var t=Bt(n);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function ir(n){var t=Bt(n);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function Hn(n){var t=Bt(n),e=t.marginBottom+t.marginTop;return Math.ceil(n.offsetHeight+e)}function Qr(n){var t=Bt(n),e=t.marginLeft+t.marginRight;return Math.ceil(n.offsetWidth+e)}function Bn(n){var t=n.getBoundingClientRect(),e=Bt(n),r=e.borderTopWidth,o=e.borderLeftWidth,i=e.borderRightWidth,s=e.borderBottomWidth;return{top:t.top+(r||0),left:t.left+(o||0),right:t.right+(i||0),bottom:t.bottom+(s||0)}}function Xr(){if(typeof qo=="boolean")return qo;var n=document.createElement("div");return n.style.direction="rtl",n.style.width="1px",n.style.height="1px",n.style.position="fixed",n.style.top="0px",n.style.overflow="hidden",n.dir="rtl",n.innerHTML=`
+For more info see: https://www.ag-grid.com/javascript-grid/packages/`);return er(function(){console.warn(s)},i),!1},n.__warnEnterpriseChartDisabled=function(t){var e="ag-charts-enterprise",r=e+":"+t,o="https://ag-grid.com/javascript-data-grid/integrated-charts/",i="AG Grid: the '".concat(t,"' chart type is not supported in AG Charts Community. See ").concat(o," for more details.");er(function(){console.warn(i)},r)},n.__isRegistered=function(t,e){var r;return!!n.globalModulesMap[t]||!!(!((r=n.gridModulesMap[e])===null||r===void 0)&&r[t])},n.__getRegisteredModules=function(t){return fa(fa([],Kr(Jt(n.globalModulesMap)),!1),Kr(Jt(n.gridModulesMap[t]||{})),!1)},n.__getGridRegisteredModules=function(t){var e;return Jt((e=n.gridModulesMap[t])!==null&&e!==void 0?e:{})||[]},n.__isPackageBased=function(){return!n.moduleBased},n.globalModulesMap={},n.gridModulesMap={},n.areGridScopedModules=!1,n}(),Dc=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Ac=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r> creating ag-Application Context"),this.createBeans();var r=this.getBeanInstances();this.wireBeans(r),this.logger.log(">> ag-Application Context ready - component is alive")}}return n.prototype.getBeanInstances=function(){return Jt(this.beanWrappers).map(function(t){return t.beanInstance})},n.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},n.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),P(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},n.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),ye(this.beanWrappers,function(r,o){var i;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(i=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var s=t.getBeansForParameters(i,o.bean.name),a=new(o.bean.bind.apply(o.bean,Ac([null],Dc(s),!1)));o.beanInstance=a});var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: ".concat(e))},n.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var r=void 0;t.prototype.constructor?r=Vo(t.prototype.constructor):r=""+t,console.error("Context item ".concat(r," is not a bean"));return}var o={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=o},n.prototype.autoWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){var s=o.agClassAttributes;s&&s.forEach(function(a){var l=e.lookupBeanInstance(i,a.beanName,a.optional);r[a.attributeName]=l})})})},n.prototype.methodWireBeans=function(t){var e=this;t.forEach(function(r){e.forEachMetaDataInHierarchy(r,function(o,i){ye(o.autowireMethods,function(s,a){if(s!=="agConstructor"){var l=e.getBeansForParameters(a,i);r[s].apply(r,l)}})})})},n.prototype.forEachMetaDataInHierarchy=function(t,e){for(var r=Object.getPrototypeOf(t);r!=null;){var o=r.constructor;if(o.hasOwnProperty("__agBeanMetaData")){var i=o.__agBeanMetaData,s=this.getBeanName(o);e(i,s)}r=Object.getPrototypeOf(r)}},n.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString(),r=e.substring(9,e.indexOf("("));return r},n.prototype.getBeansForParameters=function(t,e){var r=this,o=[];return t&&ye(t,function(i,s){var a=r.lookupBeanInstance(e,s);o[Number(i)]=a}),o},n.prototype.lookupBeanInstance=function(t,e,r){if(r===void 0&&(r=!1),this.destroyed)return this.logger.log("AG Grid: bean reference ".concat(e," is used after the grid is destroyed!")),null;if(e==="context")return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var o=this.beanWrappers[e];return o?o.beanInstance:(r||console.error("AG Grid: unable to find bean reference ".concat(e," while initialising ").concat(t)),null)},n.prototype.callLifeCycleMethods=function(t,e){var r=this;t.forEach(function(o){return r.callLifeCycleMethodsOnBean(o,e)})},n.prototype.callLifeCycleMethodsOnBean=function(t,e,r){var o={};this.forEachMetaDataInHierarchy(t,function(s){var a=s[e];a&&a.forEach(function(l){l!=r&&(o[l]=!0)})});var i=Object.keys(o);i.forEach(function(s){return t[s]()})},n.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},n.prototype.destroy=function(){if(!this.destroyed){this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,X.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}},n.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},n.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach(function(r){e.callLifeCycleMethodsOnBean(r,"preDestroyMethods","destroy");var o=r;typeof o.destroy=="function"&&o.destroy()}),[]):[]},n.prototype.isDestroyed=function(){return this.destroyed},n.prototype.getGridId=function(){return this.contextParams.gridId},n}();function va(n,t,e){var r=tr(n.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function F(n,t,e){var r=tr(n.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function we(n,t,e){var r=tr(n.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function x(n){return function(t){var e=tr(t);e.beanName=n}}function v(n){return function(t,e,r){ga(t,n,!1,t,e,null)}}function Y(n){return function(t,e,r){ga(t,n,!0,t,e,null)}}function ga(n,t,e,r,o,i){if(t===null){console.error("AG Grid: Autowired name should not be null");return}if(typeof i=="number"){console.error("AG Grid: Autowired should be on an attribute");return}var s=tr(n.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:o,beanName:t,optional:e})}function Ye(n){return function(t,e,r){var o=typeof t=="function"?t:t.constructor,i;if(typeof r=="number"){var s=void 0;e?(i=tr(o),s=e):(i=tr(o),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][r]=n}}}function tr(n){return n.hasOwnProperty("__agBeanMetaData")||(n.__agBeanMetaData={}),n.__agBeanMetaData}var ya=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Bo=function(n,t){return function(e,r){t(e,r,n)}},xt=function(){function n(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return n.prototype.setBeans=function(t,e,r,o){if(r===void 0&&(r=null),o===void 0&&(o=null),this.frameworkOverrides=e,this.gridOptionsService=t,r){var i=t.useAsyncEvents();this.addGlobalListener(r,i)}o&&this.addGlobalListener(o,!1)},n.prototype.setFrameworkOverrides=function(t){this.frameworkOverrides=t},n.prototype.getListeners=function(t,e,r){var o=e?this.allAsyncListeners:this.allSyncListeners,i=o.get(t);return!i&&r&&(i=new Set,o.set(t,i)),i},n.prototype.noRegisteredListenersExist=function(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0},n.prototype.addEventListener=function(t,e,r){r===void 0&&(r=!1),this.getListeners(t,r,!0).add(e)},n.prototype.removeEventListener=function(t,e,r){r===void 0&&(r=!1);var o=this.getListeners(t,r,!1);if(o&&(o.delete(e),o.size===0)){var i=r?this.allAsyncListeners:this.allSyncListeners;i.delete(t)}},n.prototype.addGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},n.prototype.removeGlobalListener=function(t,e){e===void 0&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},n.prototype.dispatchEvent=function(t){var e=t;this.gridOptionsService&&this.gridOptionsService.addGridCommonParams(e),this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},n.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},n.prototype.dispatchToListeners=function(t,e){var r=this,o,i=t.type;if(e&&"event"in t){var s=t.event;s instanceof Event&&(t.eventPath=s.composedPath())}var a=function(p,d){return p.forEach(function(h){if(d.has(h)){var f=r.frameworkOverrides?function(){return r.frameworkOverrides.wrapIncoming(function(){return h(t)})}:function(){return h(t)};e?r.dispatchAsync(f):f()}})},l=(o=this.getListeners(i,e,!1))!==null&&o!==void 0?o:new Set,u=new Set(l);u.size>0&&a(u,l);var c=new Set(e?this.globalAsyncListeners:this.globalSyncListeners);c.forEach(function(p){var d=r.frameworkOverrides?function(){return r.frameworkOverrides.wrapIncoming(function(){return p(i,t)})}:function(){return p(i,t)};e?r.dispatchAsync(d):d()})},n.prototype.dispatchAsync=function(t){var e=this;this.asyncFunctionsQueue.push(t),this.scheduled||(this.frameworkOverrides.wrapIncoming(function(){window.setTimeout(e.flushAsyncQueue.bind(e),0)}),this.scheduled=!0)},n.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach(function(e){return e()})},ya([Bo(0,Ye("gridOptionsService")),Bo(1,Ye("frameworkOverrides")),Bo(2,Ye("globalEventListener")),Bo(3,Ye("globalSyncEventListener"))],n.prototype,"setBeans",null),n=ya([x("eventService")],n),n}(),tn=function(){function n(t){this.frameworkOverrides=t,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}return n.prototype.wrap=function(t){var e=this,r=t;return this.frameworkOverrides.shouldWrapOutgoing&&(r=function(o){e.frameworkOverrides.wrapOutgoing(function(){return t(o)})},this.wrappedListeners.set(t,r)),r},n.prototype.wrapGlobal=function(t){var e=this,r=t;return this.frameworkOverrides.shouldWrapOutgoing&&(r=function(o,i){e.frameworkOverrides.wrapOutgoing(function(){return t(o,i)})},this.wrappedGlobalListeners.set(t,r)),r},n.prototype.unwrap=function(t){var e;return(e=this.wrappedListeners.get(t))!==null&&e!==void 0?e:t},n.prototype.unwrapGlobal=function(t){var e;return(e=this.wrappedGlobalListeners.get(t))!==null&&e!==void 0?e:t},n}(),$r=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fc={resizable:!0,sortable:!0},Lc=0;function Ca(){return Lc++}var Z=function(){function n(t,e,r,o){this.instanceId=Ca(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new xt,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=e,this.colId=r,this.primary=o,this.setState(t)}return n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setState=function(t){t.sort!==void 0?(t.sort==="asc"||t.sort==="desc")&&(this.sort=t.sort):(t.initialSort==="asc"||t.initialSort==="desc")&&(this.sort=t.initialSort);var e=t.sortIndex,r=t.initialSortIndex;e!==void 0?e!==null&&(this.sortIndex=e):r!==null&&(this.sortIndex=r);var o=t.hide,i=t.initialHide;o!==void 0?this.visible=!o:this.visible=!i,t.pinned!==void 0?this.setPinned(t.pinned):this.setPinned(t.initialPinned);var s=t.flex,a=t.initialFlex;s!==void 0?this.flex=s:a!==void 0&&(this.flex=a)},n.prototype.setColDef=function(t,e,r){this.colDef=t,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged",r))},n.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},n.prototype.setParent=function(t){this.parent=t},n.prototype.getParent=function(){return this.parent},n.prototype.setOriginalParent=function(t){this.originalParent=t},n.prototype.getOriginalParent=function(){return this.originalParent},n.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()},n.prototype.initDotNotation=function(){var t=this.gridOptionsService.get("suppressFieldDotNotation");this.fieldContainsDots=P(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=P(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},n.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},n.prototype.initTooltip=function(){this.tooltipEnabled=P(this.colDef.tooltipField)||P(this.colDef.tooltipValueGetter)||P(this.colDef.tooltipComponent)},n.prototype.resetActualWidth=function(t){var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},n.prototype.isEmptyGroup=function(){return!1},n.prototype.isRowGroupDisplayed=function(t){if(H(this.colDef)||H(this.colDef.showRowGroup))return!1;var e=this.colDef.showRowGroup===!0,r=this.colDef.showRowGroup===t;return e||r},n.prototype.isPrimary=function(){return this.primary},n.prototype.isFilterAllowed=function(){var t=!!this.colDef.filter;return t},n.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},n.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},n.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},n.prototype.addEventListener=function(t,e){var r,o;this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new tn(this.frameworkOverrides));var i=(o=(r=this.frameworkEventListenerService)===null||r===void 0?void 0:r.wrap(e))!==null&&o!==void 0?o:e;this.eventService.addEventListener(t,i)},n.prototype.removeEventListener=function(t,e){var r,o,i=(o=(r=this.frameworkEventListenerService)===null||r===void 0?void 0:r.unwrap(e))!==null&&o!==void 0?o:e;this.eventService.removeEventListener(t,i)},n.prototype.createColumnFunctionCallbackParams=function(t){return this.gridOptionsService.addGridCommonParams({node:t,data:t.data,column:this,colDef:this.colDef})},n.prototype.isSuppressNavigable=function(t){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){var e=this.createColumnFunctionCallbackParams(t),r=this.colDef.suppressNavigable;return r(e)}return!1},n.prototype.isCellEditable=function(t){return t.group&&!this.gridOptionsService.get("enableGroupEdit")?!1:this.isColumnFunc(t,this.colDef.editable)},n.prototype.isSuppressFillHandle=function(){return!!this.colDef.suppressFillHandle},n.prototype.isAutoHeight=function(){return!!this.colDef.autoHeight},n.prototype.isAutoHeaderHeight=function(){return!!this.colDef.autoHeaderHeight},n.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},n.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},n.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},n.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},n.prototype.isResizable=function(){return!!this.getColDefValue("resizable")},n.prototype.getColDefValue=function(t){var e;return(e=this.colDef[t])!==null&&e!==void 0?e:Fc[t]},n.prototype.isColumnFunc=function(t,e){if(typeof e=="boolean")return e;if(typeof e=="function"){var r=this.createColumnFunctionCallbackParams(t),o=e;return o(r)}return!1},n.prototype.setMoving=function(t,e){this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",e))},n.prototype.createColumnEvent=function(t,e){return this.gridOptionsService.addGridCommonParams({type:t,column:this,columns:[this],source:e})},n.prototype.isMoving=function(){return this.moving},n.prototype.getSort=function(){return this.sort},n.prototype.setSort=function(t,e){this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",e))),this.dispatchStateUpdatedEvent("sort")},n.prototype.setMenuVisible=function(t,e){this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",e)))},n.prototype.isMenuVisible=function(){return this.menuVisible},n.prototype.isSortable=function(){return!!this.getColDefValue("sortable")},n.prototype.isSortAscending=function(){return this.sort==="asc"},n.prototype.isSortDescending=function(){return this.sort==="desc"},n.prototype.isSortNone=function(){return H(this.sort)},n.prototype.isSorting=function(){return P(this.sort)},n.prototype.getSortIndex=function(){return this.sortIndex},n.prototype.setSortIndex=function(t){this.sortIndex=t,this.dispatchStateUpdatedEvent("sortIndex")},n.prototype.setAggFunc=function(t){this.aggFunc=t,this.dispatchStateUpdatedEvent("aggFunc")},n.prototype.getAggFunc=function(){return this.aggFunc},n.prototype.getLeft=function(){return this.left},n.prototype.getOldLeft=function(){return this.oldLeft},n.prototype.getRight=function(){return this.left+this.actualWidth},n.prototype.setLeft=function(t,e){this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",e)))},n.prototype.isFilterActive=function(){return this.filterActive},n.prototype.setFilterActive=function(t,e,r){this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",e)));var o=this.createColumnEvent("filterChanged",e);r&&Ve(o,r),this.eventService.dispatchEvent(o)},n.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},n.prototype.setPinned=function(t){t===!0||t==="left"?this.pinned="left":t==="right"?this.pinned="right":this.pinned=null,this.dispatchStateUpdatedEvent("pinned")},n.prototype.setFirstRightPinned=function(t,e){this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",e)))},n.prototype.setLastLeftPinned=function(t,e){this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",e)))},n.prototype.isFirstRightPinned=function(){return this.firstRightPinned},n.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},n.prototype.isPinned=function(){return this.pinned==="left"||this.pinned==="right"},n.prototype.isPinnedLeft=function(){return this.pinned==="left"},n.prototype.isPinnedRight=function(){return this.pinned==="right"},n.prototype.getPinned=function(){return this.pinned},n.prototype.setVisible=function(t,e){var r=t===!0;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",e))),this.dispatchStateUpdatedEvent("hide")},n.prototype.isVisible=function(){return this.visible},n.prototype.isSpanHeaderHeight=function(){var t=this.getColDef();return!t.suppressSpanHeaderHeight&&!t.autoHeaderHeight},n.prototype.getColumnGroupPaddingInfo=function(){var t=this.getParent();if(!t||!t.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var e=t.getPaddingLevel()+1,r=!0;t;){if(!t.isPadding()){r=!1;break}t=t.getParent()}return{numberOfParents:e,isSpanningTotal:r}},n.prototype.getColDef=function(){return this.colDef},n.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},n.prototype.getColId=function(){return this.colId},n.prototype.getId=function(){return this.colId},n.prototype.getUniqueId=function(){return this.colId},n.prototype.getDefinition=function(){return this.colDef},n.prototype.getActualWidth=function(){return this.actualWidth},n.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},n.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},n.prototype.createBaseColDefParams=function(t){var e=this.gridOptionsService.addGridCommonParams({node:t,data:t.data,colDef:this.colDef,column:this});return e},n.prototype.getColSpan=function(t){if(H(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),r=this.colDef.colSpan(e);return Math.max(r,1)},n.prototype.getRowSpan=function(t){if(H(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),r=this.colDef.rowSpan(e);return Math.max(r,1)},n.prototype.setActualWidth=function(t,e,r){r===void 0&&(r=!1),this.minWidth!=null&&(t=Math.max(t,this.minWidth)),this.maxWidth!=null&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&e!=="flex"&&e!=="gridInitializing"&&(this.flex=null),r||this.fireColumnWidthChangedEvent(e)),this.dispatchStateUpdatedEvent("width")},n.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",t))},n.prototype.isGreaterThanMax=function(t){return this.maxWidth!=null?t>this.maxWidth:!1},n.prototype.getMinWidth=function(){return this.minWidth},n.prototype.getMaxWidth=function(){return this.maxWidth},n.prototype.getFlex=function(){return this.flex||0},n.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t),this.dispatchStateUpdatedEvent("flex")},n.prototype.setMinimum=function(t){P(this.minWidth)&&this.setActualWidth(this.minWidth,t)},n.prototype.setRowGroupActive=function(t,e){this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",e))),this.dispatchStateUpdatedEvent("rowGroup")},n.prototype.isRowGroupActive=function(){return this.rowGroupActive},n.prototype.setPivotActive=function(t,e){this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",e))),this.dispatchStateUpdatedEvent("pivot")},n.prototype.isPivotActive=function(){return this.pivotActive},n.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},n.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},n.prototype.setValueActive=function(t,e){this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",e)))},n.prototype.isValueActive=function(){return this.aggregationActive},n.prototype.isAllowPivot=function(){return this.colDef.enablePivot===!0},n.prototype.isAllowValue=function(){return this.colDef.enableValue===!0},n.prototype.isAllowRowGroup=function(){return this.colDef.enableRowGroup===!0},n.prototype.getMenuTabs=function(t){V("As of v31.1, 'getMenuTabs' is deprecated. Use 'getColDef().menuTabs ?? defaultValues' instead.");var e=this.getColDef().menuTabs;return e==null&&(e=t),e},n.prototype.dispatchStateUpdatedEvent=function(t){this.eventService.dispatchEvent({type:n.EVENT_STATE_UPDATED,key:t})},n.EVENT_MOVING_CHANGED="movingChanged",n.EVENT_LEFT_CHANGED="leftChanged",n.EVENT_WIDTH_CHANGED="widthChanged",n.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",n.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",n.EVENT_VISIBLE_CHANGED="visibleChanged",n.EVENT_FILTER_CHANGED="filterChanged",n.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",n.EVENT_SORT_CHANGED="sortChanged",n.EVENT_COL_DEF_CHANGED="colDefChanged",n.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",n.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",n.EVENT_PIVOT_CHANGED="columnPivotChanged",n.EVENT_VALUE_CHANGED="columnValueChanged",n.EVENT_STATE_UPDATED="columnStateUpdated",$r([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),$r([v("columnUtils")],n.prototype,"columnUtils",void 0),$r([v("columnHoverService")],n.prototype,"columnHoverService",void 0),$r([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),$r([F],n.prototype,"initialise",null),n}(),Mc=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ie=function(){function n(t,e,r,o){this.localEventService=new xt,this.expandable=!1,this.instanceId=Ca(),this.expandableListenerRemoveCallback=null,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=r,this.level=o}return n.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},n.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setOriginalParent=function(t){this.originalParent=t},n.prototype.getOriginalParent=function(){return this.originalParent},n.prototype.getLevel=function(){return this.level},n.prototype.isVisible=function(){return this.children?this.children.some(function(t){return t.isVisible()}):!1},n.prototype.isPadding=function(){return this.padding},n.prototype.setExpanded=function(t){this.expanded=t===void 0?!1:t;var e={type:n.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(e)},n.prototype.isExpandable=function(){return this.expandable},n.prototype.isExpanded=function(){return this.expanded},n.prototype.getGroupId=function(){return this.groupId},n.prototype.getId=function(){return this.getGroupId()},n.prototype.setChildren=function(t){this.children=t},n.prototype.getChildren=function(){return this.children},n.prototype.getColGroupDef=function(){return this.colGroupDef},n.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},n.prototype.addLeafColumns=function(t){this.children&&this.children.forEach(function(e){e instanceof Z?t.push(e):e instanceof n&&e.addLeafColumns(t)})},n.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},n.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(function(r){return r.addEventListener("visibleChanged",e)}),this.expandableListenerRemoveCallback=function(){t.getLeafColumns().forEach(function(r){return r.removeEventListener("visibleChanged",e)}),t.expandableListenerRemoveCallback=null}},n.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,e=!1,r=!1,o=this.findChildrenRemovingPadding(),i=0,s=o.length;i0}function q(n){if(!(!n||!n.length))return n[n.length-1]}function Tt(n,t,e){return n==null&&t==null?!0:n!=null&&t!=null&&n.length===t.length&&n.every(function(r,o){return e?e(r,t[o]):t[o]===r})}function Nc(n,t){return Tt(n,t)}function ma(n){return n.sort(function(t,e){return t-e})}function Gc(n,t){if(n)for(var e=n.length-2;e>=0;e--){var r=n[e]===t,o=n[e+1]===t;r&&o&&n.splice(e+1,1)}}function rn(n,t){var e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.pop())}function _e(n,t){var e=n.indexOf(t);e>=0&&n.splice(e,1)}function Sa(n,t){for(var e=0;e=0;r--){var o=t[r];Yr(n,o,e)}}function on(n,t,e){wa(n,t),t.slice().reverse().forEach(function(r){return Yr(n,r,e)})}function ot(n,t){return n.indexOf(t)>-1}function Ea(n){return[].concat.apply([],n)}function nn(n,t){t==null||n==null||t.forEach(function(e){return n.push(e)})}function Hc(n){return n.map(zr)}function Bc(n,t){if(n!=null)for(var e=n.length-1;e>=0;e--)t(n[e],e)}var kc=Object.freeze({__proto__:null,existsAndNotEmpty:xc,last:q,areEqual:Tt,shallowCompare:Nc,sortNumerically:ma,removeRepeatsFromArray:Gc,removeFromUnorderedArray:rn,removeFromArray:_e,removeAllFromUnorderedArray:Sa,removeAllFromArray:wa,insertIntoArray:Yr,insertArrayIntoArray:Vc,moveInArray:on,includes:ot,flatten:Ea,pushAll:nn,toStrings:Hc,forEachReverse:Bc}),_a="__ag_Grid_Stop_Propagation",Wc=["touchstart","touchend","touchmove","touchcancel","scroll"],sn={};function it(n){n[_a]=!0}function nt(n){return n[_a]===!0}var an=function(){var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},t=function(e){if(typeof sn[e]=="boolean")return sn[e];var r=document.createElement(n[e]||"div");return e="on"+e,sn[e]=e in r};return t}();function ko(n,t,e){for(var r=t;r;){var o=n.getDomData(r,e);if(o)return o;r=r.parentElement}return null}function Wo(n,t){return!t||!n?!1:Oa(t).indexOf(n)>=0}function Ra(n){for(var t=[],e=n.target;e;)t.push(e),e=e.parentElement;return t}function Oa(n){var t=n;return t.path?t.path:t.composedPath?t.composedPath():Ra(t)}function Ta(n,t,e,r){var o=ot(Wc,e),i=o?{passive:!0}:void 0;n&&n.addEventListener&&n.addEventListener(t,e,r,i)}var jc=Object.freeze({__proto__:null,stopPropagationForAgGrid:it,isStopPropagationForAgGrid:nt,isEventSupported:an,getCtrlForEventTarget:ko,isElementInEventPath:Wo,createEventPath:Ra,getEventPath:Oa,addSafePassiveEventListener:Ta}),rr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},D=function(){function n(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=function(){return!t.destroyed}}return n.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},n.prototype.getContext=function(){return this.context},n.prototype.destroy=function(){this.destroyFunctions.forEach(function(t){return t()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:n.EVENT_DESTROYED})},n.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new xt),this.localEventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},n.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},n.prototype.addManagedListener=function(t,e,r){var o=this;if(!this.destroyed){t instanceof HTMLElement?Ta(this.getFrameworkOverrides(),t,e,r):t.addEventListener(e,r);var i=function(){return t.removeEventListener(e,r),o.destroyFunctions=o.destroyFunctions.filter(function(s){return s!==i}),null};return this.destroyFunctions.push(i),i}},n.prototype.setupGridOptionListener=function(t,e){var r=this;this.gridOptionsService.addEventListener(t,e);var o=function(){return r.gridOptionsService.removeEventListener(t,e),r.destroyFunctions=r.destroyFunctions.filter(function(i){return i!==o}),null};return this.destroyFunctions.push(o),o},n.prototype.addManagedPropertyListener=function(t,e){return this.destroyed?function(){return null}:this.setupGridOptionListener(t,e)},n.prototype.addManagedPropertyListeners=function(t,e){var r=this;if(!this.destroyed){var o=t.join("-")+this.propertyListenerId++,i=function(s){if(s.changeSet){if(s.changeSet&&s.changeSet.id===r.lastChangeSetIdLookup[o])return;r.lastChangeSetIdLookup[o]=s.changeSet.id}var a={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};e(a)};t.forEach(function(s){return r.setupGridOptionListener(s,i)})}},n.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},n.prototype.createManagedBean=function(t,e){var r=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),r},n.prototype.createBean=function(t,e,r){return(e||this.getContext()).createBean(t,r)},n.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},n.prototype.destroyBeans=function(t,e){var r=this;return t&&t.forEach(function(o){return r.destroyBean(o,e)}),[]},n.EVENT_DESTROYED="destroyed",rr([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),rr([v("context")],n.prototype,"context",void 0),rr([v("eventService")],n.prototype,"eventService",void 0),rr([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),rr([v("localeService")],n.prototype,"localeService",void 0),rr([v("environment")],n.prototype,"environment",void 0),rr([we],n.prototype,"destroy",null),n}(),Uc=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),jo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},zc=function(n,t){return function(e,r){t(e,r,n)}},Kc=function(n){Uc(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,r,o,i){var s=new wc,a=this.extractExistingTreeData(o),l=a.existingCols,u=a.existingGroups,c=a.existingColKeys;s.addExistingKeys(c);var p=this.recursivelyCreateColumns(e,0,r,l,s,u,i),d=this.findMaxDept(p,0);this.logger.log("Number of levels for grouped columns is "+d);var h=this.balanceColumnTree(p,0,d,s),f=function(y,C){y instanceof ie&&y.setupExpandable(),y.setOriginalParent(C)};return this.columnUtils.depthFirstOriginalTreeSearch(null,h,f),{columnTree:h,treeDept:d}},t.prototype.extractExistingTreeData=function(e){var r=[],o=[],i=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){if(s instanceof ie){var a=s;o.push(a)}else{var l=s;i.push(l.getId()),r.push(l)}}),{existingCols:r,existingGroups:o,existingColKeys:i}},t.prototype.createForAutoGroups=function(e,r){var o=this;return e.map(function(i){return o.createAutoGroupTreeItem(r,i)})},t.prototype.createAutoGroupTreeItem=function(e,r){for(var o=this.findDepth(e),i=r,s=o-1;s>=0;s--){var a=new ie(null,"FAKE_PATH_".concat(r.getId(),"}_").concat(s),!0,s);this.createBean(a),a.setChildren([i]),i.setOriginalParent(a),i=a}return o===0&&r.setOriginalParent(null),i},t.prototype.findDepth=function(e){for(var r=0,o=e;o&&o[0]&&o[0]instanceof ie;)r++,o=o[0].getChildren();return r},t.prototype.balanceColumnTree=function(e,r,o,i){for(var s=[],a=0;a=r;h--){var f=i.getUniqueKey(null,null),y=this.createMergedColGroupDef(null),C=new ie(y,f,!0,r);this.createBean(C),d&&d.setChildren([C]),d=C,p||(p=d)}if(p&&d){s.push(p);var m=e.some(function(w){return w instanceof ie});if(m){d.setChildren([l]);continue}else{d.setChildren(e);break}}s.push(l)}}return s},t.prototype.findMaxDept=function(e,r){for(var o=r,i=0;i=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},se=function(){function n(t,e,r,o){this.displayedChildren=[],this.localEventService=new xt,this.groupId=e,this.partId=r,this.providedColumnGroup=t,this.pinned=o}return n.createUniqueId=function(t,e){return t+"_"+e},n.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},n.prototype.getParent=function(){return this.parent},n.prototype.setParent=function(t){this.parent=t},n.prototype.getUniqueId=function(){return n.createUniqueId(this.groupId,this.partId)},n.prototype.isEmptyGroup=function(){return this.displayedChildren.length===0},n.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!t||t.length===0?!1:t.every(function(e){return e.isMoving()})},n.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(o){o instanceof n&&o.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsService.get("enableRtl")){var t=q(this.displayedChildren),e=t.getLeft();this.setLeft(e)}else{var r=this.displayedChildren[0].getLeft();this.setLeft(r)}else this.setLeft(null)},n.prototype.getLeft=function(){return this.left},n.prototype.getOldLeft=function(){return this.oldLeft},n.prototype.setLeft=function(t){this.oldLeft=this.left,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_LEFT_CHANGED)))},n.prototype.getPinned=function(){return this.pinned},n.prototype.createAgEvent=function(t){return{type:t}},n.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},n.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},n.prototype.getGroupId=function(){return this.groupId},n.prototype.getPartId=function(){return this.partId},n.prototype.isChildInThisGroupDeepSearch=function(t){var e=!1;return this.children.forEach(function(r){t===r&&(e=!0),r instanceof n&&r.isChildInThisGroupDeepSearch(t)&&(e=!0)}),e},n.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach(function(e){t+=e.getActualWidth()}),t},n.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach(function(e){e.isResizable()&&(t=!0)}),t},n.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach(function(e){t+=e.getMinWidth()||0}),t},n.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},n.prototype.getDisplayedChildren=function(){return this.displayedChildren},n.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},n.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},n.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},n.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},n.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},n.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},n.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},n.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},n.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach(function(e){e instanceof Z?t.push(e):e instanceof n&&e.addDisplayedLeafColumns(t)})},n.prototype.addLeafColumns=function(t){this.children.forEach(function(e){e instanceof Z?t.push(e):e instanceof n&&e.addLeafColumns(t)})},n.prototype.getChildren=function(){return this.children},n.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},n.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},n.prototype.getPaddingLevel=function(){var t=this.getParent();return!this.isPadding()||!t||!t.isPadding()?0:1+t.getPaddingLevel()},n.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var e=this;e!=null&&e.isPadding();)e=e.getParent();var r=e?e.providedColumnGroup.isExpandable():!1;if(!r){this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED));return}this.children.forEach(function(o){var i=o instanceof n&&(!o.displayedChildren||!o.displayedChildren.length);if(!i){var s=o.getColumnGroupShow();switch(s){case"open":e.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case"closed":e.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o);break}}}),this.localEventService.dispatchEvent(this.createAgEvent(n.EVENT_DISPLAYED_CHILDREN_CHANGED))},n.EVENT_LEFT_CHANGED="leftChanged",n.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",$c([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n}(),g=function(){function n(){}return n.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",n.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",n.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",n.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",n.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",n.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",n.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",n.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",n.EVENT_COLUMN_MOVED="columnMoved",n.EVENT_COLUMN_VISIBLE="columnVisible",n.EVENT_COLUMN_PINNED="columnPinned",n.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",n.EVENT_COLUMN_RESIZED="columnResized",n.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",n.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED="suppressMovableColumns",n.EVENT_SUPPRESS_MENU_HIDE_CHANGED="suppressMenuHide",n.EVENT_SUPPRESS_FIELD_DOT_NOTATION="suppressFieldDotNotation",n.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",n.EVENT_COLUMN_HEADER_MOUSE_OVER="columnHeaderMouseOver",n.EVENT_COLUMN_HEADER_MOUSE_LEAVE="columnHeaderMouseLeave",n.EVENT_COLUMN_HEADER_CLICKED="columnHeaderClicked",n.EVENT_COLUMN_HEADER_CONTEXT_MENU="columnHeaderContextMenu",n.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",n.EVENT_ROW_GROUP_OPENED="rowGroupOpened",n.EVENT_ROW_DATA_UPDATED="rowDataUpdated",n.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",n.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",n.EVENT_CHART_CREATED="chartCreated",n.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",n.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",n.EVENT_CHART_DESTROYED="chartDestroyed",n.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",n.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",n.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",n.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",n.EVENT_MODEL_UPDATED="modelUpdated",n.EVENT_CUT_START="cutStart",n.EVENT_CUT_END="cutEnd",n.EVENT_PASTE_START="pasteStart",n.EVENT_PASTE_END="pasteEnd",n.EVENT_FILL_START="fillStart",n.EVENT_FILL_END="fillEnd",n.EVENT_RANGE_DELETE_START="rangeDeleteStart",n.EVENT_RANGE_DELETE_END="rangeDeleteEnd",n.EVENT_UNDO_STARTED="undoStarted",n.EVENT_UNDO_ENDED="undoEnded",n.EVENT_REDO_STARTED="redoStarted",n.EVENT_REDO_ENDED="redoEnded",n.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",n.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",n.EVENT_CELL_CLICKED="cellClicked",n.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",n.EVENT_CELL_MOUSE_DOWN="cellMouseDown",n.EVENT_CELL_CONTEXT_MENU="cellContextMenu",n.EVENT_CELL_VALUE_CHANGED="cellValueChanged",n.EVENT_CELL_EDIT_REQUEST="cellEditRequest",n.EVENT_ROW_VALUE_CHANGED="rowValueChanged",n.EVENT_CELL_FOCUSED="cellFocused",n.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",n.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",n.EVENT_ROW_SELECTED="rowSelected",n.EVENT_SELECTION_CHANGED="selectionChanged",n.EVENT_TOOLTIP_SHOW="tooltipShow",n.EVENT_TOOLTIP_HIDE="tooltipHide",n.EVENT_CELL_KEY_DOWN="cellKeyDown",n.EVENT_CELL_MOUSE_OVER="cellMouseOver",n.EVENT_CELL_MOUSE_OUT="cellMouseOut",n.EVENT_FILTER_CHANGED="filterChanged",n.EVENT_FILTER_MODIFIED="filterModified",n.EVENT_FILTER_OPENED="filterOpened",n.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",n.EVENT_SORT_CHANGED="sortChanged",n.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",n.EVENT_ROW_CLICKED="rowClicked",n.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",n.EVENT_GRID_READY="gridReady",n.EVENT_GRID_PRE_DESTROYED="gridPreDestroyed",n.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",n.EVENT_VIEWPORT_CHANGED="viewportChanged",n.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",n.EVENT_FIRST_DATA_RENDERED="firstDataRendered",n.EVENT_DRAG_STARTED="dragStarted",n.EVENT_DRAG_STOPPED="dragStopped",n.EVENT_CHECKBOX_CHANGED="checkboxChanged",n.EVENT_ROW_EDITING_STARTED="rowEditingStarted",n.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",n.EVENT_CELL_EDITING_STARTED="cellEditingStarted",n.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",n.EVENT_BODY_SCROLL="bodyScroll",n.EVENT_BODY_SCROLL_END="bodyScrollEnd",n.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",n.EVENT_PAGINATION_CHANGED="paginationChanged",n.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",n.EVENT_STORE_REFRESHED="storeRefreshed",n.EVENT_STATE_UPDATED="stateUpdated",n.EVENT_COLUMN_MENU_VISIBLE_CHANGED="columnMenuVisibleChanged",n.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",n.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED="columnContainerWidthChanged",n.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",n.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",n.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",n.EVENT_FLASH_CELLS="flashCells",n.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",n.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",n.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",n.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",n.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",n.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",n.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",n.EVENT_ROW_DRAG_ENTER="rowDragEnter",n.EVENT_ROW_DRAG_MOVE="rowDragMove",n.EVENT_ROW_DRAG_LEAVE="rowDragLeave",n.EVENT_ROW_DRAG_END="rowDragEnd",n.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",n.EVENT_POPUP_TO_FRONT="popupToFront",n.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",n.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",n.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",n.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",n.EVENT_STORE_UPDATED="storeUpdated",n.EVENT_FILTER_DESTROYED="filterDestroyed",n.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",n.EVENT_ROW_COUNT_READY="rowCountReady",n.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",n.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",n.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",n.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",n.EVENT_SIDE_BAR_UPDATED="sideBarUpdated",n}(),Pa=function(){function n(){this.existingIds={}}return n.prototype.getInstanceIdForKey=function(t){var e=this.existingIds[t],r;return typeof e!="number"?r=0:r=e+1,this.existingIds[t]=r,r},n}(),Yc=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ln=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Er="ag-Grid-AutoColumn",qc=function(n){Yc(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createAutoGroupColumns=function(e){var r=this,o=[],i=this.gridOptionsService.get("treeData"),s=this.gridOptionsService.isGroupMultiAutoColumn();return i&&s&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),s=!1),s?e.forEach(function(a,l){o.push(r.createOneAutoGroupColumn(a,l))}):o.push(this.createOneAutoGroupColumn()),o},t.prototype.updateAutoGroupColumns=function(e,r){var o=this;e.forEach(function(i,s){return o.updateOneAutoGroupColumn(i,s,r)})},t.prototype.createOneAutoGroupColumn=function(e,r){var o;e?o="".concat(Er,"-").concat(e.getId()):o=Er;var i=this.createAutoGroupColDef(o,e,r);i.colId=o;var s=new Z(i,null,o,!0);return this.context.createBean(s),s},t.prototype.updateOneAutoGroupColumn=function(e,r,o){var i=e.getColDef(),s=typeof i.showRowGroup=="string"?i.showRowGroup:void 0,a=s!=null?this.columnModel.getPrimaryColumn(s):void 0,l=this.createAutoGroupColDef(e.getId(),a??void 0,r);e.setColDef(l,null,o),this.columnFactory.applyColumnState(e,l,o)},t.prototype.createAutoGroupColDef=function(e,r,o){var i=this.createBaseColDef(r),s=this.gridOptionsService.get("autoGroupColumnDef");if(Ve(i,s),i=this.columnFactory.addColumnDefaultAndTypes(i,e),!this.gridOptionsService.get("treeData")){var a=H(i.field)&&H(i.valueGetter)&&H(i.filterValueGetter)&&i.filter!=="agGroupColumnFilter";a&&(i.filter=!1)}o&&o>0&&(i.headerCheckboxSelection=!1);var l=this.gridOptionsService.isColumnsSortingCoupledToGroup(),u=i.valueGetter||i.field!=null;return l&&!u&&(i.sortIndex=void 0,i.initialSort=void 0),i},t.prototype.createBaseColDef=function(e){var r=this.gridOptionsService.get("autoGroupColumnDef"),o=this.localeService.getLocaleTextFunc(),i={headerName:o("group","Group")},s=r&&(r.cellRenderer||r.cellRendererSelector);if(s||(i.cellRenderer="agGroupCellRenderer"),e){var a=e.getColDef();Object.assign(i,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:a.headerValueGetter}),a.cellRenderer&&Object.assign(i,{cellRendererParams:{innerRenderer:a.cellRenderer,innerRendererParams:a.cellRendererParams}}),i.showRowGroup=e.getColId()}else i.showRowGroup=!0;return i},ln([v("columnModel")],t.prototype,"columnModel",void 0),ln([v("columnFactory")],t.prototype,"columnFactory",void 0),t=ln([x("autoGroupColService")],t),t}(D),Qc=/[&<>"']/g,Xc={"&":"&","<":"<",">":">",'"':""","'":"'"};function Zc(n){var t=String.fromCharCode;function e(p){var d=[];if(!p)return[];for(var h=p.length,f=0,y,C;f=55296&&y<=56319&&f=55296&&p<=57343)throw Error("Lone surrogate U+"+p.toString(16).toUpperCase()+" is not a scalar value")}function o(p,d){return t(p>>d&63|128)}function i(p){if(p>=0&&p<=31&&p!==10){var d=p.toString(16).toUpperCase(),h=d.padStart(4,"0");return"_x".concat(h,"_")}if(!(p&4294967168))return t(p);var f="";return p&4294965248?p&4294901760?p&4292870144||(f=t(p>>18&7|240),f+=o(p,12),f+=o(p,6)):(r(p),f=t(p>>12&15|224),f+=o(p,6)):f=t(p>>6&31|192),f+=t(p&63|128),f}for(var s=e(n),a=s.length,l=-1,u,c="";++l1?o.substring(1,o.length):"")}).join(" ")}function Aa(n){return n.replace(/[A-Z]/g,function(t){return"-".concat(t.toLocaleLowerCase())})}var ep=Object.freeze({__proto__:null,utf8_encode:Zc,capitalise:Jc,escapeString:ae,camelCaseToHumanText:Da,camelCaseToHyphenated:Aa});function Nt(n){var t=new Map;return n.forEach(function(e){return t.set(e[0],e[1])}),t}function tp(n,t){var e=new Map;return n.forEach(function(r){return e.set(t(r),r)}),e}function rp(n){var t=[];return n.forEach(function(e,r){return t.push(r)}),t}var op=Object.freeze({__proto__:null,convertToMap:Nt,mapById:tp,keys:rp}),ip=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ve=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},np=function(n,t){return function(e,r){t(e,r,n)}},sp=function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},ke=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ap=function(n){ip(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.viewportRowLeft={},e.viewportRowRight={},e.viewportRowCenter={},e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.changeEventsDispatching=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.shouldQueueResizeOperations=!1,e.resizeOperationQueue=[],e}return t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.get("suppressColumnVirtualisation");var r=this.gridOptionsService.get("pivotMode");this.isPivotSettingAllowed(r)&&(this.pivotMode=r),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],function(o){return e.buildAutoGroupColumns(_r(o.source))}),this.addManagedPropertyListener("autoGroupColumnDef",function(o){return e.onAutoGroupColumnDefChanged(_r(o.source))}),this.addManagedPropertyListeners(["defaultColDef","columnTypes","suppressFieldDotNotation"],function(o){return e.onSharedColDefChanged(_r(o.source))}),this.addManagedPropertyListener("pivotMode",function(o){return e.setPivotMode(e.gridOptionsService.get("pivotMode"),_r(o.source))}),this.addManagedListener(this.eventService,g.EVENT_FIRST_DATA_RENDERED,function(){return e.onFirstDataRendered()})},t.prototype.buildAutoGroupColumns=function(e){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns(e))},t.prototype.onAutoGroupColumnDefChanged=function(e){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e)},t.prototype.onSharedColDefChanged=function(e){this.gridColumns&&(this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns,e),this.createColumnsFromColumnDefs(!0,e))},t.prototype.setColumnDefs=function(e,r){var o=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(o,r)},t.prototype.recreateColumnDefs=function(e){this.onSharedColDefChanged(e)},t.prototype.destroyOldColumns=function(e,r){var o={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(s){o[s.getInstanceId()]=s}),r&&this.columnUtils.depthFirstOriginalTreeSearch(null,r,function(s){o[s.getInstanceId()]=null});var i=Object.values(o).filter(function(s){return s!=null});this.destroyBeans(i)}},t.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},t.prototype.createColumnsFromColumnDefs=function(e,r){var o=this,i=e?this.compareColumnStatesAndDispatchEvents(r):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var s=this.primaryColumns,a=this.primaryColumnTree,l=this.columnFactory.createColumnTree(this.columnDefs,!0,a,r);this.destroyOldColumns(this.primaryColumnTree,l.columnTree),this.primaryColumnTree=l.columnTree,this.primaryHeaderRowCount=l.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(p){return o.primaryColumnsMap[p.getId()]=p}),this.extractRowGroupColumns(r,s),this.extractPivotColumns(r,s),this.extractValueColumns(r,s),this.ready=!0;var u=this.gridColsArePrimary===void 0,c=this.gridColsArePrimary||u||this.autoGroupsNeedBuilding;c&&(this.updateGridColumns(),e&&this.gridColsArePrimary&&!this.gridOptionsService.get("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(r),this.checkViewportColumns()),this.dispatchEverythingChanged(r),this.changeEventsDispatching=!0,i&&i(),this.changeEventsDispatching=!1,this.dispatchNewColumnsLoaded(r)},t.prototype.shouldRowModelIgnoreRefresh=function(){return this.changeEventsDispatching},t.prototype.dispatchNewColumnsLoaded=function(e){var r={type:g.EVENT_NEW_COLUMNS_LOADED,source:e};this.eventService.dispatchEvent(r),e==="gridInitializing"&&this.onColumnsReady()},t.prototype.dispatchEverythingChanged=function(e){var r={type:g.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(r)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,r=this.primaryColumns;if(r){var o=r.filter(function(s){return e.gridColumns.indexOf(s)>=0}),i=this.gridColumns.filter(function(s){return o.indexOf(s)<0});this.gridColumns=ke(ke([],Be(i),!1),Be(o),!1),this.gridColumns=this.placeLockedColumns(this.gridColumns)}},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsService.get("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var r=e,o=[];r!=null;)o.push(r),r=this.getDisplayedColAfter(r);return o},t.prototype.checkViewportColumns=function(e){if(e===void 0&&(e=!1),this.displayedColumnsCenter!=null){var r=this.extractViewport();if(r){var o={type:g.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(o)}}},t.prototype.setViewportPosition=function(e,r,o){o===void 0&&(o=!1),(e!==this.scrollWidth||r!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=r,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(o))},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return e&&this.gridOptionsService.get("treeData")?(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1):!0},t.prototype.setPivotMode=function(e,r){if(!(e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode))&&(this.pivotMode=e,!!this.gridColumns)){this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(r);var o={type:g.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.getSecondaryPivotColumn=function(e,r){if(H(this.secondaryColumns))return null;var o=this.getPrimaryColumn(r),i=null;return this.secondaryColumns.forEach(function(s){var a=s.getColDef().pivotKeys,l=s.getColDef().pivotValueColumn,u=Tt(a,e),c=l===o;u&&c&&(i=s)}),i},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var r,o;this.gridOptionsService.get("enableRtl")?(r=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?q(this.displayedColumnsRight):null):(r=this.displayedColumnsLeft?q(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(i){i.setLastLeftPinned(i===r,e),i.setFirstRightPinned(i===o,e)})},t.prototype.autoSizeColumns=function(e){var r=this;if(this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return r.autoSizeColumns(e)});return}var o=e.columns,i=e.skipHeader,s=e.skipHeaderGroups,a=e.stopAtGroup,l=e.source,u=l===void 0?"api":l;this.animationFrameService.flushAllFrames();for(var c=[],p=-1,d=i??this.gridOptionsService.get("skipHeaderOnAutoSize"),h=s??d;p!==0;)p=0,this.actionOnGridColumns(o,function(f){if(c.indexOf(f)>=0)return!1;var y=r.autoWidthCalculator.getPreferredWidthForColumn(f,d);if(y>0){var C=r.normaliseColumnWidth(f,y);f.setActualWidth(C,u),c.push(f),p++}return!0},u);h||this.autoSizeColumnGroupsByColumns(o,u,a),this.dispatchColumnResizedEvent(c,!0,"autosizeColumns")},t.prototype.dispatchColumnResizedEvent=function(e,r,o,i){if(i===void 0&&(i=null),e&&e.length){var s={type:g.EVENT_COLUMN_RESIZED,columns:e,column:e.length===1?e[0]:null,flexColumns:i,finished:r,source:o};this.eventService.dispatchEvent(s)}},t.prototype.dispatchColumnChangedEvent=function(e,r,o){var i={type:e,columns:r,column:r&&r.length==1?r[0]:null,source:o};this.eventService.dispatchEvent(i)},t.prototype.dispatchColumnMovedEvent=function(e){var r=e.movedColumns,o=e.source,i=e.toIndex,s=e.finished,a={type:g.EVENT_COLUMN_MOVED,columns:r,column:r&&r.length===1?r[0]:null,toIndex:i,finished:s,source:o};this.eventService.dispatchEvent(a)},t.prototype.dispatchColumnPinnedEvent=function(e,r){if(e.length){var o=e.length===1?e[0]:null,i=this.getCommonValue(e,function(a){return a.getPinned()}),s={type:g.EVENT_COLUMN_PINNED,pinned:i??null,columns:e,column:o,source:r};this.eventService.dispatchEvent(s)}},t.prototype.dispatchColumnVisibleEvent=function(e,r){if(e.length){var o=e.length===1?e[0]:null,i=this.getCommonValue(e,function(a){return a.isVisible()}),s={type:g.EVENT_COLUMN_VISIBLE,visible:i,columns:e,column:o,source:r};this.eventService.dispatchEvent(s)}},t.prototype.autoSizeColumn=function(e,r,o){e&&this.autoSizeColumns({columns:[e],skipHeader:o,skipHeaderGroups:!0,source:r})},t.prototype.autoSizeColumnGroupsByColumns=function(e,r,o){var i,s,a,l,u=new Set,c=this.getGridColumns(e);c.forEach(function(E){for(var S=E.getParent();S&&S!=o;)S.isPadding()||u.add(S),S=S.getParent()});var p,d=[];try{for(var h=un(u),f=h.next();!f.done;f=h.next()){var y=f.value;try{for(var C=(a=void 0,un(this.ctrlsService.getHeaderRowContainerCtrls())),m=C.next();!m.done;m=C.next()){var w=m.value;if(p=w.getHeaderCtrlForColumn(y),p)break}}catch(E){a={error:E}}finally{try{m&&!m.done&&(l=C.return)&&l.call(C)}finally{if(a)throw a.error}}p&&p.resizeLeafColumnsToFit(r)}}catch(E){i={error:E}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return d},t.prototype.autoSizeAllColumns=function(e,r){var o=this;if(this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return o.autoSizeAllColumns(e,r)});return}var i=this.getAllDisplayedColumns();this.autoSizeColumns({columns:i,skipHeader:r,source:e})},t.prototype.getColumnsFromTree=function(e){var r=[],o=function(i){for(var s=0;s=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.isColSpanActive=function(){return this.colSpanActive},t.prototype.getDisplayedColumnsForRow=function(e,r,o,i){for(var s=[],a=null,l=function(p){var d=r[p],h=r.length-p,f=Math.min(d.getColSpan(e),h),y=[d];if(f>1){for(var C=f-1,m=1;m<=C;m++)y.push(r[p+m]);p+=C}var w;if(o?(w=!1,y.forEach(function(S){o(S)&&(w=!0)})):w=!0,w){if(s.length===0&&a){var E=i?i(d):!1;E&&s.push(a)}s.push(d)}a=d,u=p},u,c=0;cr.viewportLeft},i=this.isColumnVirtualisationSuppressed()?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,i,o)},t.prototype.isColumnAtEdge=function(e,r){var o=this.getAllDisplayedColumns();if(!o.length)return!1;var i=r==="first",s;if(e instanceof se){var a=e.getDisplayedLeafColumns();if(!a.length)return!1;s=i?a[0]:q(a)}else s=e;return(i?o[0]:q(o))===s},t.prototype.getAriaColumnIndex=function(e){var r;return e instanceof se?r=e.getLeafColumns()[0]:r=e,this.ariaOrderColumns.indexOf(r)+1},t.prototype.isColumnInHeaderViewport=function(e){return e.isAutoHeaderHeight()?!0:this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var r=e.getLeft()||0,o=r+e.getActualWidth(),i=this.viewportLeft-200,s=this.viewportRight+200,a=rs&&o>s;return!a&&!l},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,r,o,i,s,a){var l=this;if(!(!e||Ge(e))){var u=!1;if(e.forEach(function(p){if(p){var d=l.getPrimaryColumn(p);if(d){if(o){if(r.indexOf(d)>=0)return;r.push(d)}else{if(r.indexOf(d)<0)return;_e(r,d)}i(d),u=!0}}}),!!u){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a);var c={type:s,columns:r,column:r.length===1?r[0]:null,source:a};this.eventService.dispatchEvent(c)}}},t.prototype.setRowGroupColumns=function(e,r){this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,g.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),r)},t.prototype.setRowGroupActive=function(e,r,o){e!==r.isRowGroupActive()&&(r.setRowGroupActive(e,o),e&&!this.gridOptionsService.get("suppressRowGroupHidesColumns")&&this.setColumnsVisible([r],!1,o),!e&&!this.gridOptionsService.get("suppressMakeColumnVisibleAfterUnGroup")&&this.setColumnsVisible([r],!0,o))},t.prototype.addRowGroupColumns=function(e,r){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),g.EVENT_COLUMN_ROW_GROUP_CHANGED,r)},t.prototype.removeRowGroupColumns=function(e,r){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),g.EVENT_COLUMN_ROW_GROUP_CHANGED,r)},t.prototype.addPivotColumns=function(e,r){this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(o){return o.setPivotActive(!0,r)},g.EVENT_COLUMN_PIVOT_CHANGED,r)},t.prototype.setPivotColumns=function(e,r){this.setPrimaryColumnList(e,this.pivotColumns,g.EVENT_COLUMN_PIVOT_CHANGED,!0,function(o,i){i.setPivotActive(o,r)},r)},t.prototype.removePivotColumns=function(e,r){this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(o){return o.setPivotActive(!1,r)},g.EVENT_COLUMN_PIVOT_CHANGED,r)},t.prototype.setPrimaryColumnList=function(e,r,o,i,s,a){var l=this;if(this.gridColumns){var u=new Map;r.forEach(function(c,p){return u.set(c,p)}),r.length=0,P(e)&&e.forEach(function(c){var p=l.getPrimaryColumn(c);p&&r.push(p)}),r.forEach(function(c,p){var d=u.get(c);if(d===void 0){u.set(c,0);return}i&&d!==p||u.delete(c)}),(this.primaryColumns||[]).forEach(function(c){var p=r.indexOf(c)>=0;s(p,c)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a),this.dispatchColumnChangedEvent(o,ke([],Be(u.keys()),!1),a)}},t.prototype.setValueColumns=function(e,r){this.setPrimaryColumnList(e,this.valueColumns,g.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),r)},t.prototype.setValueActive=function(e,r,o){if(e!==r.isValueActive()&&(r.setValueActive(e,o),e&&!r.getAggFunc())){var i=this.aggFuncService.getDefaultAggFunc(r);r.setAggFunc(i)}},t.prototype.addValueColumns=function(e,r){this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),g.EVENT_COLUMN_VALUE_CHANGED,r)},t.prototype.removeValueColumns=function(e,r){this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),g.EVENT_COLUMN_VALUE_CHANGED,r)},t.prototype.normaliseColumnWidth=function(e,r){var o=e.getMinWidth();P(o)&&r0?s+=d:a=!1});var l=o>=i,u=!a||o<=s;return l&&u},t.prototype.resizeColumnSets=function(e){var r=this,o=e.resizeSets,i=e.finished,s=e.source,a=!o||o.every(function(f){return r.checkMinAndMaxWidthsForSet(f)});if(!a){if(i){var l=o&&o.length>0?o[0].columns:null;this.dispatchColumnResizedEvent(l,i,s)}return}var u=[],c=[];o.forEach(function(f){var y=f.width,C=f.columns,m=f.ratios,w={},E={};C.forEach(function(A){return c.push(A)});for(var S=!0,R=0,O=function(){if(R++,R>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";S=!1;var A=[],M=0,N=y;C.forEach(function(W,ee){var oe=E[W.getId()];if(oe)N-=w[W.getId()];else{A.push(W);var J=m[ee];M+=J}});var I=1/M;A.forEach(function(W,ee){var oe=ee===A.length-1,J;oe?J=N:(J=Math.round(m[ee]*y*I),N-=J);var te=W.getMinWidth(),Q=W.getMaxWidth();P(te)&&J0&&J>Q&&(J=Q,E[W.getId()]=!0,S=!0),w[W.getId()]=J})};S;){var b=O();if(b==="break")break}C.forEach(function(A){var M=w[A.getId()],N=A.getActualWidth();N!==M&&(A.setActualWidth(M,s),u.push(A))})});var p=u.length>0,d=[];p&&(d=this.refreshFlexedColumns({resizingCols:c,skipSetLeft:!0}),this.setLeftValues(s),this.updateBodyWidths(),this.checkViewportColumns());var h=c.concat(d);(p||i)&&this.dispatchColumnResizedEvent(h,i,s,d)},t.prototype.setColumnAggFunc=function(e,r,o){if(e){var i=this.getPrimaryColumn(e);i&&(i.setAggFunc(r),this.dispatchColumnChangedEvent(g.EVENT_COLUMN_VALUE_CHANGED,[i],o))}},t.prototype.moveRowGroupColumn=function(e,r,o){if(!this.isRowGroupEmpty()){var i=this.rowGroupColumns[e],s=this.rowGroupColumns.slice(e,r);this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(r,0,i);var a={type:g.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:s,column:s.length===1?s[0]:null,source:o};this.eventService.dispatchEvent(a)}},t.prototype.moveColumns=function(e,r,o,i){if(i===void 0&&(i=!0),!!this.gridColumns){if(this.columnAnimationService.start(),r>this.gridColumns.length-e.length){console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+r),console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");return}var s=this.getGridColumns(e),a=!this.doesMovePassRules(s,r);a||(on(this.gridColumns,s,r),this.updateDisplayedColumns(o),this.dispatchColumnMovedEvent({movedColumns:s,source:o,toIndex:r,finished:i}),this.columnAnimationService.finish())}},t.prototype.doesMovePassRules=function(e,r){var o=this.getProposedColumnOrder(e,r);return this.doesOrderPassRules(o)},t.prototype.doesOrderPassRules=function(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))},t.prototype.getProposedColumnOrder=function(e,r){var o=this.gridColumns.slice();return on(o,e,r),o},t.prototype.sortColumnsLikeGridColumns=function(e){var r=this;if(!(!e||e.length<=1)){var o=e.filter(function(i){return r.gridColumns.indexOf(i)<0}).length>0;o||e.sort(function(i,s){var a=r.gridColumns.indexOf(i),l=r.gridColumns.indexOf(s);return a-l})}},t.prototype.doesMovePassLockedPositions=function(e){var r=0,o=!0,i=function(s){return s?s===!0||s==="left"?0:2:1};return e.forEach(function(s){var a=i(s.getColDef().lockPosition);ad&&(r=!1)}}}),r},t.prototype.moveColumnByIndex=function(e,r,o){if(this.gridColumns){var i=this.gridColumns[e];this.moveColumns([i],r,o)}},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var r=this.primaryColumns.slice();return this.gridColsArePrimary?r.sort(function(o,i){return e.gridColumns.indexOf(o)-e.gridColumns.indexOf(i)}):this.lastPrimaryOrder&&r.sort(function(o,i){return e.lastPrimaryOrder.indexOf(o)-e.lastPrimaryOrder.indexOf(i)}),this.columnDefFactory.buildColumnDefs(r,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),r=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e;var i=this.bodyWidth!==e||this.leftWidth!==r||this.rightWidth!==o;if(i){this.bodyWidth=e,this.leftWidth=r,this.rightWidth=o;var s={type:g.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED};this.eventService.dispatchEvent(s);var a={type:g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(a)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns:null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns:null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){var e;return(e=this.gridColumns)!==null&&e!==void 0?e:[]},t.prototype.isEmpty=function(){return Ge(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return Ge(this.rowGroupColumns)},t.prototype.setColumnsVisible=function(e,r,o){r===void 0&&(r=!1),this.applyColumnState({state:e.map(function(i){return{colId:typeof i=="string"?i:i.getColId(),hide:!r}})},o)},t.prototype.setColumnsPinned=function(e,r,o){if(this.gridColumns){if(this.gridOptionsService.isDomLayout("print")){console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'");return}this.columnAnimationService.start();var i;r===!0||r==="left"?i="left":r==="right"?i="right":i=null,this.actionOnGridColumns(e,function(s){return s.getPinned()!==i?(s.setPinned(i),!0):!1},o,function(){var s={type:g.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,source:o};return s}),this.columnAnimationService.finish()}},t.prototype.actionOnGridColumns=function(e,r,o,i){var s=this;if(!Ge(e)){var a=[];if(e.forEach(function(u){if(u){var c=s.getGridColumn(u);if(c){var p=r(c);p!==!1&&a.push(c)}}}),!!a.length&&(this.updateDisplayedColumns(o),P(i)&&i)){var l=i();l.columns=a,l.column=a.length===1?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var r=this.getAllDisplayedColumns(),o=r.indexOf(e);return o>0?r[o-1]:null},t.prototype.getDisplayedColAfter=function(e){var r=this.getAllDisplayedColumns(),o=r.indexOf(e);return o0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},t.prototype.createStateItemFromColumn=function(e){var r=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null,s=e.getSort()!=null?e.getSort():null,a=e.getSortIndex()!=null?e.getSortIndex():null,l=e.getFlex()!=null&&e.getFlex()>0?e.getFlex():null,u={colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:s,sortIndex:a,aggFunc:i,rowGroup:e.isRowGroupActive(),rowGroupIndex:r,pivot:e.isPivotActive(),pivotIndex:o,flex:l};return u},t.prototype.getColumnState=function(){if(H(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns(),r=e.map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(r),r},t.prototype.orderColumnStateList=function(e){var r=Nt(this.gridColumns.map(function(o,i){return[o.getColId(),i]}));e.sort(function(o,i){var s=r.has(o.colId)?r.get(o.colId):-1,a=r.has(i.colId)?r.get(i.colId):-1;return s-a})},t.prototype.resetColumnState=function(e){var r=this;if(!Ge(this.primaryColumns)){var o=this.getColumnsFromTree(this.primaryColumnTree),i=[],s=1e3,a=1e3,l=[];this.groupAutoColumns&&(l=l.concat(this.groupAutoColumns)),o&&(l=l.concat(o)),l.forEach(function(u){var c=r.getColumnStateFromColDef(u);H(c.rowGroupIndex)&&c.rowGroup&&(c.rowGroupIndex=s++),H(c.pivotIndex)&&c.pivot&&(c.pivotIndex=a++),i.push(c)}),this.applyColumnState({state:i,applyOrder:!0},e)}},t.prototype.getColumnStateFromColDef=function(e){var r=function(C,m){return C??m??null},o=e.getColDef(),i=r(o.sort,o.initialSort),s=r(o.sortIndex,o.initialSortIndex),a=r(o.hide,o.initialHide),l=r(o.pinned,o.initialPinned),u=r(o.width,o.initialWidth),c=r(o.flex,o.initialFlex),p=r(o.rowGroupIndex,o.initialRowGroupIndex),d=r(o.rowGroup,o.initialRowGroup);p==null&&(d==null||d==!1)&&(p=null,d=null);var h=r(o.pivotIndex,o.initialPivotIndex),f=r(o.pivot,o.initialPivot);h==null&&(f==null||f==!1)&&(h=null,f=null);var y=r(o.aggFunc,o.initialAggFunc);return{colId:e.getColId(),sort:i,sortIndex:s,hide:a,pinned:l,width:u,flex:c,rowGroup:d,rowGroupIndex:p,pivot:f,pivotIndex:h,aggFunc:y}},t.prototype.applyColumnState=function(e,r){var o=this;if(Ge(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var i=function(u,c,p){var d=o.compareColumnStatesAndDispatchEvents(r);o.autoGroupsNeedBuilding=!0;var h=c.slice(),f={},y={},C=[],m=[],w=0,E=o.rowGroupColumns.slice(),S=o.pivotColumns.slice();u.forEach(function(A){var M=A.colId||"",N=M.startsWith(Er);if(N){C.push(A),m.push(A);return}var I=p(M);I?(o.syncColumnWithStateItem(I,A,e.defaultState,f,y,!1,r),_e(h,I)):(m.push(A),w+=1)});var R=function(A){return o.syncColumnWithStateItem(A,null,e.defaultState,f,y,!1,r)};h.forEach(R);var O=function(A,M,N,I){var W=A[N.getId()],ee=A[I.getId()],oe=W!=null,J=ee!=null;if(oe&&J)return W-ee;if(oe)return-1;if(J)return 1;var te=M.indexOf(N),Q=M.indexOf(I),Ne=te>=0,ut=Q>=0;return Ne&&ut?te-Q:Ne?-1:1};o.rowGroupColumns.sort(O.bind(o,f,E)),o.pivotColumns.sort(O.bind(o,y,S)),o.updateGridColumns();var b=o.groupAutoColumns?o.groupAutoColumns.slice():[];return C.forEach(function(A){var M=o.getAutoColumn(A.colId);_e(b,M),o.syncColumnWithStateItem(M,A,e.defaultState,null,null,!0,r)}),b.forEach(R),o.applyOrderAfterApplyState(e),o.updateDisplayedColumns(r),o.dispatchEverythingChanged(r),d(),{unmatchedAndAutoStates:m,unmatchedCount:w}};this.columnAnimationService.start();var s=i(e.state||[],this.primaryColumns||[],function(u){return o.getPrimaryColumn(u)}),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||P(e.defaultState))&&(l=i(a,this.secondaryColumns||[],function(u){return o.getSecondaryColumn(u)}).unmatchedCount),this.columnAnimationService.finish(),l===0},t.prototype.applyOrderAfterApplyState=function(e){var r=this;if(!(!e.applyOrder||!e.state)){var o=[],i={};e.state.forEach(function(a){if(!(!a.colId||i[a.colId])){var l=r.gridColumnsMap[a.colId];l&&(o.push(l),i[a.colId]=!0)}});var s=0;if(this.gridColumns.forEach(function(a){var l=a.getColId(),u=i[l]!=null;if(!u){var c=l.startsWith(Er);c?Yr(o,a,s++):o.push(a)}}),o=this.placeLockedColumns(o),!this.doesMovePassMarryChildren(o)){console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");return}this.gridColumns=o}},t.prototype.compareColumnStatesAndDispatchEvents=function(e){var r=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},i=this.getColumnState(),s={};return i.forEach(function(a){s[a.colId]=a}),function(){var a=r.getPrimaryAndSecondaryAndAutoColumns(),l=function(w,E,S,R){var O=E.map(R),b=S.map(R),A=Tt(O,b);if(!A){var M=new Set(E);S.forEach(function(W){M.delete(W)||M.add(W)});var N=ke([],Be(M),!1),I={type:w,columns:N,column:N.length===1?N[0]:null,source:e};r.eventService.dispatchEvent(I)}},u=function(w){var E=[];return a.forEach(function(S){var R=s[S.getColId()];R&&w(R,S)&&E.push(S)}),E},c=function(w){return w.getColId()};l(g.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,r.rowGroupColumns,c),l(g.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,r.pivotColumns,c);var p=function(w,E){var S=w.aggFunc!=null,R=S!=E.isValueActive(),O=S&&w.aggFunc!=E.getAggFunc();return R||O},d=u(p);d.length>0&&r.dispatchColumnChangedEvent(g.EVENT_COLUMN_VALUE_CHANGED,d,e);var h=function(w,E){return w.width!=E.getActualWidth()};r.dispatchColumnResizedEvent(u(h),!0,e);var f=function(w,E){return w.pinned!=E.getPinned()};r.dispatchColumnPinnedEvent(u(f),e);var y=function(w,E){return w.hide==E.isVisible()};r.dispatchColumnVisibleEvent(u(y),e);var C=function(w,E){return w.sort!=E.getSort()||w.sortIndex!=E.getSortIndex()},m=u(C);m.length>0&&r.sortController.dispatchSortChangedEvents(e,m),r.normaliseColumnMovedEventForColumnState(i,e)}},t.prototype.getCommonValue=function(e,r){if(!(!e||e.length==0)){for(var o=r(e[0]),i=1;i=d&&e.setActualWidth(f,l)}var y=u("sort").value1;y!==void 0&&(y==="desc"||y==="asc"?e.setSort(y,l):e.setSort(void 0,l));var C=u("sortIndex").value1;if(C!==void 0&&e.setSortIndex(C),!(a||!e.isPrimary())){var m=u("aggFunc").value1;m!==void 0&&(typeof m=="string"?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(P(m)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,l),_e(this.valueColumns,e))));var w=u("rowGroup","rowGroupIndex"),E=w.value1,S=w.value2;(E!==void 0||S!==void 0)&&(typeof S=="number"||E?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),i&&typeof S=="number"&&(i[e.getId()]=S)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),_e(this.rowGroupColumns,e)));var R=u("pivot","pivotIndex"),O=R.value1,b=R.value2;(O!==void 0||b!==void 0)&&(typeof b=="number"||O?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),s&&typeof b=="number"&&(s[e.getId()]=b)):e.isPivotActive()&&(e.setPivotActive(!1,l),_e(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,r){var o=[];return e&&e.forEach(function(i){var s=r(i);s&&o.push(s)}),o},t.prototype.getColumnWithValidation=function(e){if(e==null)return null;var r=this.getGridColumn(e);return r||console.warn("AG Grid: could not find column "+e),r},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.lookupGridColumn=function(e){return this.gridColumnsMap[e]},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,r,o){if(!e||!o)return null;if(typeof e=="string"&&o[e])return o[e];for(var i=0;i=0:f?b?S=m:A?S=E!=null&&E>=0:S=!1:S=r.indexOf(h)>=0,S){var M=f?w!=null||E!=null:w!=null;M?u.push(h):c.push(h)}});var p=function(h){var f=i(h.getColDef()),y=s(h.getColDef());return f??y};u.sort(function(h,f){var y=p(h),C=p(f);return y===C?0:y=0&&d.push(h)}),c.forEach(function(h){d.indexOf(h)<0&&d.push(h)}),r.forEach(function(h){d.indexOf(h)<0&&o(h,!1)}),d.forEach(function(h){r.indexOf(h)<0&&o(h,!0)}),d},t.prototype.extractPivotColumns=function(e,r){this.pivotColumns=this.extractColumns(r,this.pivotColumns,function(o,i){return o.setPivotActive(i,e)},function(o){return o.pivotIndex},function(o){return o.initialPivotIndex},function(o){return o.pivot},function(o){return o.initialPivot})},t.prototype.resetColumnGroupState=function(e){if(this.primaryColumnTree){var r=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(o){if(o instanceof ie){var i=o.getColGroupDef(),s={groupId:o.getGroupId(),open:i?i.openByDefault:void 0};r.push(s)}}),this.setColumnGroupState(r,e)}},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(r){r instanceof ie&&e.push({groupId:r.getGroupId(),open:r.isExpanded()})}),e},t.prototype.setColumnGroupState=function(e,r){var o=this;if(this.gridBalancedTree){this.columnAnimationService.start();var i=[];if(e.forEach(function(a){var l=a.groupId,u=a.open,c=o.getProvidedColumnGroup(l);c&&c.isExpanded()!==u&&(o.logger.log("columnGroupOpened("+c.getGroupId()+","+u+")"),c.setExpanded(u),i.push(c))}),this.updateGroupsAndDisplayedColumns(r),this.setFirstRightAndLastLeftPinned(r),i.length){var s={type:g.EVENT_COLUMN_GROUP_OPENED,columnGroup:ie.length===1?i[0]:void 0,columnGroups:i};this.eventService.dispatchEvent(s)}this.columnAnimationService.finish()}},t.prototype.setColumnGroupOpened=function(e,r,o){var i;e instanceof ie?i=e.getId():i=e||"",this.setColumnGroupState([{groupId:i,open:r}],o)},t.prototype.getProvidedColumnGroup=function(e){typeof e!="string"&&console.error("AG Grid: group key must be a string");var r=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){o instanceof ie&&o.getId()===e&&(r=o)}),r},t.prototype.calculateColumnsForDisplay=function(){var e=this,r;return this.pivotMode&&H(this.secondaryColumns)?r=this.gridColumns.filter(function(o){var i=e.groupAutoColumns&&ot(e.groupAutoColumns,o),s=e.valueColumns&&ot(e.valueColumns,o);return i||s}):r=this.gridColumns.filter(function(o){var i=e.groupAutoColumns&&ot(e.groupAutoColumns,o);return i||o.isVisible()}),r},t.prototype.checkColSpanActiveInCols=function(e){var r=!1;return e.forEach(function(o){P(o.getColDef().colSpan)&&(r=!0)}),r},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var r=function(o){var i=o.getColDef(),s=i.showRowGroup;i&&P(s)&&(e.groupDisplayColumns.push(o),typeof s=="string"?e.groupDisplayColumnsMap[s]=o:s===!0&&e.getRowGroupColumns().forEach(function(a){e.groupDisplayColumnsMap[a.getId()]=o}))};this.gridColumns.forEach(r)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},t.prototype.updateDisplayedColumns=function(e){var r=this.calculateColumnsForDisplay();this.buildDisplayedTrees(r),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return P(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,r){var o=this;if(this.gridColumns){var i=e&&e.length>0;if(!(!i&&H(this.secondaryColumns))){if(i){this.processSecondaryColumnDefinitions(e);var s=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0,r);this.destroyOldColumns(this.secondaryBalancedTree,s.columnTree),this.secondaryBalancedTree=s.columnTree,this.secondaryHeaderRowCount=s.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(a){return o.secondaryColumnsMap[a.getId()]=a}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(r)}}},t.prototype.processSecondaryColumnDefinitions=function(e){var r=this.gridOptionsService.get("processPivotResultColDef"),o=this.gridOptionsService.get("processPivotResultColGroupDef");if(!(!r&&!o)){var i=function(s){s.forEach(function(a){var l=P(a.children);if(l){var u=a;o&&o(u),i(u.children)}else{var c=a;r&&r(c)}})};e&&i(e)}},t.prototype.updateGridColumns=function(){var e=this,r=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var o=this.createGroupAutoColumnsIfNeeded();if(o){var i=Nt(this.groupAutoColumns.map(function(u){return[u,!0]}));this.lastPrimaryOrder&&(this.lastPrimaryOrder=this.lastPrimaryOrder.filter(function(u){return!i.has(u)}),this.lastPrimaryOrder=ke(ke([],Be(this.groupAutoColumns),!1),Be(this.lastPrimaryOrder),!1)),this.lastSecondaryOrder&&(this.lastSecondaryOrder=this.lastSecondaryOrder.filter(function(u){return!i.has(u)}),this.lastSecondaryOrder=ke(ke([],Be(this.groupAutoColumns),!1),Be(this.lastSecondaryOrder),!1))}var s;if(this.secondaryColumns&&this.secondaryBalancedTree){var a=this.secondaryColumns.some(function(u){return e.gridColumnsMap[u.getColId()]!==void 0});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,a&&(s=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,s=this.lastPrimaryOrder);if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(s),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(u){return e.gridColumnsMap[u.getId()]=u}),this.setAutoHeightActive(),!Tt(r,this.gridBalancedTree)){var l={type:g.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(l)}},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter(function(r){return r.isAutoHeight()}).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide");e||V("autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}},t.prototype.orderGridColsLike=function(e){if(!H(e)){var r=Nt(e.map(function(c,p){return[c,p]})),o=!0;if(this.gridColumns.forEach(function(c){r.has(c)&&(o=!1)}),!o){var i=Nt(this.gridColumns.map(function(c){return[c,!0]})),s=e.filter(function(c){return i.has(c)}),a=Nt(s.map(function(c){return[c,!0]})),l=this.gridColumns.filter(function(c){return!a.has(c)}),u=s.slice();l.forEach(function(c){var p=c.getOriginalParent();if(!p){u.push(c);return}for(var d=[];!d.length&&p;){var h=p.getLeafColumns();h.forEach(function(C){var m=u.indexOf(C)>=0,w=d.indexOf(C)<0;m&&w&&d.push(C)}),p=p.getOriginalParent()}if(!d.length){u.push(c);return}var f=d.map(function(C){return u.indexOf(C)}),y=Math.max.apply(Math,ke([],Be(f),!1));Yr(u,c,y+1)}),this.gridColumns=u}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.refreshQuickFilterColumns=function(){var e,r=(e=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)!==null&&e!==void 0?e:[];this.groupAutoColumns&&(r=r.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.get("includeHiddenColumnsInQuickFilter")?r:r.filter(function(o){return o.isVisible()||o.isRowGroupActive()})},t.prototype.placeLockedColumns=function(e){var r=[],o=[],i=[];return e.forEach(function(s){var a=s.getColDef().lockPosition;a==="right"?i.push(s):a==="left"||a===!0?r.push(s):o.push(s)}),ke(ke(ke([],Be(r),!1),Be(o),!1),Be(i),!1)},t.prototype.addAutoGroupToGridColumns=function(){if(H(this.groupAutoColumns)){this.destroyOldColumns(this.groupAutoColsBalancedTree),this.groupAutoColsBalancedTree=null;return}this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},t.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.ariaOrderColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var r={type:g.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(r)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinColumnsAriaOrder(),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter(function(r){return r.isAutoHeight()})},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinColumnsAriaOrder=function(){var e,r,o=this.getAllGridColumns(),i=[],s=[],a=[];try{for(var l=un(o),u=l.next();!u.done;u=l.next()){var c=u.value,p=c.getPinned();p?p===!0||p==="left"?i.push(c):a.push(c):s.push(c)}}catch(d){e={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}this.ariaOrderColumns=i.concat(s).concat(a)},t.prototype.joinDisplayedColumns=function(){this.gridOptionsService.get("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var r=this;if(this.primaryColumns){var o=this.getPrimaryAndSecondaryAndAutoColumns().slice(0),i=this.gridOptionsService.get("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(s){if(i){var a=r.getWidthOfColsInList(s);s.forEach(function(u){a-=u.getActualWidth(),u.setLeft(a,e)})}else{var l=0;s.forEach(function(u){u.setLeft(l,e),l+=u.getActualWidth()})}Sa(o,s)}),o.forEach(function(s){s.setLeft(null,e)})}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(r){if(r instanceof se){var o=r;o.checkLeft()}})})},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,r){r.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(o){o instanceof Z&&r.push(o)})},t.prototype.isColumnVirtualisationSuppressed=function(){return this.suppressColumnVirtualisation||this.viewportRight===0},t.prototype.extractViewportColumns=function(){this.isColumnVirtualisationSuppressed()?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,r){var o;switch(e){case"left":o=this.viewportRowLeft[r];break;case"right":o=this.viewportRowRight[r];break;default:o=this.viewportRowCenter[r];break}return H(o)&&(o=[]),o},t.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach(function(o){return e[o.getId()]=!0});var r=function(o,i,s){for(var a=!1,l=0;l=0;l--)if(s.has(a[l])){i=l;break}}for(var u=0,c=[],p=0,d=0,l=0;li;h?(c.push(this.displayedColumnsCenter[l]),d+=this.displayedColumnsCenter[l].getFlex(),p+=(r=this.displayedColumnsCenter[l].getMinWidth())!==null&&r!==void 0?r:0):u+=this.displayedColumnsCenter[l].getActualWidth()}if(!c.length)return[];var f=[];u+p>this.flexViewportWidth&&(c.forEach(function(A){var M;return A.setActualWidth((M=A.getMinWidth())!==null&&M!==void 0?M:0,o)}),f=c,c=[]);var y=[],C;e:for(;;){C=this.flexViewportWidth-u;for(var m=C/d,l=0;lO&&(S=O),S){w.setActualWidth(S,o),rn(c,w),d-=w.getFlex(),f.push(w),u+=w.getActualWidth();continue e}y[l]=Math.round(E)}break}var b=C;return c.forEach(function(A,M){A.setActualWidth(Math.min(y[M],b),o),f.push(A),b-=y[M]}),e.skipSetLeft||this.setLeftValues(o),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(f,!0,o,c),c},t.prototype.sizeColumnsToFit=function(e,r,o,i){var s=this,a,l,u,c,p;if(r===void 0&&(r="sizeColumnsToFit"),this.shouldQueueResizeOperations){this.resizeOperationQueue.push(function(){return s.sizeColumnsToFit(e,r,o,i)});return}var d={};i&&((a=i==null?void 0:i.columnLimits)===null||a===void 0||a.forEach(function(Q){var Ne=Q.key,ut=sp(Q,["key"]);d[typeof Ne=="string"?Ne:Ne.getColId()]=ut}));var h=this.getAllDisplayedColumns(),f=e===this.getWidthOfColsInList(h);if(!(e<=0||!h.length||f)){var y=[],C=[];h.forEach(function(Q){Q.getColDef().suppressSizeToFit===!0?C.push(Q):y.push(Q)});var m=y.slice(0),w=!1,E=function(Q){_e(y,Q),C.push(Q)};for(y.forEach(function(Q){var Ne,ut;Q.resetActualWidth(r);var Lt=d==null?void 0:d[Q.getId()],la=(Ne=Lt==null?void 0:Lt.minWidth)!==null&&Ne!==void 0?Ne:i==null?void 0:i.defaultMinWidth,ua=(ut=Lt==null?void 0:Lt.maxWidth)!==null&&ut!==void 0?ut:i==null?void 0:i.defaultMaxWidth,yc=Q.getActualWidth();typeof la=="number"&&ycua&&Q.setActualWidth(ua,r,!0)});!w;){w=!0;var S=e-this.getWidthOfColsInList(C);if(S<=0)y.forEach(function(Q){var Ne,ut,Lt=(ut=(Ne=d==null?void 0:d[Q.getId()])===null||Ne===void 0?void 0:Ne.minWidth)!==null&&ut!==void 0?ut:i==null?void 0:i.defaultMinWidth;if(typeof Lt=="number"){Q.setActualWidth(Lt,r,!0);return}Q.setMinimum(r)});else for(var R=S/this.getWidthOfColsInList(y),O=S,b=y.length-1;b>=0;b--){var A=y[b],M=d==null?void 0:d[A.getId()],N=(l=M==null?void 0:M.minWidth)!==null&&l!==void 0?l:i==null?void 0:i.defaultMinWidth,I=(u=M==null?void 0:M.maxWidth)!==null&&u!==void 0?u:i==null?void 0:i.defaultMaxWidth,W=(c=A.getMinWidth())!==null&&c!==void 0?c:0,ee=(p=A.getMaxWidth())!==null&&p!==void 0?p:Number.MAX_VALUE,oe=typeof N=="number"&&N>W?N:A.getMinWidth(),J=typeof I=="number"&&IJ?(te=J,E(A),w=!1):b===0&&(te=O),A.setActualWidth(te,r,!0),O-=te}}m.forEach(function(Q){Q.fireColumnWidthChangedEvent(r)}),this.setLeftValues(r),this.updateBodyWidths(),!o&&this.dispatchColumnResizedEvent(m,!0,r)}},t.prototype.buildDisplayedTrees=function(e){var r=[],o=[],i=[];e.forEach(function(a){switch(a.getPinned()){case"left":r.push(a);break;case"right":o.push(a);break;default:i.push(a);break}});var s=new Pa;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(r,s,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,s,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(i,s,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var r=function(o){e.displayedColumnsAndGroupsMap[o.getUniqueId()]=o};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,r),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,r),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,r)},t.prototype.isDisplayed=function(e){var r=this.displayedColumnsAndGroupsMap[e.getUniqueId()];return r===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(r){r instanceof se&&r.calculateDisplayedColumns()})},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){var e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var r=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),o=this.pivotMode?this.gridOptionsService.get("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn(),i=this.rowGroupColumns.length>0||this.gridOptionsService.get("treeData"),s=i&&!o&&!r;if(s){var a=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns),l=!this.autoColsEqual(a,this.groupAutoColumns);if(l||e)return this.groupAutoColumns=a,!0}else this.groupAutoColumns=null;return!1},t.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get("groupDisplayType"),r=e==="custom";if(r)return!0;var o=this.gridOptionsService.get("treeDataDisplayType");return o==="custom"},t.prototype.autoColsEqual=function(e,r){return Tt(e,r,function(o,i){return o.getColId()===i.getColId()})},t.prototype.getWidthOfColsInList=function(e){return e.reduce(function(r,o){return r+o.getActualWidth()},0)},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.get("enableRtl"),r=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&r.reverse();for(var o=0;oo},t.prototype.generateColumnStateForRowGroupAndPivotIndexes=function(e,r){var o=this,i={},s=function(a,l,u,c,p,d){if(!l.length||!o.primaryColumns)return[];for(var h=Object.keys(a),f=new Set(h),y=new Set(h),C=new Set(l.map(function(N){var I=N.getColId();return y.delete(I),I}).concat(h)),m=[],w={},E=0,S=0;S=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},cp=function(n){lp(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.calculateColMinWidth=function(e){return e.minWidth!=null?e.minWidth:this.environment.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return e.maxWidth!=null?e.maxWidth:Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var r=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),i,s=Mt(e.width),a=Mt(e.initialWidth);return s!=null?i=s:a!=null?i=a:i=200,Math.max(Math.min(i,o),r)},t.prototype.getOriginalPathForColumn=function(e,r){var o=[],i=!1,s=function(a,l){for(var u=0;u=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},hp=function(n){pp(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createDisplayedGroups=function(e,r,o,i){for(var s=this,a=this.mapOldGroupsById(i),l=[],u=e,c=function(){var p=u;u=[];for(var d=0,h=function(R){var O=d;d=R;var b=p[O],A=b instanceof se?b.getProvidedColumnGroup():b,M=A.getOriginalParent();if(M==null){for(var N=O;N0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Vt=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Fa=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},yp=function(n){vp(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.componentsMappedByName={},e}return t.prototype.setupComponents=function(e){var r=this;e&&e.forEach(function(o){return r.addComponent(o)})},t.prototype.addComponent=function(e){var r=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=r.toUpperCase();this.componentsMappedByName[o]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=gp([x("agStackComponentsRegistry")],t),t}(D);function qe(n,t,e){e==null||typeof e=="string"&&e==""?pn(n,t):Qe(n,t,e)}function Qe(n,t,e){n.setAttribute(Ma(t),e.toString())}function pn(n,t){n.removeAttribute(Ma(t))}function Ma(n){return"aria-".concat(n)}function le(n,t){t?n.setAttribute("role",t):n.removeAttribute("role")}function Ia(n){var t;return n==="asc"?t="ascending":n==="desc"?t="descending":n==="mixed"?t="other":t="none",t}function Cp(n){return parseInt(n.getAttribute("aria-level"),10)}function xa(n){return parseInt(n.getAttribute("aria-posinset"),10)}function Na(n){return n.getAttribute("aria-label")}function Ht(n,t){qe(n,"label",t)}function Uo(n,t){qe(n,"labelledby",t)}function mp(n,t){qe(n,"describedby",t)}function dn(n,t){qe(n,"live",t)}function Ga(n,t){qe(n,"atomic",t)}function Va(n,t){qe(n,"relevant",t)}function Ha(n,t){qe(n,"level",t)}function hn(n,t){qe(n,"disabled",t)}function zo(n,t){qe(n,"hidden",t)}function fn(n,t){qe(n,"activedescendant",t)}function Pt(n,t){Qe(n,"expanded",t)}function Ba(n){pn(n,"expanded")}function vn(n,t){Qe(n,"setsize",t)}function gn(n,t){Qe(n,"posinset",t)}function ka(n,t){Qe(n,"multiselectable",t)}function Wa(n,t){Qe(n,"rowcount",t)}function yn(n,t){Qe(n,"rowindex",t)}function ja(n,t){Qe(n,"colcount",t)}function Cn(n,t){Qe(n,"colindex",t)}function Ua(n,t){Qe(n,"colspan",t)}function za(n,t){Qe(n,"sort",t)}function Ka(n){pn(n,"sort")}function Rr(n,t){qe(n,"selected",t)}function Sp(n,t){Qe(n,"checked",t===void 0?"mixed":t)}function mn(n,t){qe(n,"controls",t.id),Uo(t,n.id)}function Sn(n,t){return t===void 0?n("ariaIndeterminate","indeterminate"):t===!0?n("ariaChecked","checked"):n("ariaUnchecked","unchecked")}var wp=Object.freeze({__proto__:null,setAriaRole:le,getAriaSortState:Ia,getAriaLevel:Cp,getAriaPosInSet:xa,getAriaLabel:Na,setAriaLabel:Ht,setAriaLabelledBy:Uo,setAriaDescribedBy:mp,setAriaLive:dn,setAriaAtomic:Ga,setAriaRelevant:Va,setAriaLevel:Ha,setAriaDisabled:hn,setAriaHidden:zo,setAriaActiveDescendant:fn,setAriaExpanded:Pt,removeAriaExpanded:Ba,setAriaSetSize:vn,setAriaPosInSet:gn,setAriaMultiSelectable:ka,setAriaRowCount:Wa,setAriaRowIndex:yn,setAriaColCount:ja,setAriaColIndex:Cn,setAriaColSpan:Ua,setAriaSort:za,removeAriaSort:Ka,setAriaSelected:Rr,setAriaChecked:Sp,setAriaControls:mn,getAriaCheckboxStateName:Sn}),wn,Ko,En,_n,Rn,On,Tn,Pn;function ht(){return wn===void 0&&(wn=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),wn}function Dn(){if(Ko===void 0)if(ht()){var n=navigator.userAgent.match(/version\/(\d+)/i);n&&(Ko=n[1]!=null?parseFloat(n[1]):0)}else Ko=0;return Ko}function $o(){if(En===void 0){var n=window;En=!!n.chrome&&(!!n.chrome.webstore||!!n.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return En}function An(){return _n===void 0&&(_n=/(firefox)/i.test(navigator.userAgent)),_n}function bn(){return Rn===void 0&&(Rn=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Rn}function Dt(){return On===void 0&&(On=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),On}function Fn(){return!ht()||Dn()>=15}function Yo(n){if(!n)return null;var t=n.tabIndex,e=n.getAttribute("tabIndex");return t===-1&&(e===null||e===""&&!An())?null:t.toString()}function $a(){if(!document.body)return-1;var n=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,e=document.createElement("div");for(document.body.appendChild(e);;){var r=n*2;if(e.style.height=r+"px",r>t||e.clientHeight!==r)break;n=r}return document.body.removeChild(e),n}function Ya(){var n,t,e;return(t=(n=document.body)===null||n===void 0?void 0:n.clientWidth)!==null&&t!==void 0?t:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientWidth)||-1}function qa(){var n,t,e;return(t=(n=document.body)===null||n===void 0?void 0:n.clientHeight)!==null&&t!==void 0?t:window.innerHeight||((e=document.documentElement)===null||e===void 0?void 0:e.clientHeight)||-1}function Qa(){return Pn==null&&Xa(),Pn}function Xa(){var n=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",n.appendChild(t);var e=t.offsetWidth-t.clientWidth;e===0&&t.clientWidth===0&&(e=null),t.parentNode&&t.parentNode.removeChild(t),e!=null&&(Pn=e,Tn=e===0)}function Ln(){return Tn==null&&Xa(),Tn}var Ep=Object.freeze({__proto__:null,isBrowserSafari:ht,getSafariVersion:Dn,isBrowserChrome:$o,isBrowserFirefox:An,isMacOsUserAgent:bn,isIOSUserAgent:Dt,browserSupportsPreventScroll:Fn,getTabIndex:Yo,getMaxDivHeight:$a,getBodyWidth:Ya,getBodyHeight:qa,getScrollbarWidth:Qa,isInvisibleScrollbar:Ln});function Or(n,t){return n.toString().padStart(t,"0")}function Za(n,t){for(var e=[],r=n;r<=t;r++)e.push(r);return e}function _p(n){return typeof n=="string"&&(n=parseInt(n,10)),typeof n=="number"?Math.floor(n):null}function Rp(n,t){for(var e="",r=0;r>>=8;return e}function Op(n,t,e){return typeof n!="number"?"":Mn(Math.round(n*100)/100,t,e)}function Mn(n,t,e){return typeof n!="number"?"":n.toString().replace(".",e).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1".concat(t))}function Tp(n){return n==null?null:n.reduce(function(t,e){return t+e},0)}var Pp=Object.freeze({__proto__:null,padStartWidthZeros:Or,createArrayOfNumbers:Za,cleanNumber:_p,decToHex:Rp,formatNumberTwoDecimalPlacesAndCommas:Op,formatNumberCommas:Mn,sum:Tp}),In=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i};function Xe(n,t,e){if(t===void 0&&(t=!0),e===void 0&&(e="-"),!n)return null;var r=[n.getFullYear(),n.getMonth()+1,n.getDate()].map(function(o){return Or(o,2)}).join(e);return t&&(r+=" "+[n.getHours(),n.getMinutes(),n.getSeconds()].map(function(o){return Or(o,2)}).join(":")),r}var xn=function(n){if(n>3&&n<21)return"th";var t=n%10;switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Tr(n,t){t===void 0&&(t="YYYY-MM-DD");var e=Or(n.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i={YYYY:function(){return e.slice(e.length-4,e.length)},YY:function(){return e.slice(e.length-2,e.length)},Y:function(){return"".concat(n.getFullYear())},MMMM:function(){return r[n.getMonth()]},MMM:function(){return r[n.getMonth()].slice(0,3)},MM:function(){return Or(n.getMonth()+1,2)},Mo:function(){return"".concat(n.getMonth()+1).concat(xn(n.getMonth()+1))},M:function(){return"".concat(n.getMonth()+1)},Do:function(){return"".concat(n.getDate()).concat(xn(n.getDate()))},DD:function(){return Or(n.getDate(),2)},D:function(){return"".concat(n.getDate())},dddd:function(){return o[n.getDay()]},ddd:function(){return o[n.getDay()].slice(0,3)},dd:function(){return o[n.getDay()].slice(0,2)},do:function(){return"".concat(n.getDay()).concat(xn(n.getDay()))},d:function(){return"".concat(n.getDay())}},s=new RegExp(Object.keys(i).join("|"),"g");return t.replace(s,function(a){return a in i?i[a]():a})}function Re(n){if(!n)return null;var t=In(n.split(" "),2),e=t[0],r=t[1];if(!e)return null;var o=e.split("-").map(function(f){return parseInt(f,10)});if(o.filter(function(f){return!isNaN(f)}).length!==3)return null;var i=In(o,3),s=i[0],a=i[1],l=i[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!r||r==="00:00:00")return u;var c=In(r.split(":").map(function(f){return parseInt(f,10)}),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var Dp=Object.freeze({__proto__:null,serialiseDate:Xe,dateToFormattedString:Tr,parseDateTimeFromString:Re}),Ap=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bp=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},qo;function Nn(n,t,e){for(var r=n.parentElement,o=r&&r.firstChild;o;)t&&o.classList.toggle(t,o===n),e&&o.classList.toggle(e,o!==n),o=o.nextSibling}var Ja="[tabindex], input, select, button, textarea, [href]",Gn="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Vn(n){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,e="input, select, button, textarea",r=t.call(n,e),o=t.call(n,Gn),i=We(n),s=r&&!o&&i;return s}function $(n,t,e){e===void 0&&(e={});var r=e.skipAriaHidden;n.classList.toggle("ag-hidden",!t),r||zo(n,!t)}function el(n,t,e){e===void 0&&(e={});var r=e.skipAriaHidden;n.classList.toggle("ag-invisible",!t),r||zo(n,!t)}function Pr(n,t){var e="disabled",r=t?function(o){return o.setAttribute(e,"")}:function(o){return o.removeAttribute(e)};r(n),zn(n.querySelectorAll("input"),function(o){return r(o)})}function or(n,t,e){for(var r=0;n;){if(n.classList.contains(t))return!0;if(n=n.parentElement,typeof e=="number"){if(++r>e)break}else if(n===e)break}return!1}function Bt(n){var t=window.getComputedStyle(n),e=t.height,r=t.width,o=t.borderTopWidth,i=t.borderRightWidth,s=t.borderBottomWidth,a=t.borderLeftWidth,l=t.paddingTop,u=t.paddingRight,c=t.paddingBottom,p=t.paddingLeft,d=t.marginTop,h=t.marginRight,f=t.marginBottom,y=t.marginLeft,C=t.boxSizing;return{height:parseFloat(e||"0"),width:parseFloat(r||"0"),borderTopWidth:parseFloat(o||"0"),borderRightWidth:parseFloat(i||"0"),borderBottomWidth:parseFloat(s||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(l||"0"),paddingRight:parseFloat(u||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(p||"0"),marginTop:parseFloat(d||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(f||"0"),marginLeft:parseFloat(y||"0"),boxSizing:C}}function qr(n){var t=Bt(n);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function ir(n){var t=Bt(n);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function Hn(n){var t=Bt(n),e=t.marginBottom+t.marginTop;return Math.ceil(n.offsetHeight+e)}function Qr(n){var t=Bt(n),e=t.marginLeft+t.marginRight;return Math.ceil(n.offsetWidth+e)}function Bn(n){var t=n.getBoundingClientRect(),e=Bt(n),r=e.borderTopWidth,o=e.borderLeftWidth,i=e.borderRightWidth,s=e.borderBottomWidth;return{top:t.top+(r||0),left:t.left+(o||0),right:t.right+(i||0),bottom:t.bottom+(s||0)}}function Xr(){if(typeof qo=="boolean")return qo;var n=document.createElement("div");return n.style.direction="rtl",n.style.width="1px",n.style.height="1px",n.style.position="fixed",n.style.top="0px",n.style.overflow="hidden",n.dir="rtl",n.innerHTML=`
-
`,document.body.appendChild(n),n.scrollLeft=1,qo=Math.floor(n.scrollLeft)===0,document.body.removeChild(n),qo}function Jr(n,t){var e=n.scrollLeft;return t&&(e=Math.abs(e),$o()&&!Xr()&&(e=n.scrollWidth-n.clientWidth-e)),e}function Zr(n,t,e){e&&(Xr()?t*=-1:(ht()||$o())&&(t=n.scrollWidth-n.clientWidth-t)),n.scrollLeft=t}function de(n){for(;n&&n.firstChild;)n.removeChild(n.firstChild)}function ft(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function kn(n){return!!n.offsetParent}function We(n){var t=n;if(t.checkVisibility)return t.checkVisibility({checkVisibilityCSS:!0});var e=!kn(n)||window.getComputedStyle(n).visibility!=="visible";return!e}function Re(n){var t=document.createElement("div");return t.innerHTML=(n||"").trim(),t.firstChild}function Wn(n,t,e){e&&e.nextSibling===t||(e?e.nextSibling?n.insertBefore(t,e.nextSibling):n.appendChild(t):n.firstChild&&n.firstChild!==t&&n.insertAdjacentElement("afterbegin",t))}function jn(n,t){for(var e=0;e=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function sl(n,t,e){var r={},o=n.filter(function(i){return!t.some(function(s){return s===i})});return o.length>0&&o.forEach(function(i){return r[i]=ro(i,e).values}),r}function ro(n,t,e,r){var o,i,s=t.map(function(f,y){return{value:f,relevance:Mp(n.toLowerCase(),f.toLocaleLowerCase()),idx:y}});if(s.sort(function(f,y){return y.relevance-f.relevance}),e&&(s=s.filter(function(f){return f.relevance!==0})),s.length>0&&r&&r>0){var a=s[0].relevance,l=a*r;s=s.filter(function(f){return l-f.relevance<0})}var u=[],c=[];try{for(var p=Lp(s),d=p.next();!d.done;d=p.next()){var h=d.value;u.push(h.value),c.push(h.idx)}}catch(f){o={error:f}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}return{values:u,indices:c}}function Mp(n,t){for(var e=n.replace(/\s/g,""),r=t.replace(/\s/g,""),o=0,i=-1,s=0;s-1||typeof o=="object"&&o["ag-icon"])return r}var i=document.createElement("span");return i.appendChild(r),i}function ne(n,t,e,r){var o=null,i=e&&e.getColDef().icons;if(i&&(o=i[n]),t&&!o){var s=t.get("icons");s&&(o=s[n])}if(o){var a=void 0;if(typeof o=="function")a=o();else if(typeof o=="string")a=o;else throw new Error("icon from grid options needs to be a string or a function");if(typeof a=="string")return Re(a);if(to(a))return a;console.warn("AG Grid: iconRenderer should return back a string or a dom object")}else{var l=document.createElement("span"),u=al[n];return u||(r?u=n:(console.warn("AG Grid: Did not find icon ".concat(n)),u="")),l.setAttribute("class","ag-icon ag-icon-".concat(u)),l.setAttribute("unselectable","on"),le(l,"presentation"),l}}var xp=Object.freeze({__proto__:null,iconNameClassMap:al,createIcon:Ze,createIconNoSpan:ne}),_=function(){function n(){}return n.BACKSPACE="Backspace",n.TAB="Tab",n.ENTER="Enter",n.ESCAPE="Escape",n.SPACE=" ",n.LEFT="ArrowLeft",n.UP="ArrowUp",n.RIGHT="ArrowRight",n.DOWN="ArrowDown",n.DELETE="Delete",n.F2="F2",n.PAGE_UP="PageUp",n.PAGE_DOWN="PageDown",n.PAGE_HOME="Home",n.PAGE_END="End",n.A="KeyA",n.C="KeyC",n.D="KeyD",n.V="KeyV",n.X="KeyX",n.Y="KeyY",n.Z="KeyZ",n}(),Np=65,Gp=67,Vp=86,Hp=68,Bp=90,kp=89;function Xo(n){if(n.altKey||n.ctrlKey||n.metaKey)return!1;var t=n.key.length===1;return t}function Jo(n,t,e,r,o){var i=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i)return!1;var s=n.addGridCommonParams({event:t,editing:o,column:r,node:e,data:e.data,colDef:r.getColDef()});if(i){var a=i(s);if(a)return!0}return!1}function ll(n,t,e,r){var o=r.getDefinition(),i=o&&o.suppressHeaderKeyboardEvent;if(!P(i))return!1;var s=n.addGridCommonParams({colDef:o,column:r,headerRowIndex:e,event:t});return!!i(s)}function ul(n){var t=n.keyCode,e;switch(t){case Np:e=_.A;break;case Gp:e=_.C;break;case Vp:e=_.V;break;case Hp:e=_.D;break;case Bp:e=_.Z;break;case kp:e=_.Y;break;default:e=n.code}return e}function cl(n,t){return t===void 0&&(t=!1),n===_.DELETE?!0:!t&&n===_.BACKSPACE?bn():!1}var Wp=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Xo,isUserSuppressingKeyboardEvent:Jo,isUserSuppressingHeaderKeyboardEvent:ll,normaliseQwertyAzerty:ul,isDeleteKey:cl});function $n(n,t,e){if(e===0)return!1;var r=Math.abs(n.clientX-t.clientX),o=Math.abs(n.clientY-t.clientY);return Math.max(r,o)<=e}var jp=Object.freeze({__proto__:null,areEventsNear:$n});function Up(n,t){if(!n)return!1;for(var e=function(a,l){var u=t[a.id],c=t[l.id],p=u!==void 0,d=c!==void 0,h=p&&d,f=!p&&!d;return h?u-c:f?a.__objectId-l.__objectId:p?1:-1},r,o,i=!1,s=0;s0){i=!0;break}return i?(n.sort(e),!0):!1}var zp=Object.freeze({__proto__:null,sortRowNodesByOrder:Up});function Yn(n){var t=new Set;return n.forEach(function(e){return t.add(e)}),t}var Kp=Object.freeze({__proto__:null,convertToSet:Yn}),ue=function(){return ue=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},st;(function(n){n[n.NOTHING=0]="NOTHING",n[n.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",n[n.SHOWING=2]="SHOWING"})(st||(st={}));var gt;(function(n){n[n.HOVER=0]="HOVER",n[n.FOCUS=1]="FOCUS"})(gt||(gt={}));var pl=function(n){Yp(t,n);function t(e,r,o){var i=n.call(this)||this;return i.parentComp=e,i.tooltipShowDelayOverride=r,i.tooltipHideDelayOverride=o,i.SHOW_QUICK_TOOLTIP_DIFF=1e3,i.FADE_OUT_TOOLTIP_TIMEOUT=1e3,i.INTERACTIVE_HIDE_DELAY=100,i.interactionEnabled=!1,i.isInteractingWithTooltip=!1,i.state=st.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i}return t.prototype.postConstruct=function(){this.gridOptionsService.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gridOptionsService.get("tooltipMouseTrack");var e=this.parentComp.getGui();this.tooltipTrigger===gt.HOVER&&(this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===gt.FOCUS&&(this.addManagedListener(e,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(e,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)))},t.prototype.getGridOptionsTooltipDelay=function(e){var r=this.gridOptionsService.get(e);return r<0&&V("".concat(e," should not be lower than 0")),Math.max(200,r)},t.prototype.getTooltipDelay=function(e){var r,o;return e==="show"?(r=this.tooltipShowDelayOverride)!==null&&r!==void 0?r:this.getGridOptionsTooltipDelay("tooltipShowDelay"):(o=this.tooltipHideDelayOverride)!==null&&o!==void 0?o:this.getGridOptionsTooltipDelay("tooltipHideDelay")},t.prototype.destroy=function(){this.setToDoNothing(),n.prototype.destroy.call(this)},t.prototype.getTooltipTrigger=function(){var e=this.gridOptionsService.get("tooltipTrigger");return!e||e==="hover"?gt.HOVER:gt.FOCUS},t.prototype.onMouseEnter=function(e){var r=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Dt()&&(t.isLocked?this.showTooltipTimeoutId=window.setTimeout(function(){r.prepareToShowTooltip(e)},this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(e))},t.prototype.onMouseMove=function(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===st.SHOWING&&this.tooltipComp&&this.positionTooltip()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.onMouseLeave=function(){this.interactionEnabled?this.lockService():this.setToDoNothing()},t.prototype.onFocusIn=function(){this.prepareToShowTooltip()},t.prototype.onFocusOut=function(e){var r,o=e.relatedTarget,i=this.parentComp.getGui(),s=(r=this.tooltipComp)===null||r===void 0?void 0:r.getGui();this.isInteractingWithTooltip||i.contains(o)||this.interactionEnabled&&(s!=null&&s.contains(o))||this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.prepareToShowTooltip=function(e){if(this.state!=st.NOTHING||t.isLocked)return!1;var r=0;return e&&(r=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),r),this.state=st.WAITING_TO_SHOW,!0},t.prototype.isLastTooltipHiddenRecently=function(){var e=new Date().getTime(),r=t.lastTooltipHideTime;return e-r1){r.forEach(function(s){return e.addCssClass(s)});return}var o=this.cssClassStates[t]!==!0;if(o&&t.length){var i=this.getGui();i&&i.classList.add(t),this.cssClassStates[t]=!0}},n.prototype.removeCssClass=function(t){var e=this,r=(t||"").split(" ");if(r.length>1){r.forEach(function(s){return e.removeCssClass(s)});return}var o=this.cssClassStates[t]!==!1;if(o&&t.length){var i=this.getGui();i&&i.classList.remove(t),this.cssClassStates[t]=!1}},n.prototype.containsCssClass=function(t){var e=this.getGui();return e?e.classList.contains(t):!1},n.prototype.addOrRemoveCssClass=function(t,e){var r=this;if(t){if(t.indexOf(" ")>=0){var o=(t||"").split(" ");if(o.length>1){o.forEach(function(a){return r.addOrRemoveCssClass(a,e)});return}}var i=this.cssClassStates[t]!==e;if(i&&t.length){var s=this.getGui();s&&s.classList.toggle(t,e),this.cssClassStates[t]=e}}},n}(),Qp=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xp=new Dr,k=function(n){Qp(t,n);function t(e){var r=n.call(this)||this;return r.displayed=!0,r.visible=!0,r.compId=Xp.next(),r.cssClassManager=new qp(function(){return r.eGui}),e&&r.setTemplate(e),r}return t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.get("enableBrowserTooltips")},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e,r,o){var i=this,s=function(){i.usingBrowserTooltips?i.getGui().removeAttribute("title"):i.tooltipFeature=i.destroyBean(i.tooltipFeature)},a=function(){i.usingBrowserTooltips?i.getGui().setAttribute("title",i.tooltipText):i.tooltipFeature=i.createBean(new pl(i,r,o))};this.tooltipText!=e&&(this.tooltipText&&s(),e!=null&&(this.tooltipText=e,this.tooltipText&&a()))},t.prototype.createChildComponentsFromTags=function(e,r){var o=this,i=il(e.childNodes);i.forEach(function(s){if(s instanceof HTMLElement){var a=o.createComponentFromElement(s,function(u){var c=u.getGui();c&&o.copyAttributesFromNode(s,u.getGui())},r);if(a){if(a.addItems&&s.children.length){o.createChildComponentsFromTags(s,r);var l=Array.prototype.slice.call(s.children);a.addItems(l)}o.swapComponentForNode(a,e,s)}else s.childNodes&&o.createChildComponentsFromTags(s,r)}})},t.prototype.createComponentFromElement=function(e,r,o){var i=e.nodeName,s=o?o[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(i);if(a){t.elementGettingCreated=e;var l=new a(s);return l.setParentComponent(this),this.createBean(l,null,r),l}return null},t.prototype.copyAttributesFromNode=function(e,r){nl(e.attributes,function(o,i){return r.setAttribute(o,i)})},t.prototype.swapComponentForNode=function(e,r,o){var i=e.getGui();r.replaceChild(i,o),r.insertBefore(document.createComment(o.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,r){var o=this;this.iterateOverQuerySelectors(function(i){o[i.attributeName]===r&&(o[i.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var r=Object.getPrototypeOf(this);r!=null;){var o=r.__agComponentMetaData,i=Vo(r.constructor);o&&o[i]&&o[i].querySelectors&&o[i].querySelectors.forEach(function(s){return e(s)}),r=Object.getPrototypeOf(r)}},t.prototype.activateTabIndex=function(e){var r=this.gridOptionsService.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(function(o){return o.setAttribute("tabindex",r.toString())})},t.prototype.setTemplate=function(e,r){var o=Re(e);this.setTemplateFromElement(o,r)},t.prototype.setTemplateFromElement=function(e,r){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),r)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var r=this;this.iterateOverQuerySelectors(function(o){var i=function(l){return r[o.attributeName]=l},s=o.refSelector&&e.getAttribute("ref")===o.refSelector;if(s)i(e.eGui);else{var a=e.eGui.querySelector(o.querySelector);a&&i(a.__agComponent||a)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.getAriaElement=function(){return this.getFocusableElement()},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,r){if(e!=null)if(r||(r=this.eGui),to(e))r.appendChild(e);else{var o=e;r.appendChild(o.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e,r){if(r===void 0&&(r={}),e!==this.visible){this.visible=e;var o=r.skipAriaHidden;el(this.eGui,e,{skipAriaHidden:o})}},t.prototype.setDisplayed=function(e,r){if(r===void 0&&(r={}),e!==this.displayed){this.displayed=e;var o=r.skipAriaHidden;$(this.eGui,e,{skipAriaHidden:o});var i={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(i)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),n.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,r,o){var i=this;this.eGui.addEventListener(e,r,o),this.addDestroyFunc(function(){return i.eGui.removeEventListener(e,r)})},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,r){this.cssClassManager.addOrRemoveCssClass(e,r)},t.prototype.getAttribute=function(e){var r=this.eGui;return r?r.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'.concat(e,'"]'))},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Qn([v("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Qn([va],t.prototype,"preConstructOnComponent",null),Qn([va],t.prototype,"createChildComponentsPreConstruct",null),t}(D);function L(n){return Jp.bind(this,"[ref=".concat(n,"]"),n)}function Jp(n,t,e,r,o){if(n===null){console.error("AG Grid: QuerySelector selector should not be null");return}if(typeof o=="number"){console.error("AG Grid: QuerySelector should be on an attribute");return}Zp(e,"querySelectors",{attributeName:r,querySelector:n,refSelector:t})}function Zp(n,t,e){var r=ed(n,Vo(n.constructor));r[t]||(r[t]=[]),r[t].push(e)}function ed(n,t){return n.__agComponentMetaData||(n.__agComponentMetaData={}),n.__agComponentMetaData[t]||(n.__agComponentMetaData[t]={}),n.__agComponentMetaData[t]}var td=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),dl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},rd=function(n){td(t,n);function t(){return n.call(this,` +
`,document.body.appendChild(n),n.scrollLeft=1,qo=Math.floor(n.scrollLeft)===0,document.body.removeChild(n),qo}function Zr(n,t){var e=n.scrollLeft;return t&&(e=Math.abs(e),$o()&&!Xr()&&(e=n.scrollWidth-n.clientWidth-e)),e}function Jr(n,t,e){e&&(Xr()?t*=-1:(ht()||$o())&&(t=n.scrollWidth-n.clientWidth-t)),n.scrollLeft=t}function de(n){for(;n&&n.firstChild;)n.removeChild(n.firstChild)}function ft(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function kn(n){return!!n.offsetParent}function We(n){var t=n;if(t.checkVisibility)return t.checkVisibility({checkVisibilityCSS:!0});var e=!kn(n)||window.getComputedStyle(n).visibility!=="visible";return!e}function Oe(n){var t=document.createElement("div");return t.innerHTML=(n||"").trim(),t.firstChild}function Wn(n,t,e){e&&e.nextSibling===t||(e?e.nextSibling?n.insertBefore(t,e.nextSibling):n.appendChild(t):n.firstChild&&n.firstChild!==t&&n.insertAdjacentElement("afterbegin",t))}function jn(n,t){for(var e=0;e=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function sl(n,t,e){var r={},o=n.filter(function(i){return!t.some(function(s){return s===i})});return o.length>0&&o.forEach(function(i){return r[i]=ro(i,e).values}),r}function ro(n,t,e,r){var o,i,s=t.map(function(f,y){return{value:f,relevance:Ip(n.toLowerCase(),f.toLocaleLowerCase()),idx:y}});if(s.sort(function(f,y){return y.relevance-f.relevance}),e&&(s=s.filter(function(f){return f.relevance!==0})),s.length>0&&r&&r>0){var a=s[0].relevance,l=a*r;s=s.filter(function(f){return l-f.relevance<0})}var u=[],c=[];try{for(var p=Mp(s),d=p.next();!d.done;d=p.next()){var h=d.value;u.push(h.value),c.push(h.idx)}}catch(f){o={error:f}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}return{values:u,indices:c}}function Ip(n,t){for(var e=n.replace(/\s/g,""),r=t.replace(/\s/g,""),o=0,i=-1,s=0;s-1||typeof o=="object"&&o["ag-icon"])return r}var i=document.createElement("span");return i.appendChild(r),i}function ne(n,t,e,r){var o=null,i=e&&e.getColDef().icons;if(i&&(o=i[n]),t&&!o){var s=t.get("icons");s&&(o=s[n])}if(o){var a=void 0;if(typeof o=="function")a=o();else if(typeof o=="string")a=o;else throw new Error("icon from grid options needs to be a string or a function");if(typeof a=="string")return Oe(a);if(to(a))return a;console.warn("AG Grid: iconRenderer should return back a string or a dom object")}else{var l=document.createElement("span"),u=al[n];return u||(r?u=n:(console.warn("AG Grid: Did not find icon ".concat(n)),u="")),l.setAttribute("class","ag-icon ag-icon-".concat(u)),l.setAttribute("unselectable","on"),le(l,"presentation"),l}}var Np=Object.freeze({__proto__:null,iconNameClassMap:al,createIcon:Je,createIconNoSpan:ne}),_=function(){function n(){}return n.BACKSPACE="Backspace",n.TAB="Tab",n.ENTER="Enter",n.ESCAPE="Escape",n.SPACE=" ",n.LEFT="ArrowLeft",n.UP="ArrowUp",n.RIGHT="ArrowRight",n.DOWN="ArrowDown",n.DELETE="Delete",n.F2="F2",n.PAGE_UP="PageUp",n.PAGE_DOWN="PageDown",n.PAGE_HOME="Home",n.PAGE_END="End",n.A="KeyA",n.C="KeyC",n.D="KeyD",n.V="KeyV",n.X="KeyX",n.Y="KeyY",n.Z="KeyZ",n}(),Gp=65,Vp=67,Hp=86,Bp=68,kp=90,Wp=89;function Xo(n){if(n.altKey||n.ctrlKey||n.metaKey)return!1;var t=n.key.length===1;return t}function Zo(n,t,e,r,o){var i=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i)return!1;var s=n.addGridCommonParams({event:t,editing:o,column:r,node:e,data:e.data,colDef:r.getColDef()});if(i){var a=i(s);if(a)return!0}return!1}function ll(n,t,e,r){var o=r.getDefinition(),i=o&&o.suppressHeaderKeyboardEvent;if(!P(i))return!1;var s=n.addGridCommonParams({colDef:o,column:r,headerRowIndex:e,event:t});return!!i(s)}function ul(n){var t=n.keyCode,e;switch(t){case Gp:e=_.A;break;case Vp:e=_.C;break;case Hp:e=_.V;break;case Bp:e=_.D;break;case kp:e=_.Z;break;case Wp:e=_.Y;break;default:e=n.code}return e}function cl(n,t){return t===void 0&&(t=!1),n===_.DELETE?!0:!t&&n===_.BACKSPACE?bn():!1}var jp=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Xo,isUserSuppressingKeyboardEvent:Zo,isUserSuppressingHeaderKeyboardEvent:ll,normaliseQwertyAzerty:ul,isDeleteKey:cl});function $n(n,t,e){if(e===0)return!1;var r=Math.abs(n.clientX-t.clientX),o=Math.abs(n.clientY-t.clientY);return Math.max(r,o)<=e}var Up=Object.freeze({__proto__:null,areEventsNear:$n});function zp(n,t){if(!n)return!1;for(var e=function(a,l){var u=t[a.id],c=t[l.id],p=u!==void 0,d=c!==void 0,h=p&&d,f=!p&&!d;return h?u-c:f?a.__objectId-l.__objectId:p?1:-1},r,o,i=!1,s=0;s0){i=!0;break}return i?(n.sort(e),!0):!1}var Kp=Object.freeze({__proto__:null,sortRowNodesByOrder:zp});function Yn(n){var t=new Set;return n.forEach(function(e){return t.add(e)}),t}var $p=Object.freeze({__proto__:null,convertToSet:Yn}),ue=function(){return ue=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},st;(function(n){n[n.NOTHING=0]="NOTHING",n[n.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",n[n.SHOWING=2]="SHOWING"})(st||(st={}));var gt;(function(n){n[n.HOVER=0]="HOVER",n[n.FOCUS=1]="FOCUS"})(gt||(gt={}));var pl=function(n){qp(t,n);function t(e,r,o){var i=n.call(this)||this;return i.parentComp=e,i.tooltipShowDelayOverride=r,i.tooltipHideDelayOverride=o,i.SHOW_QUICK_TOOLTIP_DIFF=1e3,i.FADE_OUT_TOOLTIP_TIMEOUT=1e3,i.INTERACTIVE_HIDE_DELAY=100,i.interactionEnabled=!1,i.isInteractingWithTooltip=!1,i.state=st.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i}return t.prototype.postConstruct=function(){this.gridOptionsService.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gridOptionsService.get("tooltipMouseTrack");var e=this.parentComp.getGui();this.tooltipTrigger===gt.HOVER&&(this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===gt.FOCUS&&(this.addManagedListener(e,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(e,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)))},t.prototype.getGridOptionsTooltipDelay=function(e){var r=this.gridOptionsService.get(e);return r<0&&V("".concat(e," should not be lower than 0")),Math.max(200,r)},t.prototype.getTooltipDelay=function(e){var r,o;return e==="show"?(r=this.tooltipShowDelayOverride)!==null&&r!==void 0?r:this.getGridOptionsTooltipDelay("tooltipShowDelay"):(o=this.tooltipHideDelayOverride)!==null&&o!==void 0?o:this.getGridOptionsTooltipDelay("tooltipHideDelay")},t.prototype.destroy=function(){this.setToDoNothing(),n.prototype.destroy.call(this)},t.prototype.getTooltipTrigger=function(){var e=this.gridOptionsService.get("tooltipTrigger");return!e||e==="hover"?gt.HOVER:gt.FOCUS},t.prototype.onMouseEnter=function(e){var r=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Dt()&&(t.isLocked?this.showTooltipTimeoutId=window.setTimeout(function(){r.prepareToShowTooltip(e)},this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(e))},t.prototype.onMouseMove=function(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===st.SHOWING&&this.tooltipComp&&this.positionTooltip()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.onMouseLeave=function(){this.interactionEnabled?this.lockService():this.setToDoNothing()},t.prototype.onFocusIn=function(){this.prepareToShowTooltip()},t.prototype.onFocusOut=function(e){var r,o=e.relatedTarget,i=this.parentComp.getGui(),s=(r=this.tooltipComp)===null||r===void 0?void 0:r.getGui();this.isInteractingWithTooltip||i.contains(o)||this.interactionEnabled&&(s!=null&&s.contains(o))||this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.prepareToShowTooltip=function(e){if(this.state!=st.NOTHING||t.isLocked)return!1;var r=0;return e&&(r=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),r),this.state=st.WAITING_TO_SHOW,!0},t.prototype.isLastTooltipHiddenRecently=function(){var e=new Date().getTime(),r=t.lastTooltipHideTime;return e-r1){r.forEach(function(s){return e.addCssClass(s)});return}var o=this.cssClassStates[t]!==!0;if(o&&t.length){var i=this.getGui();i&&i.classList.add(t),this.cssClassStates[t]=!0}},n.prototype.removeCssClass=function(t){var e=this,r=(t||"").split(" ");if(r.length>1){r.forEach(function(s){return e.removeCssClass(s)});return}var o=this.cssClassStates[t]!==!1;if(o&&t.length){var i=this.getGui();i&&i.classList.remove(t),this.cssClassStates[t]=!1}},n.prototype.containsCssClass=function(t){var e=this.getGui();return e?e.classList.contains(t):!1},n.prototype.addOrRemoveCssClass=function(t,e){var r=this;if(t){if(t.indexOf(" ")>=0){var o=(t||"").split(" ");if(o.length>1){o.forEach(function(a){return r.addOrRemoveCssClass(a,e)});return}}var i=this.cssClassStates[t]!==e;if(i&&t.length){var s=this.getGui();s&&s.classList.toggle(t,e),this.cssClassStates[t]=e}}},n}(),Xp=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zp=new Dr,k=function(n){Xp(t,n);function t(e){var r=n.call(this)||this;return r.displayed=!0,r.visible=!0,r.compId=Zp.next(),r.cssClassManager=new Qp(function(){return r.eGui}),e&&r.setTemplate(e),r}return t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.get("enableBrowserTooltips")},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e,r,o){var i=this,s=function(){i.usingBrowserTooltips?i.getGui().removeAttribute("title"):i.tooltipFeature=i.destroyBean(i.tooltipFeature)},a=function(){i.usingBrowserTooltips?i.getGui().setAttribute("title",i.tooltipText):i.tooltipFeature=i.createBean(new pl(i,r,o))};this.tooltipText!=e&&(this.tooltipText&&s(),e!=null&&(this.tooltipText=e,this.tooltipText&&a()))},t.prototype.createChildComponentsFromTags=function(e,r){var o=this,i=il(e.childNodes);i.forEach(function(s){if(s instanceof HTMLElement){var a=o.createComponentFromElement(s,function(u){var c=u.getGui();c&&o.copyAttributesFromNode(s,u.getGui())},r);if(a){if(a.addItems&&s.children.length){o.createChildComponentsFromTags(s,r);var l=Array.prototype.slice.call(s.children);a.addItems(l)}o.swapComponentForNode(a,e,s)}else s.childNodes&&o.createChildComponentsFromTags(s,r)}})},t.prototype.createComponentFromElement=function(e,r,o){var i=e.nodeName,s=o?o[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(i);if(a){t.elementGettingCreated=e;var l=new a(s);return l.setParentComponent(this),this.createBean(l,null,r),l}return null},t.prototype.copyAttributesFromNode=function(e,r){nl(e.attributes,function(o,i){return r.setAttribute(o,i)})},t.prototype.swapComponentForNode=function(e,r,o){var i=e.getGui();r.replaceChild(i,o),r.insertBefore(document.createComment(o.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,r){var o=this;this.iterateOverQuerySelectors(function(i){o[i.attributeName]===r&&(o[i.attributeName]=e)})},t.prototype.iterateOverQuerySelectors=function(e){for(var r=Object.getPrototypeOf(this);r!=null;){var o=r.__agComponentMetaData,i=Vo(r.constructor);o&&o[i]&&o[i].querySelectors&&o[i].querySelectors.forEach(function(s){return e(s)}),r=Object.getPrototypeOf(r)}},t.prototype.activateTabIndex=function(e){var r=this.gridOptionsService.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(function(o){return o.setAttribute("tabindex",r.toString())})},t.prototype.setTemplate=function(e,r){var o=Oe(e);this.setTemplateFromElement(o,r)},t.prototype.setTemplateFromElement=function(e,r){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),r)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var r=this;this.iterateOverQuerySelectors(function(o){var i=function(l){return r[o.attributeName]=l},s=o.refSelector&&e.getAttribute("ref")===o.refSelector;if(s)i(e.eGui);else{var a=e.eGui.querySelector(o.querySelector);a&&i(a.__agComponent||a)}})}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.getAriaElement=function(){return this.getFocusableElement()},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,r){if(e!=null)if(r||(r=this.eGui),to(e))r.appendChild(e);else{var o=e;r.appendChild(o.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e,r){if(r===void 0&&(r={}),e!==this.visible){this.visible=e;var o=r.skipAriaHidden;el(this.eGui,e,{skipAriaHidden:o})}},t.prototype.setDisplayed=function(e,r){if(r===void 0&&(r={}),e!==this.displayed){this.displayed=e;var o=r.skipAriaHidden;$(this.eGui,e,{skipAriaHidden:o});var i={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(i)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),n.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,r,o){var i=this;this.eGui.addEventListener(e,r,o),this.addDestroyFunc(function(){return i.eGui.removeEventListener(e,r)})},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,r){this.cssClassManager.addOrRemoveCssClass(e,r)},t.prototype.getAttribute=function(e){var r=this.eGui;return r?r.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'.concat(e,'"]'))},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Qn([v("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Qn([va],t.prototype,"preConstructOnComponent",null),Qn([va],t.prototype,"createChildComponentsPreConstruct",null),t}(D);function L(n){return Jp.bind(this,"[ref=".concat(n,"]"),n)}function Jp(n,t,e,r,o){if(n===null){console.error("AG Grid: QuerySelector selector should not be null");return}if(typeof o=="number"){console.error("AG Grid: QuerySelector should be on an attribute");return}ed(e,"querySelectors",{attributeName:r,querySelector:n,refSelector:t})}function ed(n,t,e){var r=td(n,Vo(n.constructor));r[t]||(r[t]=[]),r[t].push(e)}function td(n,t){return n.__agComponentMetaData||(n.__agComponentMetaData={}),n.__agComponentMetaData[t]||(n.__agComponentMetaData[t]={}),n.__agComponentMetaData[t]}var rd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),dl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},od=function(n){rd(t,n);function t(){return n.call(this,` `)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var r=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel("".concat(r," ").concat(o("ariaFilterInput","Filter Input")))},t.prototype.onParentModelChanged=function(e){var r=this;if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(function(o){if(o.getModelAsString){var i=o.getModelAsString(e);r.eFloatingFilterText.setValue(i)}})},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){this.init(e)},dl([L("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),dl([v("columnModel")],t.prototype,"columnModel",void 0),t}(k),hl=function(){function n(t,e,r,o){var i=this;this.alive=!0,this.context=t,this.eParent=o;var s=e.getDateCompDetails(r),a=s.newAgStackInstance();a.then(function(l){if(!i.alive){t.destroyBean(l);return}i.dateComp=l,l&&(o.appendChild(l.getGui()),l.afterGuiAttached&&l.afterGuiAttached(),i.tempValue&&l.setDate(i.tempValue),i.disabled!=null&&i.setDateCompDisabled(i.disabled))})}return n.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},n.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},n.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},n.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},n.prototype.setDisplayed=function(t){$(this.eParent,t)},n.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},n.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},n.prototype.afterGuiAttached=function(t){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(t)},n.prototype.updateParams=function(t){var e,r,o=!1;if(!((e=this.dateComp)===null||e===void 0)&&e.refresh&&typeof this.dateComp.refresh=="function"){var i=this.dateComp.refresh(t);i!==null&&(o=!0)}if(!o&&(!((r=this.dateComp)===null||r===void 0)&&r.onParamsUpdated)&&typeof this.dateComp.onParamsUpdated=="function"){var i=this.dateComp.onParamsUpdated(t);i!==null&&V("Custom date component method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}},n.prototype.setDateCompDisabled=function(t){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(t)},n}(),fl=function(){function n(){this.customFilterOptions={}}return n.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t)},n.prototype.getFilterOptions=function(){return this.filterOptions},n.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach(function(e){if(typeof e!="string"){var r=[["displayKey"],["displayName"],["predicate","test"]],o=function(i){return i.some(function(s){return e[s]!=null})?!0:(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '".concat(i,"'")),!1)};if(!r.every(o)){t.filterOptions=t.filterOptions.filter(function(i){return i===e})||[];return}t.customFilterOptions[e.displayKey]=e}})},n.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];typeof e=="string"?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")},n.prototype.getDefaultOption=function(){return this.defaultOption},n.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},n}(),vl={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:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},od=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xn=function(){return Xn=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ar=function(n){od(t,n);function t(e,r){r===void 0&&(r={});var o=n.call(this)||this;return o.eFocusableElement=e,o.callbacks=r,o.callbacks=Xn({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(i){if(!i.defaultPrevented){var s=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,i.shiftKey);s&&(s.focus(),i.preventDefault())}}},r),o}return t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var r=this;this.addManagedListener(e,"keydown",function(o){if(!(o.defaultPrevented||nt(o))){if(r.callbacks.shouldStopEventPropagation(o)){it(o);return}o.key===_.TAB?r.callbacks.onTabKeyDown(o):r.callbacks.handleKeyDown&&r.callbacks.handleKeyDown(o)}})},t.FOCUS_MANAGED_CLASS="ag-focus-managed",gl([v("focusService")],t.prototype,"focusService",void 0),gl([F],t.prototype,"postConstruct",null),t}(D),id=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},yl="ag-resizer-wrapper",nd='
+
`)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var r=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel("".concat(r," ").concat(o("ariaFilterInput","Filter Input")))},t.prototype.onParentModelChanged=function(e){var r=this;if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(function(o){if(o.getModelAsString){var i=o.getModelAsString(e);r.eFloatingFilterText.setValue(i)}})},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){this.init(e)},dl([L("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),dl([v("columnModel")],t.prototype,"columnModel",void 0),t}(k),hl=function(){function n(t,e,r,o){var i=this;this.alive=!0,this.context=t,this.eParent=o;var s=e.getDateCompDetails(r),a=s.newAgStackInstance();a.then(function(l){if(!i.alive){t.destroyBean(l);return}i.dateComp=l,l&&(o.appendChild(l.getGui()),l.afterGuiAttached&&l.afterGuiAttached(),i.tempValue&&l.setDate(i.tempValue),i.disabled!=null&&i.setDateCompDisabled(i.disabled))})}return n.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},n.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},n.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},n.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},n.prototype.setDisplayed=function(t){$(this.eParent,t)},n.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},n.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},n.prototype.afterGuiAttached=function(t){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(t)},n.prototype.updateParams=function(t){var e,r,o=!1;if(!((e=this.dateComp)===null||e===void 0)&&e.refresh&&typeof this.dateComp.refresh=="function"){var i=this.dateComp.refresh(t);i!==null&&(o=!0)}if(!o&&(!((r=this.dateComp)===null||r===void 0)&&r.onParamsUpdated)&&typeof this.dateComp.onParamsUpdated=="function"){var i=this.dateComp.onParamsUpdated(t);i!==null&&V("Custom date component method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}},n.prototype.setDateCompDisabled=function(t){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(t)},n}(),fl=function(){function n(){this.customFilterOptions={}}return n.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t)},n.prototype.getFilterOptions=function(){return this.filterOptions},n.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach(function(e){if(typeof e!="string"){var r=[["displayKey"],["displayName"],["predicate","test"]],o=function(i){return i.some(function(s){return e[s]!=null})?!0:(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '".concat(i,"'")),!1)};if(!r.every(o)){t.filterOptions=t.filterOptions.filter(function(i){return i===e})||[];return}t.customFilterOptions[e.displayKey]=e}})},n.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];typeof e=="string"?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")},n.prototype.getDefaultOption=function(){return this.defaultOption},n.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},n}(),vl={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:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},id=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xn=function(){return Xn=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ar=function(n){id(t,n);function t(e,r){r===void 0&&(r={});var o=n.call(this)||this;return o.eFocusableElement=e,o.callbacks=r,o.callbacks=Xn({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(i){if(!i.defaultPrevented){var s=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,i.shiftKey);s&&(s.focus(),i.preventDefault())}}},r),o}return t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var r=this;this.addManagedListener(e,"keydown",function(o){if(!(o.defaultPrevented||nt(o))){if(r.callbacks.shouldStopEventPropagation(o)){it(o);return}o.key===_.TAB?r.callbacks.onTabKeyDown(o):r.callbacks.handleKeyDown&&r.callbacks.handleKeyDown(o)}})},t.FOCUS_MANAGED_CLASS="ag-focus-managed",gl([v("focusService")],t.prototype,"focusService",void 0),gl([F],t.prototype,"postConstruct",null),t}(D),nd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},yl="ag-resizer-wrapper",sd='
@@ -34,45 +34,45 @@ For more info see: https://www.ag-grid.com/javascript-grid/packages/`);return er
-
`),ml=function(n){id(t,n);function t(e,r){var o=n.call(this)||this;return o.element=e,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.lastSize={width:-1,height:-1},o.positioned=!1,o.resizersAdded=!1,o.resizeListeners=[],o.boundaryEl=null,o.isResizing=!1,o.isMoving=!1,o.resizable={},o.movable=!1,o.currentResizer=null,o.config=Object.assign({},{popup:!1},r),o}return t.prototype.center=function(){var e=this.offsetParent,r=e.clientHeight,o=e.clientWidth,i=o/2-this.getWidth()/2,s=r/2-this.getHeight()/2;this.offsetElement(i,s)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,r=e.centered,o=e.forcePopupParentAsOffsetParent,i=e.minWidth,s=e.width,a=e.minHeight,l=e.height,u=e.x,c=e.y;this.offsetParent||this.setOffsetParent();var p=0,d=0,h=We(this.element);if(h){var f=this.findBoundaryElement(),y=window.getComputedStyle(f);if(y.minWidth!=null){var m=f.offsetWidth-this.element.offsetWidth;d=parseInt(y.minWidth,10)-m}if(y.minHeight!=null){var C=f.offsetHeight-this.element.offsetHeight;p=parseInt(y.minHeight,10)-C}}if(this.minHeight=a||p,this.minWidth=i||d,s&&this.setWidth(s),l&&this.setHeight(l),(!s||!l)&&this.refreshSize(),r)this.center();else if(u||c)this.offsetElement(u,c);else if(h&&o){var f=this.boundaryEl,w=!0;if(f||(f=this.findBoundaryElement(),w=!1),f){var E=parseFloat(f.style.top),S=parseFloat(f.style.left);w?this.offsetElement(isNaN(S)?0:S,isNaN(E)?0:E):this.setPosition(S,E)}}this.positioned=!!this.offsetParent}},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,r){if(!(!this.config.popup||e===this.movable)){this.movable=e;var o=this.moveElementDragListener||{eElement:r,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var r=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(function(o){var i=e,s=!!i[o],a=r.getResizerElement(o),l={dragStartPixels:0,eElement:a,onDragStart:function(u){return r.onResizeStart(u,o)},onDragging:r.onResize.bind(r),onDragStop:function(u){return r.onResizeEnd(u,o)}};(s||!r.isAlive()&&!s)&&(s?(r.dragService.addDragSource(l),r.resizeListeners.push(l),a.style.pointerEvents="all"):a.style.pointerEvents="none",r.resizable[o]=s)})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,r=e.height,o=e.width;o!==-1&&(this.element.style.width="".concat(o,"px")),r!==-1&&(this.element.style.height="".concat(r,"px"))},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var r=this.config.popup,o=this.element,i=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)nr(o,e),e=Hn(o),i=!0;else if(e=Math.max(this.minHeight,e),this.positioned){var s=this.getAvailableHeight();s&&e>s&&(e=s)}this.getHeight()!==e&&(i?(o.style.maxHeight="unset",o.style.minHeight="unset"):r?nr(o,e):(o.style.height="".concat(e,"px"),o.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,r=e.popup,o=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var i=this.offsetParent.clientHeight;if(!i)return null;var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=r?this.position.y:s.top,u=r?0:a.top,c=0;if(o){var p=this.element.parentElement;if(p){var d=p.getBoundingClientRect().bottom;c=d-s.bottom}}var h=i+u-l-c;return h},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var r=this.element,o=this.config.popup,i=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Je(r,e),e=Qr(r),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var s=this.offsetParent.clientWidth,a=o?this.position.x:this.element.getBoundingClientRect().left;s&&e+a>s&&(e=s-a)}this.getWidth()!==e&&(i?(r.style.maxWidth="unset",r.style.minWidth="unset"):this.config.popup?Je(r,e):(r.style.width="".concat(e,"px"),r.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))},t.prototype.offsetElement=function(e,r){e===void 0&&(e=0),r===void 0&&(r=0);var o=this.config.forcePopupParentAsOffsetParent,i=o?this.boundaryEl:this.element;i&&(this.popupService.positionPopup({ePopup:i,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:r}}}),this.setPosition(parseFloat(i.style.left),parseFloat(i.style.top)))},t.prototype.constrainSizeToAvailableHeight=function(e){var r=this;if(this.config.forcePopupParentAsOffsetParent){var o=function(){var i=r.getAvailableHeight();r.element.style.setProperty("max-height","".concat(i,"px"))};e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),o):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},t.prototype.setPosition=function(e,r){this.position.x=e,this.position.y=r},t.prototype.updateDragStartPosition=function(e,r){this.dragStartPosition={x:e,y:r}},t.prototype.calculateMouseMovement=function(e){var r=e.e,o=e.isLeft,i=e.isTop,s=e.anywhereWithin,a=e.topBuffer,l=r.clientX-this.dragStartPosition.x,u=r.clientY-this.dragStartPosition.y,c=this.shouldSkipX(r,!!o,!!s,l)?0:l,p=this.shouldSkipY(r,!!i,a,u)?0:u;return{movementX:c,movementY:p}},t.prototype.shouldSkipX=function(e,r,o,i){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.x:s.left,c=u<=0&&a.left>=e.clientX||a.right<=e.clientX&&a.right<=l.right;return c?!0:(r?c=i<0&&e.clientX>u+a.left||i>0&&e.clientXl.right||i>0&&e.clientXl.right||i>0&&e.clientX=e.clientY||a.bottom<=e.clientY&&a.bottom<=l.bottom;return c?!0:(r?c=i<0&&e.clientY>u+a.top+o||i>0&&e.clientYl.bottom||i>0&&e.clientYthis.element.parentElement.offsetHeight&&(N=!0),N||this.setHeight(M)}this.updateDragStartPosition(e.clientX,e.clientY),((o||i)&&w||E)&&this.offsetElement(m+w,C+E)}},t.prototype.onResizeEnd=function(e,r){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize"};this.element.classList.remove("ag-resizing"),this.resizerMap[r].element.classList.remove("ag-active"),this.dispatchEvent(o)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var r=this.position,o=r.x,i=r.y,s;this.config.calculateTopBuffer&&(s=this.config.calculateTopBuffer());var a=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:s}),l=a.movementX,u=a.movementY;this.offsetElement(o+l,i+u),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},Jn([v("popupService")],t.prototype,"popupService",void 0),Jn([v("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Jn([v("dragService")],t.prototype,"dragService",void 0),t}(D),sd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zo=function(n){sd(t,n);function t(e){var r=n.call(this)||this;return r.filterNameKey=e,r.applyActive=!1,r.hidePopup=null,r.debouncePending=!1,r.appliedModel=null,r.buttonListeners=[],r}return t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new ar(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new ml(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var r=this.getGui();r&&r.removeEventListener("submit",this.onFormSubmit);var o=` + `),Cl=function(n){nd(t,n);function t(e,r){var o=n.call(this)||this;return o.element=e,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.lastSize={width:-1,height:-1},o.positioned=!1,o.resizersAdded=!1,o.resizeListeners=[],o.boundaryEl=null,o.isResizing=!1,o.isMoving=!1,o.resizable={},o.movable=!1,o.currentResizer=null,o.config=Object.assign({},{popup:!1},r),o}return t.prototype.center=function(){var e=this.offsetParent,r=e.clientHeight,o=e.clientWidth,i=o/2-this.getWidth()/2,s=r/2-this.getHeight()/2;this.offsetElement(i,s)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,r=e.centered,o=e.forcePopupParentAsOffsetParent,i=e.minWidth,s=e.width,a=e.minHeight,l=e.height,u=e.x,c=e.y;this.offsetParent||this.setOffsetParent();var p=0,d=0,h=We(this.element);if(h){var f=this.findBoundaryElement(),y=window.getComputedStyle(f);if(y.minWidth!=null){var C=f.offsetWidth-this.element.offsetWidth;d=parseInt(y.minWidth,10)-C}if(y.minHeight!=null){var m=f.offsetHeight-this.element.offsetHeight;p=parseInt(y.minHeight,10)-m}}if(this.minHeight=a||p,this.minWidth=i||d,s&&this.setWidth(s),l&&this.setHeight(l),(!s||!l)&&this.refreshSize(),r)this.center();else if(u||c)this.offsetElement(u,c);else if(h&&o){var f=this.boundaryEl,w=!0;if(f||(f=this.findBoundaryElement(),w=!1),f){var E=parseFloat(f.style.top),S=parseFloat(f.style.left);w?this.offsetElement(isNaN(S)?0:S,isNaN(E)?0:E):this.setPosition(S,E)}}this.positioned=!!this.offsetParent}},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,r){if(!(!this.config.popup||e===this.movable)){this.movable=e;var o=this.moveElementDragListener||{eElement:r,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var r=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(function(o){var i=e,s=!!i[o],a=r.getResizerElement(o),l={dragStartPixels:0,eElement:a,onDragStart:function(u){return r.onResizeStart(u,o)},onDragging:r.onResize.bind(r),onDragStop:function(u){return r.onResizeEnd(u,o)}};(s||!r.isAlive()&&!s)&&(s?(r.dragService.addDragSource(l),r.resizeListeners.push(l),a.style.pointerEvents="all"):a.style.pointerEvents="none",r.resizable[o]=s)})},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,r=e.height,o=e.width;o!==-1&&(this.element.style.width="".concat(o,"px")),r!==-1&&(this.element.style.height="".concat(r,"px"))},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var r=this.config.popup,o=this.element,i=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)nr(o,e),e=Hn(o),i=!0;else if(e=Math.max(this.minHeight,e),this.positioned){var s=this.getAvailableHeight();s&&e>s&&(e=s)}this.getHeight()!==e&&(i?(o.style.maxHeight="unset",o.style.minHeight="unset"):r?nr(o,e):(o.style.height="".concat(e,"px"),o.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,r=e.popup,o=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var i=this.offsetParent.clientHeight;if(!i)return null;var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=r?this.position.y:s.top,u=r?0:a.top,c=0;if(o){var p=this.element.parentElement;if(p){var d=p.getBoundingClientRect().bottom;c=d-s.bottom}}var h=i+u-l-c;return h},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var r=this.element,o=this.config.popup,i=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Ze(r,e),e=Qr(r),i=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var s=this.offsetParent.clientWidth,a=o?this.position.x:this.element.getBoundingClientRect().left;s&&e+a>s&&(e=s-a)}this.getWidth()!==e&&(i?(r.style.maxWidth="unset",r.style.minWidth="unset"):this.config.popup?Ze(r,e):(r.style.width="".concat(e,"px"),r.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))},t.prototype.offsetElement=function(e,r){e===void 0&&(e=0),r===void 0&&(r=0);var o=this.config.forcePopupParentAsOffsetParent,i=o?this.boundaryEl:this.element;i&&(this.popupService.positionPopup({ePopup:i,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:r}}}),this.setPosition(parseFloat(i.style.left),parseFloat(i.style.top)))},t.prototype.constrainSizeToAvailableHeight=function(e){var r=this;if(this.config.forcePopupParentAsOffsetParent){var o=function(){var i=r.getAvailableHeight();r.element.style.setProperty("max-height","".concat(i,"px"))};e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),o):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},t.prototype.setPosition=function(e,r){this.position.x=e,this.position.y=r},t.prototype.updateDragStartPosition=function(e,r){this.dragStartPosition={x:e,y:r}},t.prototype.calculateMouseMovement=function(e){var r=e.e,o=e.isLeft,i=e.isTop,s=e.anywhereWithin,a=e.topBuffer,l=r.clientX-this.dragStartPosition.x,u=r.clientY-this.dragStartPosition.y,c=this.shouldSkipX(r,!!o,!!s,l)?0:l,p=this.shouldSkipY(r,!!i,a,u)?0:u;return{movementX:c,movementY:p}},t.prototype.shouldSkipX=function(e,r,o,i){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),l=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.x:s.left,c=u<=0&&a.left>=e.clientX||a.right<=e.clientX&&a.right<=l.right;return c?!0:(r?c=i<0&&e.clientX>u+a.left||i>0&&e.clientXl.right||i>0&&e.clientXl.right||i>0&&e.clientX=e.clientY||a.bottom<=e.clientY&&a.bottom<=l.bottom;return c?!0:(r?c=i<0&&e.clientY>u+a.top+o||i>0&&e.clientYl.bottom||i>0&&e.clientYthis.element.parentElement.offsetHeight&&(N=!0),N||this.setHeight(M)}this.updateDragStartPosition(e.clientX,e.clientY),((o||i)&&w||E)&&this.offsetElement(C+w,m+E)}},t.prototype.onResizeEnd=function(e,r){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize"};this.element.classList.remove("ag-resizing"),this.resizerMap[r].element.classList.remove("ag-active"),this.dispatchEvent(o)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var r=this.position,o=r.x,i=r.y,s;this.config.calculateTopBuffer&&(s=this.config.calculateTopBuffer());var a=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:s}),l=a.movementX,u=a.movementY;this.offsetElement(o+l,i+u),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},Zn([v("popupService")],t.prototype,"popupService",void 0),Zn([v("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Zn([v("dragService")],t.prototype,"dragService",void 0),t}(D),ad=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jn=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Jo=function(n){ad(t,n);function t(e){var r=n.call(this)||this;return r.filterNameKey=e,r.applyActive=!1,r.hidePopup=null,r.debouncePending=!1,r.appliedModel=null,r.buttonListeners=[],r}return t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new ar(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new Cl(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var r=this.getGui();r&&r.removeEventListener("submit",this.onFormSubmit);var o=`
`).concat(this.createBodyTemplate(),`
-
`);this.setTemplate(o,e),r=this.getGui(),r&&r.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var r=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){r.updateUiVisibility(),r.setupOnBtApplyDebounce()})},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.resetButtonsPanel()},t.prototype.updateParams=function(e){var r=this;this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.resetUiToActiveModel(this.getModel(),function(){r.updateUiVisibility(),r.setupOnBtApplyDebounce()})},t.prototype.resetButtonsPanel=function(){var e=this,r=this.providedFilterParams.buttons,o=r&&r.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(de(this.eButtonsPanel),this.buttonListeners.forEach(function(a){return a==null?void 0:a()}),this.buttonListeners=[]):o&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!o){this.eButtonsPanel&&ft(this.eButtonsPanel);return}var i=document.createDocumentFragment(),s=function(a){var l,u;switch(a){case"apply":l=e.translate("applyFilter"),u=function(d){return e.onBtApply(!1,!1,d)};break;case"clear":l=e.translate("clearFilter"),u=function(){return e.onBtClear()};break;case"reset":l=e.translate("resetFilter"),u=function(){return e.onBtReset()};break;case"cancel":l=e.translate("cancelFilter"),u=function(d){e.onBtCancel(d)};break;default:console.warn("AG Grid: Unknown button type specified");return}var c=a==="apply"?"submit":"button",p=Re(``));e.buttonListeners.push(e.addManagedListener(p,"click",u)),i.append(p)};Yn(r).forEach(function(a){return s(a)}),this.eButtonsPanel.append(i),this.getGui().appendChild(this.eButtonsPanel)},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,r=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),o=He(this.checkApplyDebounce.bind(this),r);this.onBtApplyDebounce=function(){e.debouncePending=!0,o()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var r=this,o=e!=null?this.setModelIntoUi(e):this.resetUiToDefaults();return o.then(function(){r.updateUiVisibility(),r.applyModel("api")})},t.prototype.onBtCancel=function(e){var r=this;this.resetUiToActiveModel(this.getModel(),function(){r.handleCancelEnd(e)})},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,r){var o=this,i=function(){o.onUiChanged(!1,"prevent"),r==null||r()};e!=null?this.setModelIntoUi(e).then(i):this.resetUiToDefaults().then(i)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){var r=this.getModelFromUi();if(!this.isModelValid(r))return!1;var o=this.appliedModel;return this.appliedModel=r,!this.areModelsEqual(o,r)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,r,o){if(e===void 0&&(e=!1),r===void 0&&(r=!1),o&&o.preventDefault(),this.applyModel(r?"rowDataUpdated":"ui")){var i="columnFilter";this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:r,source:i})}var s=this.providedFilterParams.closeOnApply;s&&this.applyActive&&!e&&!r&&this.close(o)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var r=e,o=r&&r.key,i;(o==="Enter"||o==="Space")&&(i={keyboardEvent:r}),this.hidePopup(i),this.hidePopup=null}},t.prototype.onUiChanged=function(e,r){if(e===void 0&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var o=this.isModelValid(this.getModelFromUi()),i=this.getRefElement("applyFilterButton");i&&Pr(i,!o)}e&&!r||r==="immediately"?this.onBtApply(e):(!this.applyActive&&!r||r==="debounce")&&this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e==null?void 0:e.container)},t.prototype.refreshFilterResizer=function(e){if(!(!this.positionableFeature||e==="toolPanel")){var r=e==="floatingFilter"||e==="columnFilter",o=this,i=o.positionableFeature,s=o.gridOptionsService;r?(i.restoreLastSize(),i.setResizable(s.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},t.getDebounceMs=function(e,r){return t.isUseApplyButton(e)?(e.debounceMs!=null&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:r},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.refresh=function(e){return this.providedFilterParams=e,!0},t.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,n.prototype.destroy.call(this)},t.prototype.translate=function(e){var r=this.localeService.getLocaleTextFunc();return r(e,vl[e])},t.prototype.getCellValue=function(e){return this.providedFilterParams.getValue(e)},t.prototype.getPositionableElement=function(){return this.eFilterBody},Zn([v("rowModel")],t.prototype,"rowModel",void 0),Zn([L("eFilterBody")],t.prototype,"eFilterBody",void 0),Zn([F],t.prototype,"postConstruct",null),t}(k),ad=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ld=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Cl=function(n){ad(t,n);function t(e,r){var o=n.call(this,r)||this;return o.labelSeparator="",o.labelAlignment="left",o.disabled=!1,o.label="",o.config=e||{},o}return t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,r=e.labelSeparator,o=e.label,i=e.labelWidth,s=e.labelAlignment;r!=null&&this.setLabelSeparator(r),o!=null&&this.setLabel(o),i!=null&&this.setLabelWidth(i),this.setLabelAlignment(s||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){de(this.eLabel),typeof this.label=="string"?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),this.label===""?($(this.eLabel,!1),le(this.eLabel,"presentation")):($(this.eLabel,!0),le(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-".concat(this.getCompId(),"-label"),this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},t.prototype.setLabelAlignment=function(e){var r=this.getGui(),o=r.classList;return o.toggle("ag-label-align-left",e==="left"),o.toggle("ag-label-align-right",e==="right"),o.toggle("ag-label-align-top",e==="top"),this},t.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},t.prototype.setLabelWidth=function(e){return this.label==null?this:(eo(this.eLabel,e),this)},t.prototype.setDisabled=function(e){e=!!e;var r=this.getGui();return Pr(r,e),r.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},ld([F],t.prototype,"postConstruct",null),t}(k),ud=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sl=function(n){ud(t,n);function t(e,r,o){var i=n.call(this,e,r)||this;return i.className=o,i}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()},t.prototype.refreshAriaLabelledBy=function(){var e=this.getAriaElement(),r=this.getLabelId();Na(e)!==null?Uo(e,""):Uo(e,r??"")},t.prototype.setAriaLabel=function(e){return Ht(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this},t.prototype.onValueChange=function(e){var r=this;return this.addManagedListener(this,g.EVENT_FIELD_VALUE_CHANGED,function(){return e(r.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Je(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,r){return this.value===e?this:(this.previousValue=this.value,this.value=e,r||this.dispatchEvent({type:g.EVENT_FIELD_VALUE_CHANGED}),this)},t}(Cl),cd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),oo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pd=` + `));e.buttonListeners.push(e.addManagedListener(p,"click",u)),i.append(p)};Yn(r).forEach(function(a){return s(a)}),this.eButtonsPanel.append(i),this.getGui().appendChild(this.eButtonsPanel)},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,r=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),o=He(this.checkApplyDebounce.bind(this),r);this.onBtApplyDebounce=function(){e.debouncePending=!0,o()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var r=this,o=e!=null?this.setModelIntoUi(e):this.resetUiToDefaults();return o.then(function(){r.updateUiVisibility(),r.applyModel("api")})},t.prototype.onBtCancel=function(e){var r=this;this.resetUiToActiveModel(this.getModel(),function(){r.handleCancelEnd(e)})},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,r){var o=this,i=function(){o.onUiChanged(!1,"prevent"),r==null||r()};e!=null?this.setModelIntoUi(e).then(i):this.resetUiToDefaults().then(i)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){var r=this.getModelFromUi();if(!this.isModelValid(r))return!1;var o=this.appliedModel;return this.appliedModel=r,!this.areModelsEqual(o,r)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,r,o){if(e===void 0&&(e=!1),r===void 0&&(r=!1),o&&o.preventDefault(),this.applyModel(r?"rowDataUpdated":"ui")){var i="columnFilter";this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:r,source:i})}var s=this.providedFilterParams.closeOnApply;s&&this.applyActive&&!e&&!r&&this.close(o)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var r=e,o=r&&r.key,i;(o==="Enter"||o==="Space")&&(i={keyboardEvent:r}),this.hidePopup(i),this.hidePopup=null}},t.prototype.onUiChanged=function(e,r){if(e===void 0&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var o=this.isModelValid(this.getModelFromUi()),i=this.getRefElement("applyFilterButton");i&&Pr(i,!o)}e&&!r||r==="immediately"?this.onBtApply(e):(!this.applyActive&&!r||r==="debounce")&&this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e==null?void 0:e.container)},t.prototype.refreshFilterResizer=function(e){if(!(!this.positionableFeature||e==="toolPanel")){var r=e==="floatingFilter"||e==="columnFilter",o=this,i=o.positionableFeature,s=o.gridOptionsService;r?(i.restoreLastSize(),i.setResizable(s.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},t.getDebounceMs=function(e,r){return t.isUseApplyButton(e)?(e.debounceMs!=null&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:r},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.refresh=function(e){return this.providedFilterParams=e,!0},t.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,n.prototype.destroy.call(this)},t.prototype.translate=function(e){var r=this.localeService.getLocaleTextFunc();return r(e,vl[e])},t.prototype.getCellValue=function(e){return this.providedFilterParams.getValue(e)},t.prototype.getPositionableElement=function(){return this.eFilterBody},Jn([v("rowModel")],t.prototype,"rowModel",void 0),Jn([L("eFilterBody")],t.prototype,"eFilterBody",void 0),Jn([F],t.prototype,"postConstruct",null),t}(k),ld=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ud=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ml=function(n){ld(t,n);function t(e,r){var o=n.call(this,r)||this;return o.labelSeparator="",o.labelAlignment="left",o.disabled=!1,o.label="",o.config=e||{},o}return t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,r=e.labelSeparator,o=e.label,i=e.labelWidth,s=e.labelAlignment;r!=null&&this.setLabelSeparator(r),o!=null&&this.setLabel(o),i!=null&&this.setLabelWidth(i),this.setLabelAlignment(s||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){de(this.eLabel),typeof this.label=="string"?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),this.label===""?($(this.eLabel,!1),le(this.eLabel,"presentation")):($(this.eLabel,!0),le(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-".concat(this.getCompId(),"-label"),this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},t.prototype.setLabelAlignment=function(e){var r=this.getGui(),o=r.classList;return o.toggle("ag-label-align-left",e==="left"),o.toggle("ag-label-align-right",e==="right"),o.toggle("ag-label-align-top",e==="top"),this},t.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},t.prototype.setLabelWidth=function(e){return this.label==null?this:(eo(this.eLabel,e),this)},t.prototype.setDisabled=function(e){e=!!e;var r=this.getGui();return Pr(r,e),r.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},ud([F],t.prototype,"postConstruct",null),t}(k),cd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sl=function(n){cd(t,n);function t(e,r,o){var i=n.call(this,e,r)||this;return i.className=o,i}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()},t.prototype.refreshAriaLabelledBy=function(){var e=this.getAriaElement(),r=this.getLabelId();Na(e)!==null?Uo(e,""):Uo(e,r??"")},t.prototype.setAriaLabel=function(e){return Ht(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this},t.prototype.onValueChange=function(e){var r=this;return this.addManagedListener(this,g.EVENT_FIELD_VALUE_CHANGED,function(){return e(r.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Ze(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,r){return this.value===e?this:(this.previousValue=this.value,this.value=e,r||this.dispatchEvent({type:g.EVENT_FIELD_VALUE_CHANGED}),this)},t}(ml),pd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),oo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dd=` `,wl=function(n){cd(t,n);function t(e){var r=n.call(this,e,(e==null?void 0:e.template)||pd,e==null?void 0:e.className)||this;if(r.isPickerDisplayed=!1,r.skipClick=!1,r.pickerGap=4,r.hideCurrentPicker=null,r.ariaRole=e==null?void 0:e.ariaRole,r.onPickerFocusIn=r.onPickerFocusIn.bind(r),r.onPickerFocusOut=r.onPickerFocusOut.bind(r),!e)return r;var o=e.pickerGap,i=e.maxPickerHeight,s=e.variableWidth,a=e.minPickerWidth,l=e.maxPickerWidth;return o!=null&&(r.pickerGap=o),r.variableWidth=!!s,i!=null&&r.setPickerMaxHeight(i),a!=null&&r.setPickerMinWidth(a),l!=null&&r.setPickerMaxWidth(l),r}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.setupAria();var e="ag-".concat(this.getCompId(),"-display");this.eDisplayField.setAttribute("id",e);var r=this.getAriaElement();this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var o=this.config.pickerIcon;if(o){var i=ne(o,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},t.prototype.setupAria=function(){var e=this.getAriaElement();e.setAttribute("tabindex",this.gridOptionsService.get("tabIndex").toString()),Pt(e,!1),this.ariaRole&&le(e,this.ariaRole)},t.prototype.onLabelOrWrapperMouseDown=function(e){if(e){var r=this.getFocusableElement();if(r!==this.eWrapper&&(e==null?void 0:e.target)===r)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},t.prototype.onKeyDown=function(e){switch(e.key){case _.UP:case _.DOWN:case _.ENTER:case _.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case _.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}},t.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},t.prototype.renderAndPositionPicker=function(){var e=this,r=this.gridOptionsService.getDocument(),o=this.pickerComponent.getGui();this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL,function(){e.hidePicker()}));var i=this.localeService.getLocaleTextFunc(),s=this.config,a=s.pickerAriaLabelKey,l=s.pickerAriaLabelValue,u=s.modalPicker,c=u===void 0?!0:u,p={modal:c,eChild:o,closeOnEsc:!0,closedCallback:function(){var E=r.activeElement===r.body;e.beforeHidePicker(),E&&e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:i(a,l)},d=this.popupService.addPopup(p),h=this,f=h.maxPickerHeight,y=h.minPickerWidth,m=h.maxPickerWidth,C=h.variableWidth;C?(y&&(o.style.minWidth=y),o.style.width=Qo(Qr(this.eWrapper)),m&&(o.style.maxWidth=m)):eo(o,m??Qr(this.eWrapper));var w=f??"".concat(qr(this.popupService.getPopupParent()),"px");return o.style.setProperty("max-height",w),o.style.position="absolute",this.alignPickerToComponent(),d.hideFunc},t.prototype.alignPickerToComponent=function(){if(this.pickerComponent){var e=this.config.pickerType,r=this.pickerGap,o=this.gridOptionsService.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:o,keepWithinBounds:!0,nudgeY:r})}},t.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},t.prototype.toggleExpandedStyles=function(e){if(this.isAlive()){var r=this.getAriaElement();Pt(r,e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e)}},t.prototype.onPickerFocusIn=function(){this.togglePickerHasFocus(!0)},t.prototype.onPickerFocusOut=function(e){var r;!((r=this.pickerComponent)===null||r===void 0)&&r.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)},t.prototype.togglePickerHasFocus=function(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)},t.prototype.hidePicker=function(){this.hideCurrentPicker&&this.hideCurrentPicker()},t.prototype.setInputWidth=function(e){return eo(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},t.prototype.setPickerGap=function(e){return this.pickerGap=e,this},t.prototype.setPickerMinWidth=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.minPickerWidth=e??void 0,this},t.prototype.setPickerMaxWidth=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.maxPickerWidth=e??void 0,this},t.prototype.setPickerMaxHeight=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.maxPickerHeight=e??void 0,this},t.prototype.destroy=function(){this.hidePicker(),n.prototype.destroy.call(this)},oo([v("popupService")],t.prototype,"popupService",void 0),oo([L("eLabel")],t.prototype,"eLabel",void 0),oo([L("eWrapper")],t.prototype,"eWrapper",void 0),oo([L("eDisplayField")],t.prototype,"eDisplayField",void 0),oo([L("eIcon")],t.prototype,"eIcon",void 0),t}(Sl),dd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},El=function(n){dd(t,n);function t(e){e===void 0&&(e="default");var r=n.call(this,'
'))||this;return r.cssIdentifier=e,r.options=[],r.itemEls=[],r}return t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var r=e.key;switch(r){case _.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}break;case _.DOWN:case _.UP:var i=r===_.DOWN,s=void 0;if(e.preventDefault(),!this.highlightedEl)s=this.itemEls[i?0:this.itemEls.length-1];else{var a=this.itemEls.indexOf(this.highlightedEl),l=a+(i?1:-1);l=Math.min(Math.max(l,0),this.itemEls.length-1),s=this.itemEls[l]}this.highlightItem(s);break}},t.prototype.addOptions=function(e){var r=this;return e.forEach(function(o){return r.addOption(o)}),this},t.prototype.addOption=function(e){var r=e.value,o=e.text,i=ae(o||r);return this.options.push({value:r,text:i}),this.renderOption(r,i),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(function(r,o){gn(r,o+1),vn(r,e.length)})},t.prototype.renderOption=function(e,r){var o=this,i=document.createElement("div");le(i,"option"),i.classList.add("ag-list-item","ag-".concat(this.cssIdentifier,"-list-item")),i.innerHTML="".concat(r,""),i.tabIndex=-1,this.itemEls.push(i),this.addManagedListener(i,"mouseover",function(){return o.highlightItem(i)}),this.addManagedListener(i,"mouseleave",function(){return o.clearHighlighted()}),this.addManagedListener(i,"click",function(){return o.setValue(e)}),this.getGui().appendChild(i)},t.prototype.setValue=function(e,r){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(),this;var o=this.options.findIndex(function(s){return s.value===e});if(o!==-1){var i=this.options[o];this.value=i.value,this.displayValue=i.text!=null?i.text:i.value,this.highlightItem(this.itemEls[o]),r||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var r=this.options.findIndex(function(o){return o.value===e.value});r!==-1&&this.highlightItem(this.itemEls[r])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){We(e)&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),Rr(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){!this.highlightedEl||!We(this.highlightedEl)||(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),Rr(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:g.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",hd([F],t.prototype,"init",null),t}(k),fd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),es=function(){return es=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kt=function(n){vd(t,n);function t(e,r,o,i){o===void 0&&(o="text"),i===void 0&&(i="input");var s=n.call(this,e,` + `,wl=function(n){pd(t,n);function t(e){var r=n.call(this,e,(e==null?void 0:e.template)||dd,e==null?void 0:e.className)||this;if(r.isPickerDisplayed=!1,r.skipClick=!1,r.pickerGap=4,r.hideCurrentPicker=null,r.ariaRole=e==null?void 0:e.ariaRole,r.onPickerFocusIn=r.onPickerFocusIn.bind(r),r.onPickerFocusOut=r.onPickerFocusOut.bind(r),!e)return r;var o=e.pickerGap,i=e.maxPickerHeight,s=e.variableWidth,a=e.minPickerWidth,l=e.maxPickerWidth;return o!=null&&(r.pickerGap=o),r.variableWidth=!!s,i!=null&&r.setPickerMaxHeight(i),a!=null&&r.setPickerMinWidth(a),l!=null&&r.setPickerMaxWidth(l),r}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.setupAria();var e="ag-".concat(this.getCompId(),"-display");this.eDisplayField.setAttribute("id",e);var r=this.getAriaElement();this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var o=this.config.pickerIcon;if(o){var i=ne(o,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},t.prototype.setupAria=function(){var e=this.getAriaElement();e.setAttribute("tabindex",this.gridOptionsService.get("tabIndex").toString()),Pt(e,!1),this.ariaRole&&le(e,this.ariaRole)},t.prototype.onLabelOrWrapperMouseDown=function(e){if(e){var r=this.getFocusableElement();if(r!==this.eWrapper&&(e==null?void 0:e.target)===r)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},t.prototype.onKeyDown=function(e){switch(e.key){case _.UP:case _.DOWN:case _.ENTER:case _.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case _.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}},t.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},t.prototype.renderAndPositionPicker=function(){var e=this,r=this.gridOptionsService.getDocument(),o=this.pickerComponent.getGui();this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL,function(){e.hidePicker()}));var i=this.localeService.getLocaleTextFunc(),s=this.config,a=s.pickerAriaLabelKey,l=s.pickerAriaLabelValue,u=s.modalPicker,c=u===void 0?!0:u,p={modal:c,eChild:o,closeOnEsc:!0,closedCallback:function(){var E=r.activeElement===r.body;e.beforeHidePicker(),E&&e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:i(a,l)},d=this.popupService.addPopup(p),h=this,f=h.maxPickerHeight,y=h.minPickerWidth,C=h.maxPickerWidth,m=h.variableWidth;m?(y&&(o.style.minWidth=y),o.style.width=Qo(Qr(this.eWrapper)),C&&(o.style.maxWidth=C)):eo(o,C??Qr(this.eWrapper));var w=f??"".concat(qr(this.popupService.getPopupParent()),"px");return o.style.setProperty("max-height",w),o.style.position="absolute",this.alignPickerToComponent(),d.hideFunc},t.prototype.alignPickerToComponent=function(){if(this.pickerComponent){var e=this.config.pickerType,r=this.pickerGap,o=this.gridOptionsService.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:o,keepWithinBounds:!0,nudgeY:r})}},t.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},t.prototype.toggleExpandedStyles=function(e){if(this.isAlive()){var r=this.getAriaElement();Pt(r,e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e)}},t.prototype.onPickerFocusIn=function(){this.togglePickerHasFocus(!0)},t.prototype.onPickerFocusOut=function(e){var r;!((r=this.pickerComponent)===null||r===void 0)&&r.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)},t.prototype.togglePickerHasFocus=function(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)},t.prototype.hidePicker=function(){this.hideCurrentPicker&&this.hideCurrentPicker()},t.prototype.setInputWidth=function(e){return eo(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},t.prototype.setPickerGap=function(e){return this.pickerGap=e,this},t.prototype.setPickerMinWidth=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.minPickerWidth=e??void 0,this},t.prototype.setPickerMaxWidth=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.maxPickerWidth=e??void 0,this},t.prototype.setPickerMaxHeight=function(e){return typeof e=="number"&&(e="".concat(e,"px")),this.maxPickerHeight=e??void 0,this},t.prototype.destroy=function(){this.hidePicker(),n.prototype.destroy.call(this)},oo([v("popupService")],t.prototype,"popupService",void 0),oo([L("eLabel")],t.prototype,"eLabel",void 0),oo([L("eWrapper")],t.prototype,"eWrapper",void 0),oo([L("eDisplayField")],t.prototype,"eDisplayField",void 0),oo([L("eIcon")],t.prototype,"eIcon",void 0),t}(Sl),hd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},El=function(n){hd(t,n);function t(e){e===void 0&&(e="default");var r=n.call(this,'
'))||this;return r.cssIdentifier=e,r.options=[],r.itemEls=[],r}return t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var r=e.key;switch(r){case _.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}break;case _.DOWN:case _.UP:var i=r===_.DOWN,s=void 0;if(e.preventDefault(),!this.highlightedEl)s=this.itemEls[i?0:this.itemEls.length-1];else{var a=this.itemEls.indexOf(this.highlightedEl),l=a+(i?1:-1);l=Math.min(Math.max(l,0),this.itemEls.length-1),s=this.itemEls[l]}this.highlightItem(s);break}},t.prototype.addOptions=function(e){var r=this;return e.forEach(function(o){return r.addOption(o)}),this},t.prototype.addOption=function(e){var r=e.value,o=e.text,i=ae(o||r);return this.options.push({value:r,text:i}),this.renderOption(r,i),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(function(r,o){gn(r,o+1),vn(r,e.length)})},t.prototype.renderOption=function(e,r){var o=this,i=document.createElement("div");le(i,"option"),i.classList.add("ag-list-item","ag-".concat(this.cssIdentifier,"-list-item")),i.innerHTML="".concat(r,""),i.tabIndex=-1,this.itemEls.push(i),this.addManagedListener(i,"mouseover",function(){return o.highlightItem(i)}),this.addManagedListener(i,"mouseleave",function(){return o.clearHighlighted()}),this.addManagedListener(i,"click",function(){return o.setValue(e)}),this.getGui().appendChild(i)},t.prototype.setValue=function(e,r){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(),this;var o=this.options.findIndex(function(s){return s.value===e});if(o!==-1){var i=this.options[o];this.value=i.value,this.displayValue=i.text!=null?i.text:i.value,this.highlightItem(this.itemEls[o]),r||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var r=this.options.findIndex(function(o){return o.value===e.value});r!==-1&&this.highlightItem(this.itemEls[r])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){We(e)&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),Rr(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){!this.highlightedEl||!We(this.highlightedEl)||(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),Rr(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:g.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",fd([F],t.prototype,"init",null),t}(k),vd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),es=function(){return es=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kt=function(n){gd(t,n);function t(e,r,o,i){o===void 0&&(o="text"),i===void 0&&(i="input");var s=n.call(this,e,`
-
`),r)||this;return s.inputType=o,s.displayFieldTag=i,s}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add("".concat(this.className,"-label")),this.eWrapper.classList.add("".concat(this.className,"-input-wrapper")),this.eInput.classList.add("".concat(this.className,"-input")),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-".concat(this.getCompId(),"-input");var e=this.config,r=e.width,o=e.value;r!=null&&this.setWidth(r),o!=null&&this.setValue(o),this.addInputListeners(),this.activateTabIndex([this.eInput])},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(r){return e.setValue(r.target.value)})},t.prototype.setInputType=function(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return eo(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){var r=this.eInput;return r.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return vt(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Ht(this.eInput,e),this.refreshAriaLabelledBy(),this},t.prototype.setDisabled=function(e){return Pr(this.eInput,e),n.prototype.setDisabled.call(this,e)},t.prototype.setAutoComplete=function(e){if(e===!0)vt(this.eInput,"autocomplete",null);else{var r=typeof e=="string"?e:"off";vt(this.eInput,"autocomplete",r)}return this},ts([L("eLabel")],t.prototype,"eLabel",void 0),ts([L("eWrapper")],t.prototype,"eWrapper",void 0),ts([L("eInput")],t.prototype,"eInput",void 0),t}(Sl),gd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ti=function(n){gd(t,n);function t(e,r,o){r===void 0&&(r="ag-checkbox"),o===void 0&&(o="checkbox");var i=n.call(this,e,r,o)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return this.selected===void 0?!0:!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),n.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),r=this.getNextValue();this.passive?this.dispatchChange(r,e):this.setValue(r)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,r){return this.refreshSelectedClass(e),this.setSelected(e,r),this},t.prototype.setName=function(e){var r=this.getInputElement();return r.name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,r){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,r||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,r,o){this.dispatchEvent({type:g.EVENT_FIELD_VALUE_CHANGED,selected:e,previousValue:r,event:o});var i=this.getInputElement(),s={type:g.EVENT_CHECKBOX_CHANGED,id:i.id,name:i.name,selected:e,previousValue:r};this.eventService.dispatchEvent(s)},t.prototype.onCheckboxClick=function(e){if(!(this.passive||this.eInput.disabled)){var r=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,r,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",e===!0),this.eWrapper.classList.toggle("ag-indeterminate",e==null)},t}(kt),yd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),_l=function(n){yd(t,n);function t(e){return n.call(this,e,"ag-radio-button","radio")||this}return t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){n.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,g.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(ti),md=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Cd=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Sd=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,r){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(r),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){var r=this;this.eTypes.forEach(function(o,i){i===0?o.setValue(e,!0):o.setValue(r.optionsFactory.getDefaultOption(),!0)})},t.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},t.prototype.getConditionTypes=function(){return this.eTypes.map(function(e){return e.getValue()})},t.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},t.prototype.getJoinOperator=function(){return this.eJoinOperatorsOr.length===0?this.defaultJoinOperator:this.eJoinOperatorsOr[0].getValue()===!0?"OR":"AND"},t.prototype.areModelsEqual=function(e,r){var o=this;if(!e&&!r)return!0;if(!e&&r||e&&!r)return!1;var i=!e.operator,s=!r.operator,a=!i&&s||i&&!s;if(a)return!1;var l;if(i){var u=e,c=r;l=this.areSimpleModelsEqual(u,c)}else{var p=e,d=r;l=p.operator===d.operator&&Tt(p.conditions,d.conditions,function(h,f){return o.areSimpleModelsEqual(h,f)})}return l},t.prototype.shouldRefresh=function(e){var r,o,i,s=this.getModel(),a=s?(r=s.conditions)!==null&&r!==void 0?r:[s]:null,l=(i=(o=e.filterOptions)===null||o===void 0?void 0:o.map(function(c){return typeof c=="string"?c:c.displayKey}))!==null&&i!==void 0?i:this.getDefaultFilterOptions(),u=!a||a.every(function(c){return l.find(function(p){return p===c.type})!==void 0});return!(!u||typeof e.maxNumConditions=="number"&&a&&a.length>e.maxNumConditions)},t.prototype.refresh=function(e){if(!this.shouldRefresh(e))return!1;var r=n.prototype.refresh.call(this,e);return r?(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0):!1},t.prototype.setModelIntoUi=function(e){var r=this,o=e.operator;if(o){var i=e;i.conditions||(i.conditions=[i.condition1,i.condition2]);var s=this.validateAndUpdateConditions(i.conditions),a=this.getNumConditions();if(sa)for(var l=a;l1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(c.type,!0),this.setConditionIntoUi(c,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),je.resolve()},t.prototype.validateAndUpdateConditions=function(e){var r=e.length;return r>this.maxNumConditions&&(e.splice(this.maxNumConditions),V('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),r=this.maxNumConditions),r},t.prototype.doesFilterPass=function(e){var r=this,o,i=this.getModel();if(i==null)return!0;var s=i.operator,a=[];if(s){var l=i;a.push.apply(a,Sd([],Cd((o=l.conditions)!==null&&o!==void 0?o:[]),!1))}else a.push(i);var u=s&&s==="OR"?"some":"every";return a[u](function(c){return r.individualConditionPasses(e,c)})},t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new fl,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")},t.prototype.setNumConditions=function(e){var r,o;e.suppressAndOrCondition!=null&&V('Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.'),e.alwaysShowBothConditions!=null&&V('Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.'),this.maxNumConditions=(r=e.maxNumConditions)!==null&&r!==void 0?r:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(V('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=(o=e.numAlwaysVisibleConditions)!==null&&o!==void 0?o:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(V('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(V('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,r=this.createManagedBean(new ei);this.eTypes.push(r),r.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(r.getGui());var o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(r),this.resetType(r);var i=this.getNumConditions()-1;this.forEachPositionInput(i,function(s){return e.resetInput(s)}),this.addChangedListeners(r,i)},t.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var r=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),o=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var i=this.eJoinOperatorPanels.length-1,s=this.joinOperatorId++;this.resetJoinOperatorAnd(r,i,s),this.resetJoinOperatorOr(o,i,s),this.isReadOnly()||(r.onValueChange(this.listener),o.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,r,o){var i=this.createManagedBean(new _l);return e.push(i),i.addCssClass("ag-filter-condition-operator"),i.addCssClass("ag-filter-condition-operator-".concat(o)),r.appendChild(i.getGui()),i},t.prototype.getDefaultJoinOperator=function(e){return e==="AND"||e==="OR"?e:"AND"},t.prototype.createFilterListOptions=function(){var e=this,r=this.optionsFactory.getFilterOptions();this.filterListOptions=r.map(function(o){return typeof o=="string"?e.createBoilerplateListOption(o):e.createCustomListOption(o)})},t.prototype.putOptionsIntoDropdown=function(e){this.filterListOptions.forEach(function(r){e.addOption(r)}),e.setDisabled(this.filterListOptions.length<=1)},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var r=e.displayKey,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:r,text:o?this.localeService.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(r)}},t.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},t.prototype.createBodyTemplate=function(){return""},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},t.prototype.updateNumConditions=function(){for(var e,r=-1,o=!0,i=0;i0&&this.removeConditionsAndOperators(a,l),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=r},t.prototype.updateConditionStatusesAndValues=function(e,r){var o=this;this.eTypes.forEach(function(s,a){var l=o.isConditionDisabled(a,e);s.setDisabled(l||o.filterListOptions.length<=1),a===1&&(Pr(o.eJoinOperatorPanels[0],l),o.eJoinOperatorsAnd[0].setDisabled(l),o.eJoinOperatorsOr[0].setDisabled(l))}),this.eConditionBodies.forEach(function(s,a){$(s,o.isConditionBodyVisible(a))});var i=(r??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(function(s,a){s.setValue(!i,!0)}),this.eJoinOperatorsOr.forEach(function(s,a){s.setValue(i,!0)}),this.forEachInput(function(s,a,l,u){o.setElementDisplayed(s,a=this.getNumConditions())){this.removeComponents(this.eTypes,e,r),this.removeElements(this.eConditionBodies,e,r),this.removeValueElements(e,r);var o=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,o,r),this.removeComponents(this.eJoinOperatorsAnd,o,r),this.removeComponents(this.eJoinOperatorsOr,o,r)}},t.prototype.removeElements=function(e,r,o){var i=this.removeItems(e,r,o);i.forEach(function(s){return ft(s)})},t.prototype.removeComponents=function(e,r,o){var i=this,s=this.removeItems(e,r,o);s.forEach(function(a){ft(a.getGui()),i.destroyBean(a)})},t.prototype.removeItems=function(e,r,o){return o==null?e.splice(r):e.splice(r,o)},t.prototype.afterGuiAttached=function(e){if(n.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!(e!=null&&e.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{var r=this.getInputs(0)[0];if(!r)return;r instanceof kt&&r.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){n.prototype.afterGuiDetached.call(this);var e=this.getModel();this.resetUiToActiveModel(e);for(var r=-1,o=-1,i=!1,s=this.getJoinOperator(),a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))r===-1&&(r=a,o=a);else{var l=a>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1),u=a1?"inRangeStart":i===0?"filterOoo":"inRangeEnd",u=i===0&&a>1?r("ariaFilterFromValue","Filter from value"):i===0?r("ariaFilterValue","Filter Value"):r("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(e.getPlaceholderText(l,s)),o.setInputAriaLabel(u)}})},t.prototype.setElementValue=function(e,r,o){e instanceof kt&&e.setValue(r!=null?String(r):null,!0)},t.prototype.setElementDisplayed=function(e,r){e instanceof k&&$(e.getGui(),r)},t.prototype.setElementDisabled=function(e,r){e instanceof k&&Pr(e.getGui(),r)},t.prototype.attachElementOnChange=function(e,r){e instanceof kt&&e.onValueChange(r)},t.prototype.forEachInput=function(e){var r=this;this.getConditionTypes().forEach(function(o,i){r.forEachPositionTypeInput(i,o,e)})},t.prototype.forEachPositionInput=function(e,r){var o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,r)},t.prototype.forEachPositionTypeInput=function(e,r,o){for(var i=this.getNumberOfInputs(r),s=this.getInputs(e),a=0;ar+1},t.prototype.isConditionBodyVisible=function(e){var r=this.getConditionType(e),o=this.getNumberOfInputs(r);return o>0},t.prototype.isConditionUiComplete=function(e){if(e>=this.getNumConditions())return!1;var r=this.getConditionType(e);return!(r===t.EMPTY||this.getValues(e).some(function(o){return o==null}))},t.prototype.getNumConditions=function(){return this.eTypes.length},t.prototype.getUiCompleteConditions=function(){for(var e=[],r=0;r0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,r){var o=this,i=this.mapValuesFromModel(e);this.forEachInput(function(s,a,l,u){l===r&&o.setElementValue(s,i[a]!=null?i[a]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var r=this;this.forEachInput(function(o,i,s,a){r.setElementValue(o,i===0&&s===0?e:null,!0)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,r){var o=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(r,function(i){o.attachElementOnChange(i,o.listener)}))},t.prototype.individualConditionPasses=function(e,r){var o=this.getCellValue(e.node),i=this.mapValuesFromModel(r),s=this.optionsFactory.getCustomOption(r.type),a=this.evaluateCustomFilter(s,i,o);return a??(o==null?this.evaluateNullValue(r.type):this.evaluateNonNullValue(i,o,r,e))},t.prototype.evaluateCustomFilter=function(e,r,o){if(e!=null){var i=e.predicate;if(i!=null&&!r.some(function(s){return s==null}))return i(r,o)}},t.prototype.isBlank=function(e){return e==null||typeof e=="string"&&e.trim().length===0},t.prototype.hasInvalidInputs=function(){return!1},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",t}(Zo),wd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ce=function(n){wd(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.scalarFilterParams=e},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,r,o){var i=this.comparator(),s=e[0]!=null?i(e[0],r):0;switch(o.type){case t.EQUALS:return s===0;case t.NOT_EQUAL:return s!==0;case t.GREATER_THAN:return s>0;case t.GREATER_THAN_OR_EQUAL:return s>=0;case t.LESS_THAN:return s<0;case t.LESS_THAN_OR_EQUAL:return s<=0;case t.IN_RANGE:{var a=i(e[1],r);return this.scalarFilterParams.inRangeInclusive?s>=0&&a<=0:s>0&&a<0}case t.BLANK:return this.isBlank(r);case t.NOT_BLANK:return!this.isBlank(r);default:return console.warn('AG Grid: Unexpected type of filter "'+o.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(re),Rl=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),os=function(){return os=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ol=1e3,Tl=1/0,Pl=function(n){Rl(t,n);function t(e,r,o){var i=n.call(this,r,o)||this;return i.dateFilterParams=e,i}return t.prototype.conditionToString=function(e,r){var o=e.type,i=(r||{}).numberOfInputs,s=o==re.IN_RANGE||i===2,a=_e(e.dateFrom),l=_e(e.dateTo),u=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(s){var c=a!==null?Tr(a,u):"null",p=l!==null?Tr(l,u):"null";return"".concat(c,"-").concat(p)}return a!=null?Tr(a,u):"".concat(o)},t.prototype.updateParams=function(e){n.prototype.updateParams.call(this,e),this.dateFilterParams=e.dateFilterParams},t}(rs),Dl=function(n){Rl(t,n);function t(){var e=n.call(this,"dateFilter")||this;return e.eConditionPanelsFrom=[],e.eConditionPanelsTo=[],e.dateConditionFromComps=[],e.dateConditionToComps=[],e.minValidYear=Ol,e.maxValidYear=Tl,e.minValidDate=null,e.maxValidDate=null,e}return t.prototype.afterGuiAttached=function(e){n.prototype.afterGuiAttached.call(this,e),this.dateConditionFromComps[0].afterGuiAttached(e)},t.prototype.mapValuesFromModel=function(e){var r=e||{},o=r.dateFrom,i=r.dateTo,s=r.type;return[o&&_e(o)||null,i&&_e(i)||null].slice(0,this.getNumberOfInputs(s))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,r){var o=r;return r==null||oe?1:0},t.prototype.setParams=function(e){this.dateFilterParams=e,n.prototype.setParams.call(this,e);var r=function(o,i){if(e[o]!=null)if(isNaN(e[o]))console.warn("AG Grid: DateFilter ".concat(o," is not a number"));else return e[o]==null?i:Number(e[o]);return i};this.minValidYear=r("minValidYear",Ol),this.maxValidYear=r("maxValidYear",Tl),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:_e(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:_e(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new Pl(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var r=this,o=new hl(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return r.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc(function(){return o.destroy()}),o},t.prototype.setElementValue=function(e,r){e.setDate(r)},t.prototype.setElementDisplayed=function(e,r){e.setDisplayed(r)},t.prototype.setElementDisabled=function(e,r){e.setDisabled(r)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},t.prototype.createFromToElement=function(e,r,o,i){var s=document.createElement("div");s.classList.add("ag-filter-".concat(i)),s.classList.add("ag-filter-date-".concat(i)),r.push(s),e.appendChild(s),o.push(this.createDateCompWrapper(s))},t.prototype.removeValueElements=function(e,r){this.removeDateComps(this.dateConditionFromComps,e,r),this.removeDateComps(this.dateConditionToComps,e,r),this.removeItems(this.eConditionPanelsFrom,e,r),this.removeItems(this.eConditionPanelsTo,e,r)},t.prototype.removeDateComps=function(e,r,o){var i=this.removeItems(e,r,o);i.forEach(function(s){return s.destroy()})},t.prototype.isValidDateValue=function(e){if(e===null)return!1;if(this.minValidDate){if(ethis.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0},t.prototype.isConditionUiComplete=function(e){var r=this;if(!n.prototype.isConditionUiComplete.call(this,e))return!1;var o=!0;return this.forEachInput(function(i,s,a,l){a!==e||!o||s>=l||(o=o&&r.isValidDateValue(i.getDate()))}),o},t.prototype.areSimpleModelsEqual=function(e,r){return e.dateFrom===r.dateFrom&&e.dateTo===r.dateTo&&e.type===r.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var r=this.getConditionType(e),o={},i=this.getValues(e);return i.length>0&&(o.dateFrom=Xe(i[0])),i.length>1&&(o.dateTo=Xe(i[1])),os({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:r},o)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),r=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput(function(i){i.setInputPlaceholder(r),i.setInputAriaLabel(o)})},t.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},t.prototype.getValues=function(e){var r=[];return this.forEachPositionInput(e,function(o,i,s,a){i=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Od=function(n){Rd(t,n);function t(){return n.call(this,` + `),r)||this;return s.inputType=o,s.displayFieldTag=i,s}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add("".concat(this.className,"-label")),this.eWrapper.classList.add("".concat(this.className,"-input-wrapper")),this.eInput.classList.add("".concat(this.className,"-input")),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-".concat(this.getCompId(),"-input");var e=this.config,r=e.width,o=e.value;r!=null&&this.setWidth(r),o!=null&&this.setValue(o),this.addInputListeners(),this.activateTabIndex([this.eInput])},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(r){return e.setValue(r.target.value)})},t.prototype.setInputType=function(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return eo(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){var r=this.eInput;return r.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return vt(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Ht(this.eInput,e),this.refreshAriaLabelledBy(),this},t.prototype.setDisabled=function(e){return Pr(this.eInput,e),n.prototype.setDisabled.call(this,e)},t.prototype.setAutoComplete=function(e){if(e===!0)vt(this.eInput,"autocomplete",null);else{var r=typeof e=="string"?e:"off";vt(this.eInput,"autocomplete",r)}return this},ts([L("eLabel")],t.prototype,"eLabel",void 0),ts([L("eWrapper")],t.prototype,"eWrapper",void 0),ts([L("eInput")],t.prototype,"eInput",void 0),t}(Sl),yd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ti=function(n){yd(t,n);function t(e,r,o){r===void 0&&(r="ag-checkbox"),o===void 0&&(o="checkbox");var i=n.call(this,e,r,o)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return this.selected===void 0?!0:!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),n.prototype.setDisabled.call(this,e)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),r=this.getNextValue();this.passive?this.dispatchChange(r,e):this.setValue(r)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,r){return this.refreshSelectedClass(e),this.setSelected(e,r),this},t.prototype.setName=function(e){var r=this.getInputElement();return r.name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,r){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,r||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,r,o){this.dispatchEvent({type:g.EVENT_FIELD_VALUE_CHANGED,selected:e,previousValue:r,event:o});var i=this.getInputElement(),s={type:g.EVENT_CHECKBOX_CHANGED,id:i.id,name:i.name,selected:e,previousValue:r};this.eventService.dispatchEvent(s)},t.prototype.onCheckboxClick=function(e){if(!(this.passive||this.eInput.disabled)){var r=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,r,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",e===!0),this.eWrapper.classList.toggle("ag-indeterminate",e==null)},t}(kt),Cd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),_l=function(n){Cd(t,n);function t(e){return n.call(this,e,"ag-radio-button","radio")||this}return t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){n.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,g.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(ti),md=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sd=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},wd=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,r){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(r),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){var r=this;this.eTypes.forEach(function(o,i){i===0?o.setValue(e,!0):o.setValue(r.optionsFactory.getDefaultOption(),!0)})},t.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},t.prototype.getConditionTypes=function(){return this.eTypes.map(function(e){return e.getValue()})},t.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},t.prototype.getJoinOperator=function(){return this.eJoinOperatorsOr.length===0?this.defaultJoinOperator:this.eJoinOperatorsOr[0].getValue()===!0?"OR":"AND"},t.prototype.areModelsEqual=function(e,r){var o=this;if(!e&&!r)return!0;if(!e&&r||e&&!r)return!1;var i=!e.operator,s=!r.operator,a=!i&&s||i&&!s;if(a)return!1;var l;if(i){var u=e,c=r;l=this.areSimpleModelsEqual(u,c)}else{var p=e,d=r;l=p.operator===d.operator&&Tt(p.conditions,d.conditions,function(h,f){return o.areSimpleModelsEqual(h,f)})}return l},t.prototype.shouldRefresh=function(e){var r,o,i,s=this.getModel(),a=s?(r=s.conditions)!==null&&r!==void 0?r:[s]:null,l=(i=(o=e.filterOptions)===null||o===void 0?void 0:o.map(function(c){return typeof c=="string"?c:c.displayKey}))!==null&&i!==void 0?i:this.getDefaultFilterOptions(),u=!a||a.every(function(c){return l.find(function(p){return p===c.type})!==void 0});return!(!u||typeof e.maxNumConditions=="number"&&a&&a.length>e.maxNumConditions)},t.prototype.refresh=function(e){if(!this.shouldRefresh(e))return!1;var r=n.prototype.refresh.call(this,e);return r?(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0):!1},t.prototype.setModelIntoUi=function(e){var r=this,o=e.operator;if(o){var i=e;i.conditions||(i.conditions=[i.condition1,i.condition2]);var s=this.validateAndUpdateConditions(i.conditions),a=this.getNumConditions();if(sa)for(var l=a;l1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(c.type,!0),this.setConditionIntoUi(c,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),je.resolve()},t.prototype.validateAndUpdateConditions=function(e){var r=e.length;return r>this.maxNumConditions&&(e.splice(this.maxNumConditions),V('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),r=this.maxNumConditions),r},t.prototype.doesFilterPass=function(e){var r=this,o,i=this.getModel();if(i==null)return!0;var s=i.operator,a=[];if(s){var l=i;a.push.apply(a,wd([],Sd((o=l.conditions)!==null&&o!==void 0?o:[]),!1))}else a.push(i);var u=s&&s==="OR"?"some":"every";return a[u](function(c){return r.individualConditionPasses(e,c)})},t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new fl,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")},t.prototype.setNumConditions=function(e){var r,o;e.suppressAndOrCondition!=null&&V('Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.'),e.alwaysShowBothConditions!=null&&V('Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.'),this.maxNumConditions=(r=e.maxNumConditions)!==null&&r!==void 0?r:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(V('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=(o=e.numAlwaysVisibleConditions)!==null&&o!==void 0?o:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(V('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(V('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,r=this.createManagedBean(new ei);this.eTypes.push(r),r.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(r.getGui());var o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(r),this.resetType(r);var i=this.getNumConditions()-1;this.forEachPositionInput(i,function(s){return e.resetInput(s)}),this.addChangedListeners(r,i)},t.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var r=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),o=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var i=this.eJoinOperatorPanels.length-1,s=this.joinOperatorId++;this.resetJoinOperatorAnd(r,i,s),this.resetJoinOperatorOr(o,i,s),this.isReadOnly()||(r.onValueChange(this.listener),o.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,r,o){var i=this.createManagedBean(new _l);return e.push(i),i.addCssClass("ag-filter-condition-operator"),i.addCssClass("ag-filter-condition-operator-".concat(o)),r.appendChild(i.getGui()),i},t.prototype.getDefaultJoinOperator=function(e){return e==="AND"||e==="OR"?e:"AND"},t.prototype.createFilterListOptions=function(){var e=this,r=this.optionsFactory.getFilterOptions();this.filterListOptions=r.map(function(o){return typeof o=="string"?e.createBoilerplateListOption(o):e.createCustomListOption(o)})},t.prototype.putOptionsIntoDropdown=function(e){this.filterListOptions.forEach(function(r){e.addOption(r)}),e.setDisabled(this.filterListOptions.length<=1)},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var r=e.displayKey,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:r,text:o?this.localeService.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(r)}},t.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},t.prototype.createBodyTemplate=function(){return""},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},t.prototype.updateNumConditions=function(){for(var e,r=-1,o=!0,i=0;i0&&this.removeConditionsAndOperators(a,l),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=r},t.prototype.updateConditionStatusesAndValues=function(e,r){var o=this;this.eTypes.forEach(function(s,a){var l=o.isConditionDisabled(a,e);s.setDisabled(l||o.filterListOptions.length<=1),a===1&&(Pr(o.eJoinOperatorPanels[0],l),o.eJoinOperatorsAnd[0].setDisabled(l),o.eJoinOperatorsOr[0].setDisabled(l))}),this.eConditionBodies.forEach(function(s,a){$(s,o.isConditionBodyVisible(a))});var i=(r??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(function(s,a){s.setValue(!i,!0)}),this.eJoinOperatorsOr.forEach(function(s,a){s.setValue(i,!0)}),this.forEachInput(function(s,a,l,u){o.setElementDisplayed(s,a=this.getNumConditions())){this.removeComponents(this.eTypes,e,r),this.removeElements(this.eConditionBodies,e,r),this.removeValueElements(e,r);var o=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,o,r),this.removeComponents(this.eJoinOperatorsAnd,o,r),this.removeComponents(this.eJoinOperatorsOr,o,r)}},t.prototype.removeElements=function(e,r,o){var i=this.removeItems(e,r,o);i.forEach(function(s){return ft(s)})},t.prototype.removeComponents=function(e,r,o){var i=this,s=this.removeItems(e,r,o);s.forEach(function(a){ft(a.getGui()),i.destroyBean(a)})},t.prototype.removeItems=function(e,r,o){return o==null?e.splice(r):e.splice(r,o)},t.prototype.afterGuiAttached=function(e){if(n.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!(e!=null&&e.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{var r=this.getInputs(0)[0];if(!r)return;r instanceof kt&&r.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){n.prototype.afterGuiDetached.call(this);var e=this.getModel();this.resetUiToActiveModel(e);for(var r=-1,o=-1,i=!1,s=this.getJoinOperator(),a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))r===-1&&(r=a,o=a);else{var l=a>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1),u=a1?"inRangeStart":i===0?"filterOoo":"inRangeEnd",u=i===0&&a>1?r("ariaFilterFromValue","Filter from value"):i===0?r("ariaFilterValue","Filter Value"):r("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(e.getPlaceholderText(l,s)),o.setInputAriaLabel(u)}})},t.prototype.setElementValue=function(e,r,o){e instanceof kt&&e.setValue(r!=null?String(r):null,!0)},t.prototype.setElementDisplayed=function(e,r){e instanceof k&&$(e.getGui(),r)},t.prototype.setElementDisabled=function(e,r){e instanceof k&&Pr(e.getGui(),r)},t.prototype.attachElementOnChange=function(e,r){e instanceof kt&&e.onValueChange(r)},t.prototype.forEachInput=function(e){var r=this;this.getConditionTypes().forEach(function(o,i){r.forEachPositionTypeInput(i,o,e)})},t.prototype.forEachPositionInput=function(e,r){var o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,r)},t.prototype.forEachPositionTypeInput=function(e,r,o){for(var i=this.getNumberOfInputs(r),s=this.getInputs(e),a=0;ar+1},t.prototype.isConditionBodyVisible=function(e){var r=this.getConditionType(e),o=this.getNumberOfInputs(r);return o>0},t.prototype.isConditionUiComplete=function(e){if(e>=this.getNumConditions())return!1;var r=this.getConditionType(e);return!(r===t.EMPTY||this.getValues(e).some(function(o){return o==null}))},t.prototype.getNumConditions=function(){return this.eTypes.length},t.prototype.getUiCompleteConditions=function(){for(var e=[],r=0;r0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,r){var o=this,i=this.mapValuesFromModel(e);this.forEachInput(function(s,a,l,u){l===r&&o.setElementValue(s,i[a]!=null?i[a]:null)})},t.prototype.setValueFromFloatingFilter=function(e){var r=this;this.forEachInput(function(o,i,s,a){r.setElementValue(o,i===0&&s===0?e:null,!0)})},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,r){var o=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(r,function(i){o.attachElementOnChange(i,o.listener)}))},t.prototype.individualConditionPasses=function(e,r){var o=this.getCellValue(e.node),i=this.mapValuesFromModel(r),s=this.optionsFactory.getCustomOption(r.type),a=this.evaluateCustomFilter(s,i,o);return a??(o==null?this.evaluateNullValue(r.type):this.evaluateNonNullValue(i,o,r,e))},t.prototype.evaluateCustomFilter=function(e,r,o){if(e!=null){var i=e.predicate;if(i!=null&&!r.some(function(s){return s==null}))return i(r,o)}},t.prototype.isBlank=function(e){return e==null||typeof e=="string"&&e.trim().length===0},t.prototype.hasInvalidInputs=function(){return!1},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",t}(Jo),Ed=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ce=function(n){Ed(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setParams=function(e){n.prototype.setParams.call(this,e),this.scalarFilterParams=e},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,r,o){var i=this.comparator(),s=e[0]!=null?i(e[0],r):0;switch(o.type){case t.EQUALS:return s===0;case t.NOT_EQUAL:return s!==0;case t.GREATER_THAN:return s>0;case t.GREATER_THAN_OR_EQUAL:return s>=0;case t.LESS_THAN:return s<0;case t.LESS_THAN_OR_EQUAL:return s<=0;case t.IN_RANGE:{var a=i(e[1],r);return this.scalarFilterParams.inRangeInclusive?s>=0&&a<=0:s>0&&a<0}case t.BLANK:return this.isBlank(r);case t.NOT_BLANK:return!this.isBlank(r);default:return console.warn('AG Grid: Unexpected type of filter "'+o.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(re),Rl=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),os=function(){return os=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ol=1e3,Tl=1/0,Pl=function(n){Rl(t,n);function t(e,r,o){var i=n.call(this,r,o)||this;return i.dateFilterParams=e,i}return t.prototype.conditionToString=function(e,r){var o=e.type,i=(r||{}).numberOfInputs,s=o==re.IN_RANGE||i===2,a=Re(e.dateFrom),l=Re(e.dateTo),u=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(s){var c=a!==null?Tr(a,u):"null",p=l!==null?Tr(l,u):"null";return"".concat(c,"-").concat(p)}return a!=null?Tr(a,u):"".concat(o)},t.prototype.updateParams=function(e){n.prototype.updateParams.call(this,e),this.dateFilterParams=e.dateFilterParams},t}(rs),Dl=function(n){Rl(t,n);function t(){var e=n.call(this,"dateFilter")||this;return e.eConditionPanelsFrom=[],e.eConditionPanelsTo=[],e.dateConditionFromComps=[],e.dateConditionToComps=[],e.minValidYear=Ol,e.maxValidYear=Tl,e.minValidDate=null,e.maxValidDate=null,e}return t.prototype.afterGuiAttached=function(e){n.prototype.afterGuiAttached.call(this,e),this.dateConditionFromComps[0].afterGuiAttached(e)},t.prototype.mapValuesFromModel=function(e){var r=e||{},o=r.dateFrom,i=r.dateTo,s=r.type;return[o&&Re(o)||null,i&&Re(i)||null].slice(0,this.getNumberOfInputs(s))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,r){var o=r;return r==null||oe?1:0},t.prototype.setParams=function(e){this.dateFilterParams=e,n.prototype.setParams.call(this,e);var r=function(o,i){if(e[o]!=null)if(isNaN(e[o]))console.warn("AG Grid: DateFilter ".concat(o," is not a number"));else return e[o]==null?i:Number(e[o]);return i};this.minValidYear=r("minValidYear",Ol),this.maxValidYear=r("maxValidYear",Tl),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:Re(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:Re(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new Pl(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var r=this,o=new hl(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return r.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc(function(){return o.destroy()}),o},t.prototype.setElementValue=function(e,r){e.setDate(r)},t.prototype.setElementDisplayed=function(e,r){e.setDisplayed(r)},t.prototype.setElementDisabled=function(e,r){e.setDisabled(r)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},t.prototype.createFromToElement=function(e,r,o,i){var s=document.createElement("div");s.classList.add("ag-filter-".concat(i)),s.classList.add("ag-filter-date-".concat(i)),r.push(s),e.appendChild(s),o.push(this.createDateCompWrapper(s))},t.prototype.removeValueElements=function(e,r){this.removeDateComps(this.dateConditionFromComps,e,r),this.removeDateComps(this.dateConditionToComps,e,r),this.removeItems(this.eConditionPanelsFrom,e,r),this.removeItems(this.eConditionPanelsTo,e,r)},t.prototype.removeDateComps=function(e,r,o){var i=this.removeItems(e,r,o);i.forEach(function(s){return s.destroy()})},t.prototype.isValidDateValue=function(e){if(e===null)return!1;if(this.minValidDate){if(ethis.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0},t.prototype.isConditionUiComplete=function(e){var r=this;if(!n.prototype.isConditionUiComplete.call(this,e))return!1;var o=!0;return this.forEachInput(function(i,s,a,l){a!==e||!o||s>=l||(o=o&&r.isValidDateValue(i.getDate()))}),o},t.prototype.areSimpleModelsEqual=function(e,r){return e.dateFrom===r.dateFrom&&e.dateTo===r.dateTo&&e.type===r.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var r=this.getConditionType(e),o={},i=this.getValues(e);return i.length>0&&(o.dateFrom=Xe(i[0])),i.length>1&&(o.dateTo=Xe(i[1])),os({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:r},o)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),r=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput(function(i){i.setInputPlaceholder(r),i.setInputAriaLabel(o)})},t.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},t.prototype.getValues=function(e){var r=[];return this.forEachPositionInput(e,function(o,i,s,a){i=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Td=function(n){Od(t,n);function t(){return n.call(this,` `)||this}return t.prototype.getDefaultFilterOptions=function(){return Dl.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(e){n.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new Pl(this.filterParams,this.localeService,this.optionsFactory);var r=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(r("ariaDateFilterInput","Date Filter Input"))},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){n.prototype.refresh.call(this,e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())},t.prototype.updateCompOnModelChange=function(e){var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(r),r){if(e){var o=e;this.dateComp.setDate(_e(o.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)},t.prototype.setEditable=function(e){$(this.eDateWrapper,e),$(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(e,r){this.isEventFromFloatingFilter(r)||this.isEventFromDataChange(r)||(n.prototype.setLastTypeFromModel.call(this,e),this.updateCompOnModelChange(e))},t.prototype.onDateChanged=function(){var e=this,r=this.dateComp.getDate(),o=Xe(r);this.params.parentFilterInstance(function(i){if(i){var s=_e(o);i.onFloatingFilterChanged(e.getLastType()||null,s)}})},t.prototype.getDateComponentParams=function(){var e=Zo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:He(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}},t.prototype.createDateComponent=function(){var e=this;this.dateComp=new hl(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},t.prototype.updateDateComponent=function(){var e=this.gridOptionsService.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(e)},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},is([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),is([L("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),is([L("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Al),Td=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Pd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Dd=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Ad=function(n){Td(t,n);function t(){return n.call(this,` + `)||this}return t.prototype.getDefaultFilterOptions=function(){return Dl.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(e){n.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new Pl(this.filterParams,this.localeService,this.optionsFactory);var r=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(r("ariaDateFilterInput","Date Filter Input"))},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){n.prototype.refresh.call(this,e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())},t.prototype.updateCompOnModelChange=function(e){var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(r),r){if(e){var o=e;this.dateComp.setDate(Re(o.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)},t.prototype.setEditable=function(e){$(this.eDateWrapper,e),$(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(e,r){this.isEventFromFloatingFilter(r)||this.isEventFromDataChange(r)||(n.prototype.setLastTypeFromModel.call(this,e),this.updateCompOnModelChange(e))},t.prototype.onDateChanged=function(){var e=this,r=this.dateComp.getDate(),o=Xe(r);this.params.parentFilterInstance(function(i){if(i){var s=Re(o);i.onFloatingFilterChanged(e.getLastType()||null,s)}})},t.prototype.getDateComponentParams=function(){var e=Jo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:He(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}},t.prototype.createDateComponent=function(){var e=this;this.dateComp=new hl(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},t.prototype.updateDateComponent=function(){var e=this.gridOptionsService.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(e)},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},is([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),is([L("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),is([L("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Al),Pd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Dd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ad=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},bd=function(n){Pd(t,n);function t(){return n.call(this,`
-
`)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this;this.params=e,this.setParams(e);var o=this.gridOptionsService.getDocument(),i=this.eDateInput.getInputElement();this.addManagedListener(i,"mousedown",function(){r.eDateInput.isDisabled()||r.usingSafariDatePicker||i.focus()}),this.addManagedListener(i,"input",function(s){s.target===o.activeElement&&(r.eDateInput.isDisabled()||r.params.onDateChanged())})},t.prototype.setParams=function(e){var r=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=o&&ht(),r.type=o?"date":"text";var i=e.filterParams||{},s=i.minValidYear,a=i.maxValidYear,l=i.minValidDate,u=i.maxValidDate;if(l&&s&&V("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),u&&a&&V("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),l&&u){var c=Dd([l,u].map(function(h){return h instanceof Date?h:_e(h)}),2),p=c[0],d=c[1];p&&d&&p.getTime()>d.getTime()&&V("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}l?l instanceof Date?r.min=Tr(l):r.min=l:s&&(r.min="".concat(s,"-01-01")),u?u instanceof Date?r.max=Tr(u):r.max=u:a&&(r.max="".concat(a,"-12-31"))},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){this.params=e,this.setParams(e)},t.prototype.getDate=function(){return _e(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(Xe(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:$o()||An()||ht()&&Dn()>=14.1},Pd([L("eDateInput")],t.prototype,"eDateInput",void 0),t}(k),bd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),lr=function(n){bd(t,n);function t(e,r,o){return r===void 0&&(r="ag-text-field"),o===void 0&&(o="text"),n.call(this,e,r,o)||this}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(e,r){return this.eInput.value!==e&&(this.eInput.value=P(e)?e:""),n.prototype.setValue.call(this,e,r)},t.prototype.setStartValue=function(e){this.setValue(e,!0)},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("[".concat(this.config.allowedCharPattern,"]")),r=function(o){Xo(o)&&o.key&&!e.test(o.key)&&o.preventDefault()};this.addManagedListener(this.eInput,"keydown",r),this.addManagedListener(this.eInput,"paste",function(o){var i,s=(i=o.clipboardData)===null||i===void 0?void 0:i.getData("text");s&&s.split("").some(function(a){return!e.test(a)})&&o.preventDefault()})},t}(kt),Fd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ns=function(n){Fd(t,n);function t(e){return n.call(this,e,"ag-number-field","number")||this}return t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",function(){var r=parseFloat(e.eInput.value),o=isNaN(r)?"":e.normalizeValue(r.toString());e.value!==o&&e.setValue(o)}),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.normalizeValue=function(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));var r=parseFloat(e);return this.min!=null&&rthis.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e,r){if(this.precision==null)return e;if(r){var o=parseFloat(e).toFixed(this.precision);return parseFloat(o).toString()}var i=String(e).split(".");if(i.length>1){if(i[1].length<=this.precision)return e;if(this.precision>0)return"".concat(i[0],".").concat(i[1].slice(0,this.precision))}return i[0]},t.prototype.setMin=function(e){return this.min===e?this:(this.min=e,vt(this.eInput,"min",e),this)},t.prototype.setMax=function(e){return this.max===e?this:(this.max=e,vt(this.eInput,"max",e),this)},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,vt(this.eInput,"step",e),this)},t.prototype.setValue=function(e,r){var o=this;return this.setValueOrInputValue(function(i){return n.prototype.setValue.call(o,i,r)},function(){return o},e)},t.prototype.setStartValue=function(e){var r=this;return this.setValueOrInputValue(function(o){return n.prototype.setValue.call(r,o,!0)},function(o){r.eInput.value=o},e)},t.prototype.setValueOrInputValue=function(e,r,o){if(P(o)){var i=this.isScientificNotation(o);if(i&&this.eInput.validity.valid)return e(o);if(!i){o=this.adjustPrecision(o);var s=this.normalizeValue(o);i=o!=s}if(i)return r(o)}return e(o)},t.prototype.getValue=function(){if(this.eInput.validity.valid){var e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):n.prototype.getValue.call(this)}},t.prototype.isScientificNotation=function(e){return typeof e=="string"&&e.includes("e")},t}(lr),bl=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fl=function(n){bl(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.conditionToString=function(e,r){var o=(r||{}).numberOfInputs,i=e.type==re.IN_RANGE||o===2;return i?"".concat(this.formatValue(e.filter),"-").concat(this.formatValue(e.filterTo)):e.filter!=null?this.formatValue(e.filter):"".concat(e.type)},t}(rs);function ss(n){var t=(n??{}).allowedCharPattern;return t??null}var Ll=function(n){bl(t,n);function t(){var e=n.call(this,"numberFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return t.prototype.refresh=function(e){return this.numberFilterParams.allowedCharPattern!==e.allowedCharPattern?!1:n.prototype.refresh.call(this,e)},t.prototype.mapValuesFromModel=function(e){var r=e||{},o=r.filter,i=r.filterTo,s=r.type;return[this.processValue(o),this.processValue(i)].slice(0,this.getNumberOfInputs(s))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,r){return e===r?0:e0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getModelAsString=function(e){var r;return(r=this.filterModelFormatter.getModelAsString(e))!==null&&r!==void 0?r:""},t.prototype.hasInvalidInputs=function(){var e=!1;return this.forEachInput(function(r){if(!r.getInputElement().validity.valid){e=!0;return}}),e},t.DEFAULT_FILTER_OPTIONS=[ce.EQUALS,ce.NOT_EQUAL,ce.GREATER_THAN,ce.GREATER_THAN_OR_EQUAL,ce.LESS_THAN,ce.LESS_THAN_OR_EQUAL,ce.IN_RANGE,ce.BLANK,ce.NOT_BLANK],t}(ce),Ml=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ri=function(){return ri=Object.assign||function(n){for(var t,e=1,r=arguments.length;e0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,r){return e.filter===r.filter&&e.filterTo===r.filterTo&&e.type===r.type},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getValues=function(e){return this.getValuesWithSideEffects(e,!1)},t.prototype.getValuesWithSideEffects=function(e,r){var o=this,i=[];return this.forEachPositionInput(e,function(s,a,l,u){var c;if(a=0:!1},t.prototype.evaluateNonNullValue=function(e,r,o,i){var s=this,a=e.map(function(C){return s.formatter(C)})||[],l=this.formatter(r),u=this.textFilterParams,c=u.api,p=u.colDef,d=u.column,h=u.columnApi,f=u.context,y=u.textFormatter;if(o.type===re.BLANK)return this.isBlank(r);if(o.type===re.NOT_BLANK)return!this.isBlank(r);var m={api:c,colDef:p,column:d,columnApi:h,context:f,node:i.node,data:i.data,filterOption:o.type,value:l,textFormatter:y};return a.some(function(C){return s.matcher(ri(ri({},m),{filterText:C}))})},t.prototype.getModelAsString=function(e){var r;return(r=this.filterModelFormatter.getModelAsString(e))!==null&&r!==void 0?r:""},t.DEFAULT_FILTER_OPTIONS=[re.CONTAINS,re.NOT_CONTAINS,re.EQUALS,re.NOT_EQUAL,re.STARTS_WITH,re.ENDS_WITH,re.BLANK,re.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return e==null?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var r=e.filterOption,o=e.value,i=e.filterText;if(i==null)return!1;switch(r){case t.CONTAINS:return o.indexOf(i)>=0;case t.NOT_CONTAINS:return o.indexOf(i)<0;case t.EQUALS:return o===i;case t.NOT_EQUAL:return o!=i;case t.STARTS_WITH:return o.indexOf(i)===0;case t.ENDS_WITH:var s=o.lastIndexOf(i);return s>=0&&s===o.length-i.length;default:return!1}},t}(re),xl=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ls=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Nl=function(n){xl(t,n);function t(e){var r=n.call(this)||this;return r.params=e,r.valueChangedListener=function(){},r}return t.prototype.setupGui=function(e){var r=this,o;this.eFloatingFilterTextInput=this.createManagedBean(new lr((o=this.params)===null||o===void 0?void 0:o.config));var i=this.eFloatingFilterTextInput.getGui();e.appendChild(i),this.addManagedListener(i,"input",function(s){return r.valueChangedListener(s)}),this.addManagedListener(i,"keydown",function(s){return r.valueChangedListener(s)})},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,r){this.eFloatingFilterTextInput.setValue(e,r)},t.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(D),Gl=function(n){xl(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setTemplate(` + `)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this;this.params=e,this.setParams(e);var o=this.gridOptionsService.getDocument(),i=this.eDateInput.getInputElement();this.addManagedListener(i,"mousedown",function(){r.eDateInput.isDisabled()||r.usingSafariDatePicker||i.focus()}),this.addManagedListener(i,"input",function(s){s.target===o.activeElement&&(r.eDateInput.isDisabled()||r.params.onDateChanged())})},t.prototype.setParams=function(e){var r=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=o&&ht(),r.type=o?"date":"text";var i=e.filterParams||{},s=i.minValidYear,a=i.maxValidYear,l=i.minValidDate,u=i.maxValidDate;if(l&&s&&V("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),u&&a&&V("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),l&&u){var c=Ad([l,u].map(function(h){return h instanceof Date?h:Re(h)}),2),p=c[0],d=c[1];p&&d&&p.getTime()>d.getTime()&&V("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}l?l instanceof Date?r.min=Tr(l):r.min=l:s&&(r.min="".concat(s,"-01-01")),u?u instanceof Date?r.max=Tr(u):r.max=u:a&&(r.max="".concat(a,"-12-31"))},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){this.params=e,this.setParams(e)},t.prototype.getDate=function(){return Re(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(Xe(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:$o()||An()||ht()&&Dn()>=14.1},Dd([L("eDateInput")],t.prototype,"eDateInput",void 0),t}(k),Fd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),lr=function(n){Fd(t,n);function t(e,r,o){return r===void 0&&(r="ag-text-field"),o===void 0&&(o="text"),n.call(this,e,r,o)||this}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(e,r){return this.eInput.value!==e&&(this.eInput.value=P(e)?e:""),n.prototype.setValue.call(this,e,r)},t.prototype.setStartValue=function(e){this.setValue(e,!0)},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("[".concat(this.config.allowedCharPattern,"]")),r=function(o){Xo(o)&&o.key&&!e.test(o.key)&&o.preventDefault()};this.addManagedListener(this.eInput,"keydown",r),this.addManagedListener(this.eInput,"paste",function(o){var i,s=(i=o.clipboardData)===null||i===void 0?void 0:i.getData("text");s&&s.split("").some(function(a){return!e.test(a)})&&o.preventDefault()})},t}(kt),Ld=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ns=function(n){Ld(t,n);function t(e){return n.call(this,e,"ag-number-field","number")||this}return t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",function(){var r=parseFloat(e.eInput.value),o=isNaN(r)?"":e.normalizeValue(r.toString());e.value!==o&&e.setValue(o)}),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.normalizeValue=function(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));var r=parseFloat(e);return this.min!=null&&rthis.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e,r){if(this.precision==null)return e;if(r){var o=parseFloat(e).toFixed(this.precision);return parseFloat(o).toString()}var i=String(e).split(".");if(i.length>1){if(i[1].length<=this.precision)return e;if(this.precision>0)return"".concat(i[0],".").concat(i[1].slice(0,this.precision))}return i[0]},t.prototype.setMin=function(e){return this.min===e?this:(this.min=e,vt(this.eInput,"min",e),this)},t.prototype.setMax=function(e){return this.max===e?this:(this.max=e,vt(this.eInput,"max",e),this)},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,vt(this.eInput,"step",e),this)},t.prototype.setValue=function(e,r){var o=this;return this.setValueOrInputValue(function(i){return n.prototype.setValue.call(o,i,r)},function(){return o},e)},t.prototype.setStartValue=function(e){var r=this;return this.setValueOrInputValue(function(o){return n.prototype.setValue.call(r,o,!0)},function(o){r.eInput.value=o},e)},t.prototype.setValueOrInputValue=function(e,r,o){if(P(o)){var i=this.isScientificNotation(o);if(i&&this.eInput.validity.valid)return e(o);if(!i){o=this.adjustPrecision(o);var s=this.normalizeValue(o);i=o!=s}if(i)return r(o)}return e(o)},t.prototype.getValue=function(){if(this.eInput.validity.valid){var e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):n.prototype.getValue.call(this)}},t.prototype.isScientificNotation=function(e){return typeof e=="string"&&e.includes("e")},t}(lr),bl=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fl=function(n){bl(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.conditionToString=function(e,r){var o=(r||{}).numberOfInputs,i=e.type==re.IN_RANGE||o===2;return i?"".concat(this.formatValue(e.filter),"-").concat(this.formatValue(e.filterTo)):e.filter!=null?this.formatValue(e.filter):"".concat(e.type)},t}(rs);function ss(n){var t=(n??{}).allowedCharPattern;return t??null}var Ll=function(n){bl(t,n);function t(){var e=n.call(this,"numberFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return t.prototype.refresh=function(e){return this.numberFilterParams.allowedCharPattern!==e.allowedCharPattern?!1:n.prototype.refresh.call(this,e)},t.prototype.mapValuesFromModel=function(e){var r=e||{},o=r.filter,i=r.filterTo,s=r.type;return[this.processValue(o),this.processValue(i)].slice(0,this.getNumberOfInputs(s))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,r){return e===r?0:e0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getModelAsString=function(e){var r;return(r=this.filterModelFormatter.getModelAsString(e))!==null&&r!==void 0?r:""},t.prototype.hasInvalidInputs=function(){var e=!1;return this.forEachInput(function(r){if(!r.getInputElement().validity.valid){e=!0;return}}),e},t.DEFAULT_FILTER_OPTIONS=[ce.EQUALS,ce.NOT_EQUAL,ce.GREATER_THAN,ce.GREATER_THAN_OR_EQUAL,ce.LESS_THAN,ce.LESS_THAN_OR_EQUAL,ce.IN_RANGE,ce.BLANK,ce.NOT_BLANK],t}(ce),Ml=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ri=function(){return ri=Object.assign||function(n){for(var t,e=1,r=arguments.length;e0&&(o.filter=i[0]),i.length>1&&(o.filterTo=i[1]),o},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,r){return e.filter===r.filter&&e.filterTo===r.filterTo&&e.type===r.type},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getValues=function(e){return this.getValuesWithSideEffects(e,!1)},t.prototype.getValuesWithSideEffects=function(e,r){var o=this,i=[];return this.forEachPositionInput(e,function(s,a,l,u){var c;if(a=0:!1},t.prototype.evaluateNonNullValue=function(e,r,o,i){var s=this,a=e.map(function(m){return s.formatter(m)})||[],l=this.formatter(r),u=this.textFilterParams,c=u.api,p=u.colDef,d=u.column,h=u.columnApi,f=u.context,y=u.textFormatter;if(o.type===re.BLANK)return this.isBlank(r);if(o.type===re.NOT_BLANK)return!this.isBlank(r);var C={api:c,colDef:p,column:d,columnApi:h,context:f,node:i.node,data:i.data,filterOption:o.type,value:l,textFormatter:y};return a.some(function(m){return s.matcher(ri(ri({},C),{filterText:m}))})},t.prototype.getModelAsString=function(e){var r;return(r=this.filterModelFormatter.getModelAsString(e))!==null&&r!==void 0?r:""},t.DEFAULT_FILTER_OPTIONS=[re.CONTAINS,re.NOT_CONTAINS,re.EQUALS,re.NOT_EQUAL,re.STARTS_WITH,re.ENDS_WITH,re.BLANK,re.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return e==null?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var r=e.filterOption,o=e.value,i=e.filterText;if(i==null)return!1;switch(r){case t.CONTAINS:return o.indexOf(i)>=0;case t.NOT_CONTAINS:return o.indexOf(i)<0;case t.EQUALS:return o===i;case t.NOT_EQUAL:return o!=i;case t.STARTS_WITH:return o.indexOf(i)===0;case t.ENDS_WITH:var s=o.lastIndexOf(i);return s>=0&&s===o.length-i.length;default:return!1}},t}(re),xl=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ls=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Nl=function(n){xl(t,n);function t(e){var r=n.call(this)||this;return r.params=e,r.valueChangedListener=function(){},r}return t.prototype.setupGui=function(e){var r=this,o;this.eFloatingFilterTextInput=this.createManagedBean(new lr((o=this.params)===null||o===void 0?void 0:o.config));var i=this.eFloatingFilterTextInput.getGui();e.appendChild(i),this.addManagedListener(i,"input",function(s){return r.valueChangedListener(s)}),this.addManagedListener(i,"keydown",function(s){return r.valueChangedListener(s)})},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,r){this.eFloatingFilterTextInput.setValue(e,r)},t.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(D),Gl=function(n){xl(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setTemplate(` - `)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,r){this.isEventFromFloatingFilter(r)||this.isEventFromDataChange(r)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(e){this.setupFloatingFilterInputService(e),n.prototype.init.call(this,e),this.setTextInputParams(e)},t.prototype.setupFloatingFilterInputService=function(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},t.prototype.setTextInputParams=function(e){var r;this.params=e;var o=(r=e.browserAutoComplete)!==null&&r!==void 0?r:!1;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:o}),this.applyActive=Zo.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var i=Zo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),s=He(this.syncUpWithParentFilter.bind(this),i);this.floatingFilterInputService.setValueChangedListener(s)}},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){n.prototype.refresh.call(this,e),this.setTextInputParams(e)},t.prototype.recreateFloatingFilterInputService=function(e){var r=this.floatingFilterInputService.getValue();de(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(r,!0)},t.prototype.getAriaLabel=function(e){var r=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();return"".concat(r," ").concat(o("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var r=this,o=e.key===_.ENTER;if(!(this.applyActive&&!o)){var i=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(i=as.trimInput(i),this.floatingFilterInputService.setValue(i,!0)),this.params.parentFilterInstance(function(s){s&&s.onFloatingFilterChanged(r.getLastType()||null,i||null)})}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},ls([v("columnModel")],t.prototype,"columnModel",void 0),ls([L("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),ls([F],t.prototype,"postConstruct",null),t}(Al),Vl=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ld=function(n){Vl(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.valueChangedListener=function(){},e.numberInputActive=!0,e}return t.prototype.setupGui=function(e){var r=this;this.eFloatingFilterNumberInput=this.createManagedBean(new ns),this.eFloatingFilterTextInput=this.createManagedBean(new lr),this.eFloatingFilterTextInput.setDisabled(!0);var o=this.eFloatingFilterNumberInput.getGui(),i=this.eFloatingFilterTextInput.getGui();e.appendChild(o),e.appendChild(i),this.setupListeners(o,function(s){return r.valueChangedListener(s)}),this.setupListeners(i,function(s){return r.valueChangedListener(s)})},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.getActiveInputElement().getValue()},t.prototype.setValue=function(e,r){this.getActiveInputElement().setValue(e,r)},t.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},t.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setupListeners=function(e,r){this.addManagedListener(e,"input",r),this.addManagedListener(e,"keydown",r)},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(D),Md=function(n){Vl(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e){var r;n.prototype.init.call(this,e),this.filterModelFormatter=new Fl(this.localeService,this.optionsFactory,(r=e.filterParams)===null||r===void 0?void 0:r.numberFormatter)},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){var r=ss(e.filterParams);r!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),n.prototype.refresh.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return Ll.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.allowedCharPattern=ss(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Nl({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new Ld)},t}(Gl),Id=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xd=function(n){Id(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e){n.prototype.init.call(this,e),this.filterModelFormatter=new Il(this.localeService,this.optionsFactory)},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){n.prototype.refresh.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return as.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new Nl)},t}(Gl),me=function(){function n(t,e){e===void 0&&(e=!1);var r=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new xt,this.eElement=t,this.preventMouseClick=e;var o=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push(function(){r.eElement.removeEventListener("touchstart",o,{passive:!0}),r.eElement.removeEventListener("touchmove",i,{passive:!0}),r.eElement.removeEventListener("touchend",s,{passive:!1})})}return n.prototype.getActiveTouch=function(t){for(var e=0;e0){var e=t-this.lastTapTime;if(e>n.DOUBLE_TAP_MILLIS){var r={type:n.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(r),this.lastTapTime=null}else this.lastTapTime=t}else this.lastTapTime=t},n.prototype.destroy=function(){this.destroyFuncs.forEach(function(t){return t()})},n.EVENT_TAP="tap",n.EVENT_DOUBLE_TAP="doubleTap",n.EVENT_LONG_TAP="longTap",n.DOUBLE_TAP_MILLIS=500,n}(),Nd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ur=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},us=function(n){Nd(t,n);function t(e){var r=n.call(this)||this;return e||r.setTemplate(t.TEMPLATE),r}return t.prototype.attachCustomElements=function(e,r,o,i,s){this.eSortOrder=e,this.eSortAsc=r,this.eSortDesc=o,this.eSortMixed=i,this.eSortNone=s},t.prototype.setupSort=function(e,r){var o=this;r===void 0&&(r=!1),this.column=e,this.suppressOrder=r,this.setupMultiSortIndicator(),this.column.isSortable()&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedPropertyListener("unSortIcon",function(){return o.updateIcons()}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return o.updateIcons()}),this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,function(){return o.onSortChanged()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return o.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,r,o){if(r!=null){var i=ne(e,this.gridOptionsService,o);i&&r.appendChild(i)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var r=e==="asc";$(this.eSortAsc,r,{skipAriaHidden:!0})}if(this.eSortDesc){var o=e==="desc";$(this.eSortDesc,o,{skipAriaHidden:!0})}if(this.eSortNone){var i=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.get("unSortIcon"),s=e==null;$(this.eSortNone,!i&&s,{skipAriaHidden:!0})}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var r=this.column.getColDef().showRowGroup,o=this.gridOptionsService.isColumnsSortingCoupledToGroup();o&&r&&(this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e=this.sortController.getDisplaySortForColumn(this.column)==="mixed";$(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e=this,r;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),i=(r=this.sortController.getDisplaySortIndexForColumn(this.column))!==null&&r!==void 0?r:-1,s=o.some(function(l){var u;return(u=e.sortController.getDisplaySortIndexForColumn(l))!==null&&u!==void 0?u:-1>=1}),a=i>=0&&s;$(this.eSortOrder,a,{skipAriaHidden:!0}),i>=0?this.eSortOrder.textContent=(i+1).toString():de(this.eSortOrder)}},t.TEMPLATE=` + `)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,r){this.isEventFromFloatingFilter(r)||this.isEventFromDataChange(r)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(e){this.setupFloatingFilterInputService(e),n.prototype.init.call(this,e),this.setTextInputParams(e)},t.prototype.setupFloatingFilterInputService=function(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},t.prototype.setTextInputParams=function(e){var r;this.params=e;var o=(r=e.browserAutoComplete)!==null&&r!==void 0?r:!1;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:o}),this.applyActive=Jo.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var i=Jo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),s=He(this.syncUpWithParentFilter.bind(this),i);this.floatingFilterInputService.setValueChangedListener(s)}},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){n.prototype.refresh.call(this,e),this.setTextInputParams(e)},t.prototype.recreateFloatingFilterInputService=function(e){var r=this.floatingFilterInputService.getValue();de(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(r,!0)},t.prototype.getAriaLabel=function(e){var r=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();return"".concat(r," ").concat(o("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var r=this,o=e.key===_.ENTER;if(!(this.applyActive&&!o)){var i=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(i=as.trimInput(i),this.floatingFilterInputService.setValue(i,!0)),this.params.parentFilterInstance(function(s){s&&s.onFloatingFilterChanged(r.getLastType()||null,i||null)})}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},ls([v("columnModel")],t.prototype,"columnModel",void 0),ls([L("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),ls([F],t.prototype,"postConstruct",null),t}(Al),Vl=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Md=function(n){Vl(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.valueChangedListener=function(){},e.numberInputActive=!0,e}return t.prototype.setupGui=function(e){var r=this;this.eFloatingFilterNumberInput=this.createManagedBean(new ns),this.eFloatingFilterTextInput=this.createManagedBean(new lr),this.eFloatingFilterTextInput.setDisabled(!0);var o=this.eFloatingFilterNumberInput.getGui(),i=this.eFloatingFilterTextInput.getGui();e.appendChild(o),e.appendChild(i),this.setupListeners(o,function(s){return r.valueChangedListener(s)}),this.setupListeners(i,function(s){return r.valueChangedListener(s)})},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.getActiveInputElement().getValue()},t.prototype.setValue=function(e,r){this.getActiveInputElement().setValue(e,r)},t.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},t.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setupListeners=function(e,r){this.addManagedListener(e,"input",r),this.addManagedListener(e,"keydown",r)},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(D),Id=function(n){Vl(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e){var r;n.prototype.init.call(this,e),this.filterModelFormatter=new Fl(this.localeService,this.optionsFactory,(r=e.filterParams)===null||r===void 0?void 0:r.numberFormatter)},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){var r=ss(e.filterParams);r!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),n.prototype.refresh.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return Ll.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.allowedCharPattern=ss(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Nl({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new Md)},t}(Gl),xd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Nd=function(n){xd(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e){n.prototype.init.call(this,e),this.filterModelFormatter=new Il(this.localeService,this.optionsFactory)},t.prototype.onParamsUpdated=function(e){this.refresh(e)},t.prototype.refresh=function(e){n.prototype.refresh.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return as.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new Nl)},t}(Gl),Ce=function(){function n(t,e){e===void 0&&(e=!1);var r=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new xt,this.eElement=t,this.preventMouseClick=e;var o=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push(function(){r.eElement.removeEventListener("touchstart",o,{passive:!0}),r.eElement.removeEventListener("touchmove",i,{passive:!0}),r.eElement.removeEventListener("touchend",s,{passive:!1})})}return n.prototype.getActiveTouch=function(t){for(var e=0;e0){var e=t-this.lastTapTime;if(e>n.DOUBLE_TAP_MILLIS){var r={type:n.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(r),this.lastTapTime=null}else this.lastTapTime=t}else this.lastTapTime=t},n.prototype.destroy=function(){this.destroyFuncs.forEach(function(t){return t()})},n.EVENT_TAP="tap",n.EVENT_DOUBLE_TAP="doubleTap",n.EVENT_LONG_TAP="longTap",n.DOUBLE_TAP_MILLIS=500,n}(),Gd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ur=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},us=function(n){Gd(t,n);function t(e){var r=n.call(this)||this;return e||r.setTemplate(t.TEMPLATE),r}return t.prototype.attachCustomElements=function(e,r,o,i,s){this.eSortOrder=e,this.eSortAsc=r,this.eSortDesc=o,this.eSortMixed=i,this.eSortNone=s},t.prototype.setupSort=function(e,r){var o=this;r===void 0&&(r=!1),this.column=e,this.suppressOrder=r,this.setupMultiSortIndicator(),this.column.isSortable()&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedPropertyListener("unSortIcon",function(){return o.updateIcons()}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return o.updateIcons()}),this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,function(){return o.onSortChanged()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return o.onSortChanged()}),this.onSortChanged())},t.prototype.addInIcon=function(e,r,o){if(r!=null){var i=ne(e,this.gridOptionsService,o);i&&r.appendChild(i)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var r=e==="asc";$(this.eSortAsc,r,{skipAriaHidden:!0})}if(this.eSortDesc){var o=e==="desc";$(this.eSortDesc,o,{skipAriaHidden:!0})}if(this.eSortNone){var i=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.get("unSortIcon"),s=e==null;$(this.eSortNone,!i&&s,{skipAriaHidden:!0})}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var r=this.column.getColDef().showRowGroup,o=this.gridOptionsService.isColumnsSortingCoupledToGroup();o&&r&&(this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e=this.sortController.getDisplaySortForColumn(this.column)==="mixed";$(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e=this,r;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),i=(r=this.sortController.getDisplaySortIndexForColumn(this.column))!==null&&r!==void 0?r:-1,s=o.some(function(l){var u;return(u=e.sortController.getDisplaySortIndexForColumn(l))!==null&&u!==void 0?u:-1>=1}),a=i>=0&&s;$(this.eSortOrder,a,{skipAriaHidden:!0}),i>=0?this.eSortOrder.textContent=(i+1).toString():de(this.eSortOrder)}},t.TEMPLATE=` - `,ur([L("eSortOrder")],t.prototype,"eSortOrder",void 0),ur([L("eSortAsc")],t.prototype,"eSortAsc",void 0),ur([L("eSortDesc")],t.prototype,"eSortDesc",void 0),ur([L("eSortMixed")],t.prototype,"eSortMixed",void 0),ur([L("eSortNone")],t.prototype,"eSortNone",void 0),ur([v("columnModel")],t.prototype,"columnModel",void 0),ur([v("sortController")],t.prototype,"sortController",void 0),t}(k),Gd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Oe=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},cs=function(n){Gd(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||this.workOutSort()!=this.currentSort||this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide?!1:(this.setDisplayName(e),!0)},t.prototype.workOutTemplate=function(){var e,r=(e=this.params.template)!==null&&e!==void 0?e:t.TEMPLATE;return r=r&&r.trim?r.trim():r,r},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var r=ae(this.currentDisplayName,!0);this.eText&&(this.eText.textContent=r)}},t.prototype.addInIcon=function(e,r,o){if(r!=null){var i=ne(e,this.gridOptionsService,o);i&&r.appendChild(i)}},t.prototype.setupTap=function(){var e=this,r=this.gridOptionsService;if(!r.get("suppressTouch")){var o=new me(this.getGui(),!0),i=this.shouldSuppressMenuHide(),s=i&&P(this.eMenu),a=s?new me(this.eMenu,!0):o;if(this.params.enableMenu){var l=s?"EVENT_TAP":"EVENT_LONG_TAP",u=function(d){return e.params.showColumnMenuAfterMouseClick(d.touchStart)};this.addManagedListener(a,me[l],u)}if(this.params.enableSorting){var c=function(d){var h,f,y=d.touchStart.target;i&&(!((h=e.eMenu)===null||h===void 0)&&h.contains(y)||!((f=e.eFilterButton)===null||f===void 0)&&f.contains(y))||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")};this.addManagedListener(o,me.EVENT_TAP,c)}if(this.params.enableFilterButton){var p=new me(this.eFilterButton,!0);this.addManagedListener(p,"tap",function(){return e.params.showFilter(e.eFilterButton)}),this.addDestroyFunc(function(){return p.destroy()})}this.addDestroyFunc(function(){return o.destroy()}),s&&this.addDestroyFunc(function(){return a.destroy()})}},t.prototype.workOutShowMenu=function(){return this.params.enableMenu&&this.menuService.isHeaderMenuButtonEnabled()},t.prototype.shouldSuppressMenuHide=function(){return this.menuService.isHeaderMenuButtonAlwaysShowEnabled()},t.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){ft(this.eMenu),this.eMenu=void 0;return}var r=this.menuService.isLegacyMenuEnabled();this.addInIcon(r?"menu":"menuAlt",this.eMenu,this.params.column),this.eMenu.classList.toggle("ag-header-menu-icon",!r),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedListener(this.eMenu,"click",function(){return e.params.showColumnMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",this.currentSuppressMenuHide)}},t.prototype.onMenuKeyboardShortcut=function(e){var r,o,i,s,a=this.params.column,l=this.menuService.isLegacyMenuEnabled();if(e&&!l){if(this.menuService.isFilterMenuInHeaderEnabled(a))return this.params.showFilter((o=(r=this.eFilterButton)!==null&&r!==void 0?r:this.eMenu)!==null&&o!==void 0?o:this.getGui()),!0}else if(this.params.enableMenu)return this.params.showColumnMenu((s=(i=this.eMenu)!==null&&i!==void 0?i:this.eFilterButton)!==null&&s!==void 0?s:this.getGui()),!0;return!1},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new us(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),!!this.currentSort){this.addManagedListener(this.params.column,J.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=new Date().getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(o){var i=e.params.column.isMoving(),s=new Date().getTime(),a=s-e.lastMovingChanged<50,l=i||a;if(!l){var u=e.gridOptionsService.get("multiSortKey")==="ctrl",c=u?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(c)}});var r=function(){if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var o=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),i=o==null?void 0:o.every(function(a){return e.params.column.getSort()==a.getSort()}),s=!i;e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",s)}};this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,r),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,r)}},t.prototype.setupFilterIcon=function(){this.eFilter&&this.configureFilter(this.params.enableFilterIcon,this.eFilter,this.onFilterChangedIcon.bind(this))},t.prototype.setupFilterButton=function(){var e=this;if(this.eFilterButton){var r=this.configureFilter(this.params.enableFilterButton,this.eFilterButton,this.onFilterChangedButton.bind(this));r?this.addManagedListener(this.eFilterButton,"click",function(){return e.params.showFilter(e.eFilterButton)}):this.eFilterButton=void 0}},t.prototype.configureFilter=function(e,r,o){if(!e)return ft(r),!1;var i=this.params.column;return this.addInIcon("filter",r,i),this.addManagedListener(i,J.EVENT_FILTER_CHANGED,o),o(),!0},t.prototype.onFilterChangedIcon=function(){var e=this.params.column.isFilterActive();$(this.eFilter,e,{skipAriaHidden:!0})},t.prototype.onFilterChangedButton=function(){var e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)},t.prototype.getAnchorElementForMenu=function(e){var r,o,i,s;return e?(o=(r=this.eFilterButton)!==null&&r!==void 0?r:this.eMenu)!==null&&o!==void 0?o:this.getGui():(s=(i=this.eMenu)!==null&&i!==void 0?i:this.eFilterButton)!==null&&s!==void 0?s:this.getGui()},t.TEMPLATE=``)||this;return e.startedByEnter=!1,e}return t.prototype.init=function(e){this.focusAfterAttached=e.cellStartedEdit;var r=this,o=r.eSelect,i=r.valueFormatterService,s=r.gridOptionsService,a=e.values,l=e.value,u=e.eventKey;if(H(a)){console.warn("AG Grid: no values found for select cellEditor");return}this.startedByEnter=u!=null?u===_.ENTER:!1;var c=!1;a.forEach(function(f){var y={value:f},C=i.formatValue(e.column,null,f),m=C!=null;y.text=m?C:f,o.addOption(y),c=c||l===f}),c?o.setValue(e.value,!0):e.values.length&&o.setValue(e.values[0],!0);var p=e.valueListGap,d=e.valueListMaxWidth,h=e.valueListMaxHeight;p!=null&&o.setPickerGap(p),h!=null&&o.setPickerMaxHeight(h),d!=null&&o.setPickerMaxWidth(d),s.get("editType")!=="fullRow"&&this.addManagedListener(this.eSelect,ei.EVENT_ITEM_SELECTED,function(){return e.stopEditing()})},t.prototype.afterGuiAttached=function(){var e=this;this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(function(){e.isAlive()&&e.eSelect.showPicker()})},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Hl([v("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Hl([L("eSelect")],t.prototype,"eSelect",void 0),t}(cr),$d=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},oi=function(n){$d(t,n);function t(e){var r=n.call(this,`
`.concat(e.getTemplate(),` -
`))||this;return r.cellEditorInput=e,r}return t.prototype.init=function(e){this.params=e;var r=this.eInput;this.cellEditorInput.init(r,e);var o;if(e.cellStartedEdit){this.focusAfterAttached=!0;var i=e.eventKey;i===_.BACKSPACE||e.eventKey===_.DELETE?o="":i&&i.length===1?o=i:(o=this.cellEditorInput.getStartValue(),i!==_.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,o=this.cellEditorInput.getStartValue();o!=null&&r.setStartValue(o),this.addManagedListener(r.getGui(),"keydown",function(s){var a=s.key;(a===_.PAGE_UP||a===_.PAGE_DOWN)&&s.preventDefault()})},t.prototype.afterGuiAttached=function(){var e,r,o=this.localeService.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(o("ariaInputEditor","Input Editor")),!!this.focusAfterAttached){ht()||i.getFocusableElement().focus();var s=i.getInputElement();this.highlightAllOnFocus?s.select():(r=(e=this.cellEditorInput).setCaret)===null||r===void 0||r.call(e)}},t.prototype.focusIn=function(){var e=this.eInput,r=e.getFocusableElement(),o=e.getInputElement();r.focus(),o.select()},t.prototype.getValue=function(){return this.cellEditorInput.getValue()},t.prototype.isPopup=function(){return!1},$d([L("eInput")],t.prototype,"eInput",void 0),t}(cr),Yd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qd=function(){function n(){}return n.prototype.getTemplate=function(){return''},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.maxLength!=null&&t.setMaxLength(e.maxLength)},n.prototype.getValue=function(){var t=this.eInput.getValue();return!P(t)&&!P(this.params.value)?this.params.value:this.params.parseValue(t)},n.prototype.getStartValue=function(){var t=this.params.useFormatter||this.params.column.getColDef().refData;return t?this.params.formatValue(this.params.value):this.params.value},n.prototype.setCaret=function(){var t=this.eInput.getValue(),e=P(t)&&t.length||0;e&&this.eInput.getInputElement().setSelectionRange(e,e)},n}(),Bl=function(n){Yd(t,n);function t(){return n.call(this,new qd)||this}return t}(oi),Qd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Jd="↑",Zd="↓",eh=function(n){Qd(t,n);function t(){var e=n.call(this)||this;e.refreshCount=0;var r=document.createElement("span"),o=document.createElement("span");o.setAttribute("class","ag-value-change-delta");var i=document.createElement("span");return i.setAttribute("class","ag-value-change-value"),r.appendChild(o),r.appendChild(i),e.setTemplateFromElement(r),e}return t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e,!0)},t.prototype.showDelta=function(e,r){var o=Math.abs(r),i=e.formatValue(o),s=P(i)?i:o,a=r>=0;a?this.eDelta.textContent=Jd+s:this.eDelta.textContent=Zd+s,this.eDelta.classList.toggle("ag-value-change-delta-up",a),this.eDelta.classList.toggle("ag-value-change-delta-down",!a)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var r=this.refreshCount;this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){r===e.refreshCount&&e.hideDeltaValue()},2e3)})},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),de(this.eDelta)},t.prototype.refresh=function(e,r){r===void 0&&(r=!1);var o=e.value;if(o===this.lastValue||(P(e.valueFormatted)?this.eValue.textContent=e.valueFormatted:P(e.value)?this.eValue.textContent=o:de(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof o=="number"&&typeof this.lastValue=="number"){var i=o-this.lastValue;this.showDelta(e,i)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),r||this.setTimerToRemoveDelta(),this.lastValue=o,!0},Xd([v("filterManager")],t.prototype,"filterManager",void 0),t}(k),th=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),rh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},oh=function(n){th(t,n);function t(){var e=n.call(this)||this;e.refreshCount=0;var r=document.createElement("span"),o=document.createElement("span");return o.setAttribute("class","ag-value-slide-current"),r.appendChild(o),e.setTemplateFromElement(r),e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return t.prototype.init=function(e){this.refresh(e,!0)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var r=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);var o=document.createElement("span");o.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=o,this.ePrevious.textContent=this.eCurrent.textContent,this.getGui().insertBefore(this.ePrevious,this.eCurrent),this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){r===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){r===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)})},t.prototype.refresh=function(e,r){r===void 0&&(r=!1);var o=e.value;return H(o)&&(o=""),o===this.lastValue||this.filterManager.isSuppressFlashingCellsBecauseFiltering()?!1:(r||this.addSlideAnimation(),this.lastValue=o,P(e.valueFormatted)?this.eCurrent.textContent=e.valueFormatted:P(e.value)?this.eCurrent.textContent=o:de(this.eCurrent),!0)},rh([v("filterManager")],t.prototype,"filterManager",void 0),t}(k),br=function(){return br=Object.assign||function(n){for(var t,e=1,r=arguments.length;e0?r:void 0,level:this.level}),this.id!==null&&typeof this.id=="string"&&this.id.startsWith(n.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with ".concat(n.ID_PREFIX_ROW_GROUP,", this is a reserved prefix for AG Grid's row grouping feature.")),this.id!==null&&typeof this.id!="string"&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},n.prototype.getGroupKeys=function(t){t===void 0&&(t=!1);var e=[],r=this;for(t&&(r=r.parent);r&&r.level>=0;)e.push(r.key),r=r.parent;return e.reverse(),e},n.prototype.isPixelInRange=function(t){return!P(this.rowTop)||!P(this.rowHeight)?!1:t>=this.rowTop&&to&&(o=u)}),!e&&((r||o<10)&&(o=this.beans.gridOptionsService.getRowHeightForNode(this).height),o!=this.rowHeight)){this.setRowHeight(o);var a=this.beans.rowModel;a.onRowHeightChangedDebounced&&a.onRowHeightChangedDebounced()}}},n.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_ROW_INDEX_CHANGED)))},n.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_UI_LEVEL_CHANGED)))},n.prototype.setExpanded=function(t,e){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_EXPANDED_CHANGED));var r=Object.assign({},this.createGlobalRowEvent(g.EVENT_ROW_GROUP_OPENED),{expanded:t,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.sibling&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},n.prototype.createGlobalRowEvent=function(t){return this.beans.gridOptionsService.addGridCommonParams({type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned})},n.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},n.prototype.setDataValue=function(t,e,r){var o=this,i=function(){var u;return typeof t!="string"?t:(u=o.beans.columnModel.getGridColumn(t))!==null&&u!==void 0?u:o.beans.columnModel.getPrimaryColumn(t)},s=i(),a=this.getValueFromValueService(s);if(this.beans.gridOptionsService.get("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(s,a,e,r),!1;var l=this.beans.valueService.setValue(this,s,e,r);return this.dispatchCellChangedEvent(s,e,a),this.checkRowSelectable(),l},n.prototype.getValueFromValueService=function(t){var e=this.leafGroup&&this.beans.columnModel.isPivotMode(),r=this.group&&this.expanded&&!this.footer&&!e,o=this.beans.gridOptionsService.getGroupIncludeFooter(),i=o({node:this}),s=this.beans.gridOptionsService.get("groupSuppressBlankHeader"),a=r&&i&&!s,l=this.beans.valueService.getValue(t,this,!1,a);return l},n.prototype.dispatchEventForSaveValueReadOnly=function(t,e,r,o){var i=this.beans.gridOptionsService.addGridCommonParams({type:g.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:t,colDef:t.getColDef(),data:this.data,node:this,oldValue:e,newValue:r,value:r,source:o});this.beans.eventService.dispatchEvent(i)},n.prototype.setGroupValue=function(t,e){var r=this.beans.columnModel.getGridColumn(t);H(this.groupData)&&(this.groupData={});var o=r.getColId(),i=this.groupData[o];i!==e&&(this.groupData[o]=e,this.dispatchCellChangedEvent(r,e,i))},n.prototype.setAggData=function(t){var e=this,r=this.aggData;if(this.aggData=t,this.eventService){var o=function(s){var a=e.aggData?e.aggData[s]:void 0,l=r?r[s]:void 0;if(a!==l){var u=e.beans.columnModel.lookupGridColumn(s);u&&e.dispatchCellChangedEvent(u,a,l)}};for(var i in this.aggData)o(i);for(var i in t)i in this.aggData||o(i)}},n.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0,e=this.beans.gridOptionsService.isRowModelType("serverSide");if(e){var r=this.beans.gridOptionsService.get("treeData"),o=this.beans.gridOptionsService.get("isServerSideGroup");t=!this.stub&&!this.footer&&(r?!!o&&o(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_HAS_CHILDREN_CHANGED)))},n.prototype.hasChildren=function(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren},n.prototype.isEmptyRowGroupNode=function(){return this.group&&Ge(this.childrenAfterGroup)},n.prototype.dispatchCellChangedEvent=function(t,e,r){var o={type:n.EVENT_CELL_CHANGED,node:this,column:t,newValue:e,oldValue:r};this.dispatchLocalEvent(o)},n.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},n.prototype.isExpandable=function(){return this.footer?!1:this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master},n.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},n.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(t)}),t(this)},n.prototype.calculateSelectedFromChildren=function(){var t,e=!1,r=!1,o=!1;if(!(!((t=this.childrenAfterGroup)===null||t===void 0)&&t.length))return this.selectable?this.selected:null;for(var i=0;i=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Wl=function(n){ih(t,n);function t(){return n.call(this,` + `))||this;return r.cellEditorInput=e,r}return t.prototype.init=function(e){this.params=e;var r=this.eInput;this.cellEditorInput.init(r,e);var o;if(e.cellStartedEdit){this.focusAfterAttached=!0;var i=e.eventKey;i===_.BACKSPACE||e.eventKey===_.DELETE?o="":i&&i.length===1?o=i:(o=this.cellEditorInput.getStartValue(),i!==_.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,o=this.cellEditorInput.getStartValue();o!=null&&r.setStartValue(o),this.addManagedListener(r.getGui(),"keydown",function(s){var a=s.key;(a===_.PAGE_UP||a===_.PAGE_DOWN)&&s.preventDefault()})},t.prototype.afterGuiAttached=function(){var e,r,o=this.localeService.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(o("ariaInputEditor","Input Editor")),!!this.focusAfterAttached){ht()||i.getFocusableElement().focus();var s=i.getInputElement();this.highlightAllOnFocus?s.select():(r=(e=this.cellEditorInput).setCaret)===null||r===void 0||r.call(e)}},t.prototype.focusIn=function(){var e=this.eInput,r=e.getFocusableElement(),o=e.getInputElement();r.focus(),o.select()},t.prototype.getValue=function(){return this.cellEditorInput.getValue()},t.prototype.isPopup=function(){return!1},Yd([L("eInput")],t.prototype,"eInput",void 0),t}(cr),qd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qd=function(){function n(){}return n.prototype.getTemplate=function(){return''},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.maxLength!=null&&t.setMaxLength(e.maxLength)},n.prototype.getValue=function(){var t=this.eInput.getValue();return!P(t)&&!P(this.params.value)?this.params.value:this.params.parseValue(t)},n.prototype.getStartValue=function(){var t=this.params.useFormatter||this.params.column.getColDef().refData;return t?this.params.formatValue(this.params.value):this.params.value},n.prototype.setCaret=function(){var t=this.eInput.getValue(),e=P(t)&&t.length||0;e&&this.eInput.getInputElement().setSelectionRange(e,e)},n}(),Bl=function(n){qd(t,n);function t(){return n.call(this,new Qd)||this}return t}(oi),Xd=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zd=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Jd="↑",eh="↓",th=function(n){Xd(t,n);function t(){var e=n.call(this)||this;e.refreshCount=0;var r=document.createElement("span"),o=document.createElement("span");o.setAttribute("class","ag-value-change-delta");var i=document.createElement("span");return i.setAttribute("class","ag-value-change-value"),r.appendChild(o),r.appendChild(i),e.setTemplateFromElement(r),e}return t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e,!0)},t.prototype.showDelta=function(e,r){var o=Math.abs(r),i=e.formatValue(o),s=P(i)?i:o,a=r>=0;a?this.eDelta.textContent=Jd+s:this.eDelta.textContent=eh+s,this.eDelta.classList.toggle("ag-value-change-delta-up",a),this.eDelta.classList.toggle("ag-value-change-delta-down",!a)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var r=this.refreshCount;this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){r===e.refreshCount&&e.hideDeltaValue()},2e3)})},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),de(this.eDelta)},t.prototype.refresh=function(e,r){r===void 0&&(r=!1);var o=e.value;if(o===this.lastValue||(P(e.valueFormatted)?this.eValue.textContent=e.valueFormatted:P(e.value)?this.eValue.textContent=o:de(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof o=="number"&&typeof this.lastValue=="number"){var i=o-this.lastValue;this.showDelta(e,i)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),r||this.setTimerToRemoveDelta(),this.lastValue=o,!0},Zd([v("filterManager")],t.prototype,"filterManager",void 0),t}(k),rh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),oh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ih=function(n){rh(t,n);function t(){var e=n.call(this)||this;e.refreshCount=0;var r=document.createElement("span"),o=document.createElement("span");return o.setAttribute("class","ag-value-slide-current"),r.appendChild(o),e.setTemplateFromElement(r),e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return t.prototype.init=function(e){this.refresh(e,!0)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var r=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);var o=document.createElement("span");o.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=o,this.ePrevious.textContent=this.eCurrent.textContent,this.getGui().insertBefore(this.ePrevious,this.eCurrent),this.getFrameworkOverrides().wrapIncoming(function(){window.setTimeout(function(){r===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){r===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)})},t.prototype.refresh=function(e,r){r===void 0&&(r=!1);var o=e.value;return H(o)&&(o=""),o===this.lastValue||this.filterManager.isSuppressFlashingCellsBecauseFiltering()?!1:(r||this.addSlideAnimation(),this.lastValue=o,P(e.valueFormatted)?this.eCurrent.textContent=e.valueFormatted:P(e.value)?this.eCurrent.textContent=o:de(this.eCurrent),!0)},oh([v("filterManager")],t.prototype,"filterManager",void 0),t}(k),br=function(){return br=Object.assign||function(n){for(var t,e=1,r=arguments.length;e0?r:void 0,level:this.level}),this.id!==null&&typeof this.id=="string"&&this.id.startsWith(n.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with ".concat(n.ID_PREFIX_ROW_GROUP,", this is a reserved prefix for AG Grid's row grouping feature.")),this.id!==null&&typeof this.id!="string"&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},n.prototype.getGroupKeys=function(t){t===void 0&&(t=!1);var e=[],r=this;for(t&&(r=r.parent);r&&r.level>=0;)e.push(r.key),r=r.parent;return e.reverse(),e},n.prototype.isPixelInRange=function(t){return!P(this.rowTop)||!P(this.rowHeight)?!1:t>=this.rowTop&&to&&(o=u)}),!e&&((r||o<10)&&(o=this.beans.gridOptionsService.getRowHeightForNode(this).height),o!=this.rowHeight)){this.setRowHeight(o);var a=this.beans.rowModel;a.onRowHeightChangedDebounced&&a.onRowHeightChangedDebounced()}}},n.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_ROW_INDEX_CHANGED)))},n.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_UI_LEVEL_CHANGED)))},n.prototype.setExpanded=function(t,e){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_EXPANDED_CHANGED));var r=Object.assign({},this.createGlobalRowEvent(g.EVENT_ROW_GROUP_OPENED),{expanded:t,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.sibling&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},n.prototype.createGlobalRowEvent=function(t){return this.beans.gridOptionsService.addGridCommonParams({type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned})},n.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},n.prototype.setDataValue=function(t,e,r){var o=this,i=function(){var u;return typeof t!="string"?t:(u=o.beans.columnModel.getGridColumn(t))!==null&&u!==void 0?u:o.beans.columnModel.getPrimaryColumn(t)},s=i(),a=this.getValueFromValueService(s);if(this.beans.gridOptionsService.get("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(s,a,e,r),!1;var l=this.beans.valueService.setValue(this,s,e,r);return this.dispatchCellChangedEvent(s,e,a),this.checkRowSelectable(),l},n.prototype.getValueFromValueService=function(t){var e=this.leafGroup&&this.beans.columnModel.isPivotMode(),r=this.group&&this.expanded&&!this.footer&&!e,o=this.beans.gridOptionsService.getGroupIncludeFooter(),i=o({node:this}),s=this.beans.gridOptionsService.get("groupSuppressBlankHeader"),a=r&&i&&!s,l=this.beans.valueService.getValue(t,this,!1,a);return l},n.prototype.dispatchEventForSaveValueReadOnly=function(t,e,r,o){var i=this.beans.gridOptionsService.addGridCommonParams({type:g.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:t,colDef:t.getColDef(),data:this.data,node:this,oldValue:e,newValue:r,value:r,source:o});this.beans.eventService.dispatchEvent(i)},n.prototype.setGroupValue=function(t,e){var r=this.beans.columnModel.getGridColumn(t);H(this.groupData)&&(this.groupData={});var o=r.getColId(),i=this.groupData[o];i!==e&&(this.groupData[o]=e,this.dispatchCellChangedEvent(r,e,i))},n.prototype.setAggData=function(t){var e=this,r=this.aggData;if(this.aggData=t,this.eventService){var o=function(s){var a=e.aggData?e.aggData[s]:void 0,l=r?r[s]:void 0;if(a!==l){var u=e.beans.columnModel.lookupGridColumn(s);u&&e.dispatchCellChangedEvent(u,a,l)}};for(var i in this.aggData)o(i);for(var i in t)i in this.aggData||o(i)}},n.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0,e=this.beans.gridOptionsService.isRowModelType("serverSide");if(e){var r=this.beans.gridOptionsService.get("treeData"),o=this.beans.gridOptionsService.get("isServerSideGroup");t=!this.stub&&!this.footer&&(r?!!o&&o(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(n.EVENT_HAS_CHILDREN_CHANGED)))},n.prototype.hasChildren=function(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren},n.prototype.isEmptyRowGroupNode=function(){return this.group&&Ge(this.childrenAfterGroup)},n.prototype.dispatchCellChangedEvent=function(t,e,r){var o={type:n.EVENT_CELL_CHANGED,node:this,column:t,newValue:e,oldValue:r};this.dispatchLocalEvent(o)},n.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},n.prototype.isExpandable=function(){return this.footer?!1:this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master},n.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},n.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(t)}),t(this)},n.prototype.calculateSelectedFromChildren=function(){var t,e=!1,r=!1,o=!1;if(!(!((t=this.childrenAfterGroup)===null||t===void 0)&&t.length))return this.selectable?this.selected:null;for(var i=0;i=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Wl=function(n){nh(t,n);function t(){return n.call(this,` `)||this}return t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();this.eCheckbox.setValue(e,!0)},t.prototype.onClicked=function(e,r,o){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:o.shiftKey,groupSelectsFiltered:r,event:o,source:"checkboxSelected"})},t.prototype.init=function(e){var r=this;this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(a){it(a)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(a){it(a);var l=r.gridOptionsService.get("groupSelectsFiltered"),u=r.eCheckbox.getValue();if(r.shouldHandleIndeterminateState(u,l)){var c=r.onClicked(!0,l,a||{});c===0&&r.onClicked(!1,l,a)}else u?r.onClicked(!1,l,a):r.onClicked(!0,l,a||{})}),this.addManagedListener(this.rowNode,U.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this));var o=this.gridOptionsService.get("isRowSelectable"),i=o||typeof this.getIsVisible()=="function";if(i){var s=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,s),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,s),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,s),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.shouldHandleIndeterminateState=function(e,r){return r&&(this.eCheckbox.getPreviousValue()===void 0||e===void 0)&&this.gridOptionsService.isRowModelType("clientSide")},t.prototype.showOrHideSelect=function(){var e,r,o,i,s=this.rowNode.selectable,a=this.getIsVisible();if(s)if(typeof a=="function"){var l=(e=this.overrides)===null||e===void 0?void 0:e.callbackParams,u=(r=this.column)===null||r===void 0?void 0:r.createColumnFunctionCallbackParams(this.rowNode);s=u?a(ii(ii({},l),u)):!1}else s=a??!1;var c=(o=this.column)===null||o===void 0?void 0:o.getColDef().showDisabledCheckboxes;if(c){this.eCheckbox.setDisabled(!s),this.setVisible(!0),this.setDisplayed(!0);return}if(!((i=this.overrides)===null||i===void 0)&&i.removeHidden){this.setDisplayed(s);return}this.setVisible(s)},t.prototype.getIsVisible=function(){var e,r;return this.overrides?this.overrides.isVisible:(r=(e=this.column)===null||e===void 0?void 0:e.getColDef())===null||r===void 0?void 0:r.checkboxSelection},kl([L("eCheckbox")],t.prototype,"eCheckbox",void 0),kl([F],t.prototype,"postConstruct",null),t}(k),Fr;(function(n){n[n.Up=0]="Up",n[n.Down=1]="Down"})(Fr||(Fr={}));var Ue;(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right"})(Ue||(Ue={}));var nh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ni=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Te;(function(n){n[n.ToolPanel=0]="ToolPanel",n[n.HeaderCell=1]="HeaderCell",n[n.RowDrag=2]="RowDrag",n[n.ChartPanel=3]="ChartPanel",n[n.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"})(Te||(Te={}));var he=function(n){nh(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.dragSourceAndParamsList=[],r.dropTargets=[],r}e=t,t.prototype.init=function(){this.ePinnedIcon=Ze("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Ze("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Ze("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Ze("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Ze("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Ze("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Ze("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Ze("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Ze("dropNotAllowed",this.gridOptionsService,null)},t.prototype.addDragSource=function(r,o){o===void 0&&(o=!1);var i={eElement:r.eElement,dragStartPixels:r.dragStartPixels,onDragStart:this.onDragStart.bind(this,r),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:o};this.dragSourceAndParamsList.push({params:i,dragSource:r}),this.dragService.addDragSource(i)},t.prototype.removeDragSource=function(r){var o=this.dragSourceAndParamsList.find(function(i){return i.dragSource===r});o&&(this.dragService.removeDragSource(o.params),Ee(this.dragSourceAndParamsList,o))},t.prototype.clearDragSourceParamsList=function(){var r=this;this.dragSourceAndParamsList.forEach(function(o){return r.dragService.removeDragSource(o.params)}),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(r,o){this.dragging=!0,this.dragSource=r,this.eventLastTime=o,this.dragItem=this.dragSource.getDragItem(),this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(r){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var o=this.createDropTargetEvent(this.lastDropTarget,r,null,null,!1);this.lastDropTarget.onDragStop(o)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(r,o){var i=this,s,a,l,u,c=this.getHorizontalDirection(r),p=this.getVerticalDirection(r);this.eventLastTime=r,this.positionGhost(r);var d=this.dropTargets.filter(function(y){return i.isMouseOnDropTarget(r,y)}),h=this.findCurrentDropTarget(r,d);if(h!==this.lastDropTarget)this.leaveLastTargetIfExists(r,c,p,o),this.lastDropTarget!==null&&h===null&&((a=(s=this.dragSource).onGridExit)===null||a===void 0||a.call(s,this.dragItem)),this.lastDropTarget===null&&h!==null&&((u=(l=this.dragSource).onGridEnter)===null||u===void 0||u.call(l,this.dragItem)),this.enterDragTargetIfExists(h,r,c,p,o),this.lastDropTarget=h;else if(h&&h.onDragging){var f=this.createDropTargetEvent(h,r,c,p,o);h.onDragging(f)}},t.prototype.getAllContainersFromDropTarget=function(r){var o=r.getSecondaryContainers?r.getSecondaryContainers():null,i=[[r.getContainer()]];return o?i.concat(o):i},t.prototype.allContainersIntersect=function(r,o){var i,s;try{for(var a=ni(o),l=a.next();!l.done;l=a.next()){var u=l.value,c=u.getBoundingClientRect();if(c.width===0||c.height===0)return!1;var p=r.clientX>=c.left&&r.clientX=c.top&&r.clientYi?Ue.Left:Ue.Right},t.prototype.getVerticalDirection=function(r){var o=this.eventLastTime&&this.eventLastTime.clientY,i=r.clientY;return o===i?null:o>i?Fr.Up:Fr.Down},t.prototype.createDropTargetEvent=function(r,o,i,s,a){var l=r.getContainer(),u=l.getBoundingClientRect(),c=this,p=c.gridApi,d=c.columnApi,h=c.dragItem,f=c.dragSource,y=o.clientX-u.left,m=o.clientY-u.top;return{event:o,x:y,y:m,vDirection:s,hDirection:i,dragSource:f,fromNudge:a,dragItem:h,api:p,columnApi:d,dropZoneTarget:l}},t.prototype.positionGhost=function(r){var o=this.eGhost;if(o){var i=o.getBoundingClientRect(),s=i.height,a=Ya()-2,l=qa()-2,u=Bn(o.offsetParent),c=r.clientY,p=r.clientX,d=c-u.top-s/2,h=p-u.left-10,f=this.gridOptionsService.getDocument(),y=f.defaultView||window,m=y.pageYOffset||f.documentElement.scrollTop,C=y.pageXOffset||f.documentElement.scrollLeft;a>0&&h+o.clientWidth>a+C&&(h=a+C-o.clientWidth),h<0&&(h=0),l>0&&d+o.clientHeight>l+m&&(d=l+m-o.clientHeight),d<0&&(d=0),o.style.left="".concat(h,"px"),o.style.top="".concat(d,"px")}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=Re(e.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var r=this.environment.getTheme().theme;r&&this.eGhost.classList.add(r),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var o=this.eGhost.querySelector(".ag-dnd-ghost-label"),i=this.dragSource.dragItemName;Ho(i)&&(i=i()),o.innerHTML=ae(i)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var s=this.gridOptionsService.getDocument(),a=null,l=null;try{a=s.fullscreenElement}catch{}finally{a||(a=this.gridOptionsService.getRootNode());var u=a.querySelector("body");u?l=u:a instanceof ShadowRoot?l=a:a instanceof Document?l=a==null?void 0:a.documentElement:l=a}this.eGhostParent=l,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(r,o){o===void 0&&(o=!1),de(this.eGhostIcon);var i=null;switch(r||(r=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():e.ICON_NOT_ALLOWED),r){case e.ICON_PINNED:i=this.ePinnedIcon;break;case e.ICON_MOVE:i=this.eMoveIcon;break;case e.ICON_LEFT:i=this.eLeftIcon;break;case e.ICON_RIGHT:i=this.eRightIcon;break;case e.ICON_GROUP:i=this.eGroupIcon;break;case e.ICON_AGGREGATE:i=this.eAggregateIcon;break;case e.ICON_PIVOT:i=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:i=this.eHideIcon;break}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",o),!(i===this.eHideIcon&&this.gridOptionsService.get("suppressDragLeaveHidesColumns"))&&i&&this.eGhostIcon.appendChild(i)};var e;return t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE=`
+
`)||this}return t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();this.eCheckbox.setValue(e,!0)},t.prototype.onClicked=function(e,r,o){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:o.shiftKey,groupSelectsFiltered:r,event:o,source:"checkboxSelected"})},t.prototype.init=function(e){var r=this;this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",function(a){it(a)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(a){it(a);var l=r.gridOptionsService.get("groupSelectsFiltered"),u=r.eCheckbox.getValue();if(r.shouldHandleIndeterminateState(u,l)){var c=r.onClicked(!0,l,a||{});c===0&&r.onClicked(!1,l,a)}else u?r.onClicked(!1,l,a):r.onClicked(!0,l,a||{})}),this.addManagedListener(this.rowNode,U.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this));var o=this.gridOptionsService.get("isRowSelectable"),i=o||typeof this.getIsVisible()=="function";if(i){var s=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,s),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,s),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,s),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.shouldHandleIndeterminateState=function(e,r){return r&&(this.eCheckbox.getPreviousValue()===void 0||e===void 0)&&this.gridOptionsService.isRowModelType("clientSide")},t.prototype.showOrHideSelect=function(){var e,r,o,i,s=this.rowNode.selectable,a=this.getIsVisible();if(s)if(typeof a=="function"){var l=(e=this.overrides)===null||e===void 0?void 0:e.callbackParams,u=(r=this.column)===null||r===void 0?void 0:r.createColumnFunctionCallbackParams(this.rowNode);s=u?a(ii(ii({},l),u)):!1}else s=a??!1;var c=(o=this.column)===null||o===void 0?void 0:o.getColDef().showDisabledCheckboxes;if(c){this.eCheckbox.setDisabled(!s),this.setVisible(!0),this.setDisplayed(!0);return}if(!((i=this.overrides)===null||i===void 0)&&i.removeHidden){this.setDisplayed(s);return}this.setVisible(s)},t.prototype.getIsVisible=function(){var e,r;return this.overrides?this.overrides.isVisible:(r=(e=this.column)===null||e===void 0?void 0:e.getColDef())===null||r===void 0?void 0:r.checkboxSelection},kl([L("eCheckbox")],t.prototype,"eCheckbox",void 0),kl([F],t.prototype,"postConstruct",null),t}(k),Fr;(function(n){n[n.Up=0]="Up",n[n.Down=1]="Down"})(Fr||(Fr={}));var Ue;(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right"})(Ue||(Ue={}));var sh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ni=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Pe;(function(n){n[n.ToolPanel=0]="ToolPanel",n[n.HeaderCell=1]="HeaderCell",n[n.RowDrag=2]="RowDrag",n[n.ChartPanel=3]="ChartPanel",n[n.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"})(Pe||(Pe={}));var he=function(n){sh(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.dragSourceAndParamsList=[],r.dropTargets=[],r}e=t,t.prototype.init=function(){this.ePinnedIcon=Je("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Je("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Je("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Je("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Je("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Je("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Je("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Je("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Je("dropNotAllowed",this.gridOptionsService,null)},t.prototype.addDragSource=function(r,o){o===void 0&&(o=!1);var i={eElement:r.eElement,dragStartPixels:r.dragStartPixels,onDragStart:this.onDragStart.bind(this,r),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:o};this.dragSourceAndParamsList.push({params:i,dragSource:r}),this.dragService.addDragSource(i)},t.prototype.removeDragSource=function(r){var o=this.dragSourceAndParamsList.find(function(i){return i.dragSource===r});o&&(this.dragService.removeDragSource(o.params),_e(this.dragSourceAndParamsList,o))},t.prototype.clearDragSourceParamsList=function(){var r=this;this.dragSourceAndParamsList.forEach(function(o){return r.dragService.removeDragSource(o.params)}),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(r,o){this.dragging=!0,this.dragSource=r,this.eventLastTime=o,this.dragItem=this.dragSource.getDragItem(),this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(r){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var o=this.createDropTargetEvent(this.lastDropTarget,r,null,null,!1);this.lastDropTarget.onDragStop(o)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(r,o){var i=this,s,a,l,u,c=this.getHorizontalDirection(r),p=this.getVerticalDirection(r);this.eventLastTime=r,this.positionGhost(r);var d=this.dropTargets.filter(function(y){return i.isMouseOnDropTarget(r,y)}),h=this.findCurrentDropTarget(r,d);if(h!==this.lastDropTarget)this.leaveLastTargetIfExists(r,c,p,o),this.lastDropTarget!==null&&h===null&&((a=(s=this.dragSource).onGridExit)===null||a===void 0||a.call(s,this.dragItem)),this.lastDropTarget===null&&h!==null&&((u=(l=this.dragSource).onGridEnter)===null||u===void 0||u.call(l,this.dragItem)),this.enterDragTargetIfExists(h,r,c,p,o),this.lastDropTarget=h;else if(h&&h.onDragging){var f=this.createDropTargetEvent(h,r,c,p,o);h.onDragging(f)}},t.prototype.getAllContainersFromDropTarget=function(r){var o=r.getSecondaryContainers?r.getSecondaryContainers():null,i=[[r.getContainer()]];return o?i.concat(o):i},t.prototype.allContainersIntersect=function(r,o){var i,s;try{for(var a=ni(o),l=a.next();!l.done;l=a.next()){var u=l.value,c=u.getBoundingClientRect();if(c.width===0||c.height===0)return!1;var p=r.clientX>=c.left&&r.clientX=c.top&&r.clientYi?Ue.Left:Ue.Right},t.prototype.getVerticalDirection=function(r){var o=this.eventLastTime&&this.eventLastTime.clientY,i=r.clientY;return o===i?null:o>i?Fr.Up:Fr.Down},t.prototype.createDropTargetEvent=function(r,o,i,s,a){var l=r.getContainer(),u=l.getBoundingClientRect(),c=this,p=c.gridApi,d=c.columnApi,h=c.dragItem,f=c.dragSource,y=o.clientX-u.left,C=o.clientY-u.top;return{event:o,x:y,y:C,vDirection:s,hDirection:i,dragSource:f,fromNudge:a,dragItem:h,api:p,columnApi:d,dropZoneTarget:l}},t.prototype.positionGhost=function(r){var o=this.eGhost;if(o){var i=o.getBoundingClientRect(),s=i.height,a=Ya()-2,l=qa()-2,u=Bn(o.offsetParent),c=r.clientY,p=r.clientX,d=c-u.top-s/2,h=p-u.left-10,f=this.gridOptionsService.getDocument(),y=f.defaultView||window,C=y.pageYOffset||f.documentElement.scrollTop,m=y.pageXOffset||f.documentElement.scrollLeft;a>0&&h+o.clientWidth>a+m&&(h=a+m-o.clientWidth),h<0&&(h=0),l>0&&d+o.clientHeight>l+C&&(d=l+C-o.clientHeight),d<0&&(d=0),o.style.left="".concat(h,"px"),o.style.top="".concat(d,"px")}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=Oe(e.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var r=this.environment.getTheme().theme;r&&this.eGhost.classList.add(r),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var o=this.eGhost.querySelector(".ag-dnd-ghost-label"),i=this.dragSource.dragItemName;Ho(i)&&(i=i()),o.innerHTML=ae(i)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var s=this.gridOptionsService.getDocument(),a=null,l=null;try{a=s.fullscreenElement}catch{}finally{a||(a=this.gridOptionsService.getRootNode());var u=a.querySelector("body");u?l=u:a instanceof ShadowRoot?l=a:a instanceof Document?l=a==null?void 0:a.documentElement:l=a}this.eGhostParent=l,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(r,o){o===void 0&&(o=!1),de(this.eGhostIcon);var i=null;switch(r||(r=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():e.ICON_NOT_ALLOWED),r){case e.ICON_PINNED:i=this.ePinnedIcon;break;case e.ICON_MOVE:i=this.eMoveIcon;break;case e.ICON_LEFT:i=this.eLeftIcon;break;case e.ICON_RIGHT:i=this.eRightIcon;break;case e.ICON_GROUP:i=this.eGroupIcon;break;case e.ICON_AGGREGATE:i=this.eAggregateIcon;break;case e.ICON_PIVOT:i=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:i=this.eHideIcon;break}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",o),!(i===this.eHideIcon&&this.gridOptionsService.get("suppressDragLeaveHidesColumns"))&&i&&this.eGhostIcon.appendChild(i)};var e;return t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE=`
-
`,pr([v("dragService")],t.prototype,"dragService",void 0),pr([v("mouseEventService")],t.prototype,"mouseEventService",void 0),pr([v("columnApi")],t.prototype,"columnApi",void 0),pr([v("gridApi")],t.prototype,"gridApi",void 0),pr([F],t.prototype,"init",null),pr([Se],t.prototype,"clearDragSourceParamsList",null),t=e=pr([x("dragAndDropService")],t),t}(D),si=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),io=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ai=function(n){si(t,n);function t(e,r,o,i,s,a){var l=n.call(this)||this;return l.cellValueFn=e,l.rowNode=r,l.column=o,l.customGui=i,l.dragStartPixels=s,l.suppressVisibilityChange=a,l.dragSource=null,l}return t.prototype.isCustomGui=function(){return this.customGui!=null},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(ne("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.gridOptionsService.get("rowDragManaged")?new ah(this,this.beans,this.rowNode,this.column):new sh(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,r){this.setTemplateFromElement(e),this.addDragSource(r)},t.prototype.getSelectedNodes=function(){var e=this.gridOptionsService.get("rowDragMultiRow");if(!e)return[this.rowNode];var r=this.beans.selectionService.getSelectedNodes();return r.indexOf(this.rowNode)!==-1?r:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.gridOptionsService.get("rowDragManaged"),r=this.gridOptionsService.get("treeData");r&&e&&V("If using row drag with tree data, you cannot have rowDragManaged=true")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.getRowDragText=function(e){if(e){var r=e.getColDef();if(r.rowDragText)return r.rowDragText}return this.gridOptionsService.get("rowDragText")},t.prototype.addDragSource=function(e){var r=this;e===void 0&&(e=4),this.dragSource&&this.removeDragSource();var o=this.localeService.getLocaleTextFunc();this.dragSource={type:Te.RowDrag,eElement:this.getGui(),dragItemName:function(){var i,s=r.getDragItem(),a=((i=s.rowNodes)===null||i===void 0?void 0:i.length)||1,l=r.getRowDragText(r.column);return l?l(s,a):a===1?r.cellValueFn():"".concat(a," ").concat(o("rowDragRows","rows"))},getDragItem:function(){return r.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},io([v("beans")],t.prototype,"beans",void 0),io([F],t.prototype,"postConstruct",null),io([Se],t.prototype,"removeDragSource",null),t}(k),jl=function(n){si(t,n);function t(e,r,o){var i=n.call(this)||this;return i.parent=e,i.rowNode=r,i.column=o,i}return t.prototype.setDisplayedOrVisible=function(e){var r={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,r);else{var o=!0,i=!1;this.column&&(o=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),i=Ho(this.column.getColDef().rowDrag)),i?(this.parent.setDisplayed(!0,r),this.parent.setVisible(o,r)):(this.parent.setDisplayed(o,r),this.parent.setVisible(!0,r))}},t}(D),sh=function(n){si(t,n);function t(e,r,o,i){var s=n.call(this,e,o,i)||this;return s.beans=r,s}return t.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.gridOptionsService.get("suppressRowDrag");this.setDisplayedOrVisible(e)},io([F],t.prototype,"postConstruct",null),t}(jl),ah=function(n){si(t,n);function t(e,r,o,i){var s=n.call(this,e,o,i)||this;return s.beans=r,s}return t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,g.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl(),r=e.getRowDragFeature(),o=r&&r.shouldPreventRowMove(),i=this.gridOptionsService.get("suppressRowDrag"),s=this.beans.dragAndDropService.hasExternalDropZones(),a=o&&!s||i;this.setDisplayedOrVisible(a)},io([F],t.prototype,"postConstruct",null),t}(jl),lh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),li=function(){return li=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},uh=function(n){lh(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e,r,o,i,s,a,l){var u,c,p,d;this.params=l,this.eGui=r,this.eCheckbox=o,this.eExpanded=i,this.eContracted=s,this.comp=e,this.compClass=a;var h=l.node;l.value;var f=l.colDef,y=this.isTopLevelFooter();if(!y){var m=this.isEmbeddedRowMismatch();if(m)return;if(h.footer&&this.gridOptionsService.get("groupHideOpenParents")){var C=f&&f.showRowGroup,w=h.rowGroupColumn&&h.rowGroupColumn.getColId();if(C!==w)return}}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!y){var E=l.node.footer&&l.node.rowGroupIndex===this.columnModel.getRowGroupColumns().findIndex(function(N){var I;return N.getColId()===((I=l.colDef)===null||I===void 0?void 0:I.showRowGroup)}),S=this.gridOptionsService.get("groupDisplayType")!="multipleColumns"||this.gridOptionsService.get("treeData"),R=S||this.gridOptionsService.get("showOpenedGroup")&&!l.node.footer&&(!l.node.group||l.node.rowGroupIndex!=null&&l.node.rowGroupIndex>this.columnModel.getRowGroupColumns().findIndex(function(N){var I;return N.getColId()===((I=l.colDef)===null||I===void 0?void 0:I.showRowGroup)})),O=!h.group&&(((u=this.params.colDef)===null||u===void 0?void 0:u.field)||((c=this.params.colDef)===null||c===void 0?void 0:c.valueGetter)),b=this.isExpandable(),A=this.columnModel.isPivotMode()&&h.leafGroup&&((p=h.rowGroupColumn)===null||p===void 0?void 0:p.getColId())===((d=l.column)===null||d===void 0?void 0:d.getColDef().showRowGroup),M=!this.showingValueForOpenedParent&&!b&&!O&&!R&&!E&&!A;if(M)return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()},t.prototype.getCellAriaRole=function(){var e,r,o=(e=this.params.colDef)===null||e===void 0?void 0:e.cellAriaRole,i=(r=this.params.column)===null||r===void 0?void 0:r.getColDef().cellAriaRole;return o||i||"gridcell"},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,r=e.node,o=e.eGridCell;if(this.expandListener&&(this.expandListener=this.expandListener()),!this.isExpandable()){Ba(o);return}var i=function(){Pt(o,!!r.expanded)};this.expandListener=this.addManagedListener(r,U.EVENT_EXPANDED_CHANGED,i)||null,i()},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.get("groupIncludeTotalFooter")||this.params.value!=null||this.params.node.level!=-1)return!1;var e=this.params.colDef,r=e==null;if(r||e.showRowGroup===!0)return!0;var o=this.columnModel.getRowGroupColumns();if(!o||o.length===0)return!0;var i=o[0];return i.getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.get("embedFullWidthRows"))return!1;var e=this.params.pinned==="left",r=this.params.pinned==="right",o=!e&&!r;return this.gridOptionsService.get("enableRtl")?this.columnModel.isPinningLeft()?!r:!o:this.columnModel.isPinningLeft()?!e:!o},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,r=this.params.node;if(this.showingValueForOpenedParent)for(var o=r.parent;o!=null;){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroupNode=o;break}o=o.parent}H(this.displayedGroupNode)&&(this.displayedGroupNode=r)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,r=this.params.column;if(!this.gridOptionsService.get("groupHideOpenParents")){this.showingValueForOpenedParent=!1;return}if(!e.groupData){this.showingValueForOpenedParent=!1;return}var o=e.rowGroupColumn!=null;if(o){var i=e.rowGroupColumn.getId(),s=r.isRowGroupDisplayed(i);if(s){this.showingValueForOpenedParent=!1;return}}var a=e.groupData[r.getId()]!=null;this.showingValueForOpenedParent=a},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e,r=this.adjustParamsWithDetailsFromRelatedColumn(),o=this.getInnerCompDetails(r),i=r.valueFormatted,s=r.value,a=i;if(a==null){var l=this.displayedGroupNode.rowGroupColumn&&((e=this.params.column)===null||e===void 0?void 0:e.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));if(this.displayedGroupNode.key===""&&this.displayedGroupNode.group&&l){var u=this.localeService.getLocaleTextFunc();a=u("blanks","(Blanks)")}else a=s??null}this.comp.setInnerRenderer(o,a)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,r=this.params.column;if(!e)return this.params;var o=r!=null;if(o){var i=r.isRowGroupDisplayed(e.getId());if(!i)return this.params}var s=this.params,a=this.params,l=a.value,u=a.node,c=this.valueFormatterService.formatValue(e,u,l),p=li(li({},s),{valueFormatted:c});return p},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,r="";if(e){var o=qi(this.params);o.value=this.params.value,typeof e=="function"?r=e(o):typeof e=="string"?r=this.expressionService.evaluate(e,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else{var i=this.localeService.getLocaleTextFunc(),s=i("footerTotal","Total");r=s+" "+(this.params.value!=null?this.params.value:"")}var a=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(a,r)},t.prototype.getInnerCompDetails=function(e){var r=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var o=this.userComponentFactory.getInnerRendererDetails(e,e),i=function(c){return c&&c.componentClass==r.compClass};if(o&&!i(o))return o;var s=this.displayedGroupNode.rowGroupColumn,a=s?s.getColDef():void 0;if(a){var l=this.userComponentFactory.getCellRendererDetails(a,e);if(l&&!i(l))return l;if(i(l)&&a.cellRendererParams&&a.cellRendererParams.innerRenderer){var u=this.userComponentFactory.getInnerRendererDetails(a.cellRendererParams,e);return u}}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,U.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,r=this.isShowRowGroupForThisRow(),o=r&&e!=null&&e>=0,i=o?"(".concat(e,")"):"";this.comp.setChildCount(i)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.get("treeData"))return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var r=this.params.column,o=r==null||r.isRowGroupDisplayed(e.getId());return o},t.prototype.addExpandAndContract=function(){var e,r=this.params,o=ne("groupExpanded",this.gridOptionsService,null),i=ne("groupContracted",this.gridOptionsService,null);o&&this.eExpanded.appendChild(o),i&&this.eContracted.appendChild(i);var s=r.eGridCell,a=((e=this.params.column)===null||e===void 0?void 0:e.isCellEditable(r.node))&&this.gridOptionsService.get("enableGroupEdit");!a&&this.isExpandable()&&!r.suppressDoubleClickExpand&&this.addManagedListener(s,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(s,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(r.node,U.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var l=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,U.EVENT_ALL_CHILDREN_COUNT_CHANGED,l),this.addManagedListener(this.displayedGroupNode,U.EVENT_MASTER_CHANGED,l),this.addManagedListener(this.displayedGroupNode,U.EVENT_GROUP_CHANGED,l),this.addManagedListener(this.displayedGroupNode,U.EVENT_HAS_CHILDREN_CHANGED,l)},t.prototype.onExpandClicked=function(e){nt(e)||(it(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var r=this.displayedGroupNode,o=!r.expanded;!o&&r.sticky&&this.scrollToStickyNode(r),r.setExpanded(o,e)},t.prototype.scrollToStickyNode=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature();o.setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,r=this.columnModel.isPivotMode()&&e.leafGroup,o=e.isExpandable()&&!e.footer&&!r;if(!o)return!1;var i=this.params.column,s=i!=null&&typeof i.getColDef().showRowGroup=="string";if(s){var a=this.isShowRowGroupForThisRow();return a}return!0},t.prototype.showExpandAndContractIcons=function(){var e=this,r=e.params,o=e.displayedGroupNode,i=e.columnModel,s=r.node,a=this.isExpandable();if(a){var l=this.showingValueForOpenedParent?!0:s.expanded;this.comp.setExpandedDisplayed(l),this.comp.setContractedDisplayed(!l)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var u=i.isPivotMode(),c=u&&o.leafGroup,p=a&&!c,d=s.footer&&s.level===-1;this.comp.addOrRemoveCssClass("ag-cell-expandable",p),this.comp.addOrRemoveCssClass("ag-row-group",p),u?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",c):d||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!p)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node,r=this.params.suppressPadding;r||(this.addManagedListener(e,U.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.get("groupHideOpenParents")){var e=this.params,r=e.node,o=!!e.colDef,i=this.gridOptionsService.get("treeData"),s=!o||i||e.colDef.showRowGroup===!0,a=s?r.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+a,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(!(!this.params.fullWidth||!this.params.rowDrag)){var r=new ai(function(){return e.params.value},this.params.node);this.createManagedBean(r,this.context),this.eGui.insertAdjacentElement("afterbegin",r.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return typeof e=="function"||e===!0},t.prototype.addCheckboxIfNeeded=function(){var e=this,r=this.displayedGroupNode,o=this.isUserWantsSelected()&&!r.footer&&!r.rowPinned&&!r.detail;if(o){var i=new Wl;this.getContext().createBean(i),i.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(i.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(i)})}this.comp.setCheckboxVisible(o)},t.prototype.onKeyDown=function(e){var r=e.key===_.ENTER;if(!(!r||this.params.suppressEnterExpand)){var o=this.params.column&&this.params.column.isCellEditable(this.params.node);o||this.onExpandOrContract(e)}},t.prototype.onCellDblClicked=function(e){if(!nt(e)){var r=Wo(this.eExpanded,e)||Wo(this.eContracted,e);r||this.onExpandOrContract(e)}},no([v("expressionService")],t.prototype,"expressionService",void 0),no([v("valueFormatterService")],t.prototype,"valueFormatterService",void 0),no([v("columnModel")],t.prototype,"columnModel",void 0),no([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),no([v("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(D),ch=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),so=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ul=function(n){ch(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){var r=this,o={setInnerRenderer:function(l,u){return r.setRenderDetails(l,u)},setChildCount:function(l){return r.eChildCount.textContent=l},addOrRemoveCssClass:function(l,u){return r.addOrRemoveCssClass(l,u)},setContractedDisplayed:function(l){return $(r.eContracted,l)},setExpandedDisplayed:function(l){return $(r.eExpanded,l)},setCheckboxVisible:function(l){return r.eCheckbox.classList.toggle("ag-invisible",!l)}},i=this.createManagedBean(new uh),s=!e.colDef,a=this.getGui();i.init(o,a,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),s&&le(a,i.getCellAriaRole())},t.prototype.setRenderDetails=function(e,r){var o=this;if(e){var i=e.newAgStackInstance();if(!i)return;i.then(function(s){if(s){var a=function(){return o.context.destroyBean(s)};o.isAlive()?(o.eValue.appendChild(s.getGui()),o.addDestroyFunc(a)):a()}})}else this.eValue.innerText=r},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),n.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE=` + `,pr([v("dragService")],t.prototype,"dragService",void 0),pr([v("mouseEventService")],t.prototype,"mouseEventService",void 0),pr([v("columnApi")],t.prototype,"columnApi",void 0),pr([v("gridApi")],t.prototype,"gridApi",void 0),pr([F],t.prototype,"init",null),pr([we],t.prototype,"clearDragSourceParamsList",null),t=e=pr([x("dragAndDropService")],t),t}(D),si=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),io=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ai=function(n){si(t,n);function t(e,r,o,i,s,a){var l=n.call(this)||this;return l.cellValueFn=e,l.rowNode=r,l.column=o,l.customGui=i,l.dragStartPixels=s,l.suppressVisibilityChange=a,l.dragSource=null,l}return t.prototype.isCustomGui=function(){return this.customGui!=null},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(ne("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.gridOptionsService.get("rowDragManaged")?new lh(this,this.beans,this.rowNode,this.column):new ah(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,r){this.setTemplateFromElement(e),this.addDragSource(r)},t.prototype.getSelectedNodes=function(){var e=this.gridOptionsService.get("rowDragMultiRow");if(!e)return[this.rowNode];var r=this.beans.selectionService.getSelectedNodes();return r.indexOf(this.rowNode)!==-1?r:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.gridOptionsService.get("rowDragManaged"),r=this.gridOptionsService.get("treeData");r&&e&&V("If using row drag with tree data, you cannot have rowDragManaged=true")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.getRowDragText=function(e){if(e){var r=e.getColDef();if(r.rowDragText)return r.rowDragText}return this.gridOptionsService.get("rowDragText")},t.prototype.addDragSource=function(e){var r=this;e===void 0&&(e=4),this.dragSource&&this.removeDragSource();var o=this.localeService.getLocaleTextFunc();this.dragSource={type:Pe.RowDrag,eElement:this.getGui(),dragItemName:function(){var i,s=r.getDragItem(),a=((i=s.rowNodes)===null||i===void 0?void 0:i.length)||1,l=r.getRowDragText(r.column);return l?l(s,a):a===1?r.cellValueFn():"".concat(a," ").concat(o("rowDragRows","rows"))},getDragItem:function(){return r.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},io([v("beans")],t.prototype,"beans",void 0),io([F],t.prototype,"postConstruct",null),io([we],t.prototype,"removeDragSource",null),t}(k),jl=function(n){si(t,n);function t(e,r,o){var i=n.call(this)||this;return i.parent=e,i.rowNode=r,i.column=o,i}return t.prototype.setDisplayedOrVisible=function(e){var r={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,r);else{var o=!0,i=!1;this.column&&(o=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),i=Ho(this.column.getColDef().rowDrag)),i?(this.parent.setDisplayed(!0,r),this.parent.setVisible(o,r)):(this.parent.setDisplayed(o,r),this.parent.setVisible(!0,r))}},t}(D),ah=function(n){si(t,n);function t(e,r,o,i){var s=n.call(this,e,o,i)||this;return s.beans=r,s}return t.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.gridOptionsService.get("suppressRowDrag");this.setDisplayedOrVisible(e)},io([F],t.prototype,"postConstruct",null),t}(jl),lh=function(n){si(t,n);function t(e,r,o,i){var s=n.call(this,e,o,i)||this;return s.beans=r,s}return t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,g.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl(),r=e.getRowDragFeature(),o=r&&r.shouldPreventRowMove(),i=this.gridOptionsService.get("suppressRowDrag"),s=this.beans.dragAndDropService.hasExternalDropZones(),a=o&&!s||i;this.setDisplayedOrVisible(a)},io([F],t.prototype,"postConstruct",null),t}(jl),uh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),li=function(){return li=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ch=function(n){uh(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e,r,o,i,s,a,l){var u,c,p,d;this.params=l,this.eGui=r,this.eCheckbox=o,this.eExpanded=i,this.eContracted=s,this.comp=e,this.compClass=a;var h=l.node;l.value;var f=l.colDef,y=this.isTopLevelFooter();if(!y){var C=this.isEmbeddedRowMismatch();if(C)return;if(h.footer&&this.gridOptionsService.get("groupHideOpenParents")){var m=f&&f.showRowGroup,w=h.rowGroupColumn&&h.rowGroupColumn.getColId();if(m!==w)return}}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!y){var E=l.node.footer&&l.node.rowGroupIndex===this.columnModel.getRowGroupColumns().findIndex(function(N){var I;return N.getColId()===((I=l.colDef)===null||I===void 0?void 0:I.showRowGroup)}),S=this.gridOptionsService.get("groupDisplayType")!="multipleColumns"||this.gridOptionsService.get("treeData"),R=S||this.gridOptionsService.get("showOpenedGroup")&&!l.node.footer&&(!l.node.group||l.node.rowGroupIndex!=null&&l.node.rowGroupIndex>this.columnModel.getRowGroupColumns().findIndex(function(N){var I;return N.getColId()===((I=l.colDef)===null||I===void 0?void 0:I.showRowGroup)})),O=!h.group&&(((u=this.params.colDef)===null||u===void 0?void 0:u.field)||((c=this.params.colDef)===null||c===void 0?void 0:c.valueGetter)),b=this.isExpandable(),A=this.columnModel.isPivotMode()&&h.leafGroup&&((p=h.rowGroupColumn)===null||p===void 0?void 0:p.getColId())===((d=l.column)===null||d===void 0?void 0:d.getColDef().showRowGroup),M=!this.showingValueForOpenedParent&&!b&&!O&&!R&&!E&&!A;if(M)return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()},t.prototype.getCellAriaRole=function(){var e,r,o=(e=this.params.colDef)===null||e===void 0?void 0:e.cellAriaRole,i=(r=this.params.column)===null||r===void 0?void 0:r.getColDef().cellAriaRole;return o||i||"gridcell"},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,r=e.node,o=e.eGridCell;if(this.expandListener&&(this.expandListener=this.expandListener()),!this.isExpandable()){Ba(o);return}var i=function(){Pt(o,!!r.expanded)};this.expandListener=this.addManagedListener(r,U.EVENT_EXPANDED_CHANGED,i)||null,i()},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.get("groupIncludeTotalFooter")||this.params.value!=null||this.params.node.level!=-1)return!1;var e=this.params.colDef,r=e==null;if(r||e.showRowGroup===!0)return!0;var o=this.columnModel.getRowGroupColumns();if(!o||o.length===0)return!0;var i=o[0];return i.getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.get("embedFullWidthRows"))return!1;var e=this.params.pinned==="left",r=this.params.pinned==="right",o=!e&&!r;return this.gridOptionsService.get("enableRtl")?this.columnModel.isPinningLeft()?!r:!o:this.columnModel.isPinningLeft()?!e:!o},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,r=this.params.node;if(this.showingValueForOpenedParent)for(var o=r.parent;o!=null;){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroupNode=o;break}o=o.parent}H(this.displayedGroupNode)&&(this.displayedGroupNode=r)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,r=this.params.column;if(!this.gridOptionsService.get("groupHideOpenParents")){this.showingValueForOpenedParent=!1;return}if(!e.groupData){this.showingValueForOpenedParent=!1;return}var o=e.rowGroupColumn!=null;if(o){var i=e.rowGroupColumn.getId(),s=r.isRowGroupDisplayed(i);if(s){this.showingValueForOpenedParent=!1;return}}var a=e.groupData[r.getId()]!=null;this.showingValueForOpenedParent=a},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e,r=this.adjustParamsWithDetailsFromRelatedColumn(),o=this.getInnerCompDetails(r),i=r.valueFormatted,s=r.value,a=i;if(a==null){var l=this.displayedGroupNode.rowGroupColumn&&((e=this.params.column)===null||e===void 0?void 0:e.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));if(this.displayedGroupNode.key===""&&this.displayedGroupNode.group&&l){var u=this.localeService.getLocaleTextFunc();a=u("blanks","(Blanks)")}else a=s??null}this.comp.setInnerRenderer(o,a)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,r=this.params.column;if(!e)return this.params;var o=r!=null;if(o){var i=r.isRowGroupDisplayed(e.getId());if(!i)return this.params}var s=this.params,a=this.params,l=a.value,u=a.node,c=this.valueFormatterService.formatValue(e,u,l),p=li(li({},s),{valueFormatted:c});return p},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,r="";if(e){var o=qi(this.params);o.value=this.params.value,typeof e=="function"?r=e(o):typeof e=="string"?r=this.expressionService.evaluate(e,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else{var i=this.localeService.getLocaleTextFunc(),s=i("footerTotal","Total");r=s+" "+(this.params.value!=null?this.params.value:"")}var a=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(a,r)},t.prototype.getInnerCompDetails=function(e){var r=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var o=this.userComponentFactory.getInnerRendererDetails(e,e),i=function(c){return c&&c.componentClass==r.compClass};if(o&&!i(o))return o;var s=this.displayedGroupNode.rowGroupColumn,a=s?s.getColDef():void 0;if(a){var l=this.userComponentFactory.getCellRendererDetails(a,e);if(l&&!i(l))return l;if(i(l)&&a.cellRendererParams&&a.cellRendererParams.innerRenderer){var u=this.userComponentFactory.getInnerRendererDetails(a.cellRendererParams,e);return u}}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,U.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,r=this.isShowRowGroupForThisRow(),o=r&&e!=null&&e>=0,i=o?"(".concat(e,")"):"";this.comp.setChildCount(i)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.get("treeData"))return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var r=this.params.column,o=r==null||r.isRowGroupDisplayed(e.getId());return o},t.prototype.addExpandAndContract=function(){var e,r=this.params,o=ne("groupExpanded",this.gridOptionsService,null),i=ne("groupContracted",this.gridOptionsService,null);o&&this.eExpanded.appendChild(o),i&&this.eContracted.appendChild(i);var s=r.eGridCell,a=((e=this.params.column)===null||e===void 0?void 0:e.isCellEditable(r.node))&&this.gridOptionsService.get("enableGroupEdit");!a&&this.isExpandable()&&!r.suppressDoubleClickExpand&&this.addManagedListener(s,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(s,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(r.node,U.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var l=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,U.EVENT_ALL_CHILDREN_COUNT_CHANGED,l),this.addManagedListener(this.displayedGroupNode,U.EVENT_MASTER_CHANGED,l),this.addManagedListener(this.displayedGroupNode,U.EVENT_GROUP_CHANGED,l),this.addManagedListener(this.displayedGroupNode,U.EVENT_HAS_CHILDREN_CHANGED,l)},t.prototype.onExpandClicked=function(e){nt(e)||(it(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var r=this.displayedGroupNode,o=!r.expanded;!o&&r.sticky&&this.scrollToStickyNode(r),r.setExpanded(o,e)},t.prototype.scrollToStickyNode=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature();o.setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,r=this.columnModel.isPivotMode()&&e.leafGroup,o=e.isExpandable()&&!e.footer&&!r;if(!o)return!1;var i=this.params.column,s=i!=null&&typeof i.getColDef().showRowGroup=="string";if(s){var a=this.isShowRowGroupForThisRow();return a}return!0},t.prototype.showExpandAndContractIcons=function(){var e=this,r=e.params,o=e.displayedGroupNode,i=e.columnModel,s=r.node,a=this.isExpandable();if(a){var l=this.showingValueForOpenedParent?!0:s.expanded;this.comp.setExpandedDisplayed(l),this.comp.setContractedDisplayed(!l)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var u=i.isPivotMode(),c=u&&o.leafGroup,p=a&&!c,d=s.footer&&s.level===-1;this.comp.addOrRemoveCssClass("ag-cell-expandable",p),this.comp.addOrRemoveCssClass("ag-row-group",p),u?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",c):d||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!p)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node,r=this.params.suppressPadding;r||(this.addManagedListener(e,U.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.get("groupHideOpenParents")){var e=this.params,r=e.node,o=!!e.colDef,i=this.gridOptionsService.get("treeData"),s=!o||i||e.colDef.showRowGroup===!0,a=s?r.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+a,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(!(!this.params.fullWidth||!this.params.rowDrag)){var r=new ai(function(){return e.params.value},this.params.node);this.createManagedBean(r,this.context),this.eGui.insertAdjacentElement("afterbegin",r.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return typeof e=="function"||e===!0},t.prototype.addCheckboxIfNeeded=function(){var e=this,r=this.displayedGroupNode,o=this.isUserWantsSelected()&&!r.footer&&!r.rowPinned&&!r.detail;if(o){var i=new Wl;this.getContext().createBean(i),i.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(i.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(i)})}this.comp.setCheckboxVisible(o)},t.prototype.onKeyDown=function(e){var r=e.key===_.ENTER;if(!(!r||this.params.suppressEnterExpand)){var o=this.params.column&&this.params.column.isCellEditable(this.params.node);o||this.onExpandOrContract(e)}},t.prototype.onCellDblClicked=function(e){if(!nt(e)){var r=Wo(this.eExpanded,e)||Wo(this.eContracted,e);r||this.onExpandOrContract(e)}},no([v("expressionService")],t.prototype,"expressionService",void 0),no([v("valueFormatterService")],t.prototype,"valueFormatterService",void 0),no([v("columnModel")],t.prototype,"columnModel",void 0),no([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),no([v("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(D),ph=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),so=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ul=function(n){ph(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){var r=this,o={setInnerRenderer:function(l,u){return r.setRenderDetails(l,u)},setChildCount:function(l){return r.eChildCount.textContent=l},addOrRemoveCssClass:function(l,u){return r.addOrRemoveCssClass(l,u)},setContractedDisplayed:function(l){return $(r.eContracted,l)},setExpandedDisplayed:function(l){return $(r.eExpanded,l)},setCheckboxVisible:function(l){return r.eCheckbox.classList.toggle("ag-invisible",!l)}},i=this.createManagedBean(new ch),s=!e.colDef,a=this.getGui();i.init(o,a,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),s&&le(a,i.getCellAriaRole())},t.prototype.setRenderDetails=function(e,r){var o=this;if(e){var i=e.newAgStackInstance();if(!i)return;i.then(function(s){if(s){var a=function(){return o.context.destroyBean(s)};o.isAlive()?(o.eValue.appendChild(s.getGui()),o.addDestroyFunc(a)):a()}})}else this.eValue.innerText=r},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),n.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE=` - `,so([L("eExpanded")],t.prototype,"eExpanded",void 0),so([L("eContracted")],t.prototype,"eContracted",void 0),so([L("eCheckbox")],t.prototype,"eCheckbox",void 0),so([L("eValue")],t.prototype,"eValue",void 0),so([L("eChildCount")],t.prototype,"eChildCount",void 0),t}(k),ph=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dh=function(n){ph(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=ne("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var r=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=r("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.TEMPLATE=`
+ `,so([L("eExpanded")],t.prototype,"eExpanded",void 0),so([L("eContracted")],t.prototype,"eContracted",void 0),so([L("eCheckbox")],t.prototype,"eCheckbox",void 0),so([L("eValue")],t.prototype,"eValue",void 0),so([L("eChildCount")],t.prototype,"eChildCount",void 0),t}(k),dh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},hh=function(n){dh(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=ne("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var r=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=r("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.TEMPLATE=`
-
`,zl([L("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),zl([L("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(k),hh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fh=function(n){hh(t,n);function t(){return n.call(this)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this,o=this.gridOptionsService.get("overlayLoadingTemplate");if(this.setTemplate(o??t.DEFAULT_LOADING_OVERLAY_TEMPLATE),!o){var i=this.localeService.getLocaleTextFunc();setTimeout(function(){r.getGui().textContent=i("loadingOoo","Loading...")})}},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='',t}(k),vh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gh=function(n){vh(t,n);function t(){return n.call(this)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this,o=this.gridOptionsService.get("overlayNoRowsTemplate");if(this.setTemplate(o??t.DEFAULT_NO_ROWS_TEMPLATE),!o){var i=this.localeService.getLocaleTextFunc();setTimeout(function(){r.getGui().textContent=i("noRowsToShow","No Rows To Show")})}},t.DEFAULT_NO_ROWS_TEMPLATE='',t}(k),yh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),mh=function(n){yh(t,n);function t(){return n.call(this,'
')||this}return t.prototype.init=function(e){var r=e.value;this.getGui().textContent=ae(r,!0)},t}(cr),Ch=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sh=function(){function n(){}return n.prototype.getTemplate=function(){return''},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.max!=null&&t.setMax(e.max),e.min!=null&&t.setMin(e.min),e.precision!=null&&t.setPrecision(e.precision),e.step!=null&&t.setStep(e.step);var r=t.getInputElement();e.preventStepping?t.addManagedListener(r,"keydown",this.preventStepping):e.showStepperButtons&&r.classList.add("ag-number-field-input-stepper")},n.prototype.preventStepping=function(t){(t.key===_.UP||t.key===_.DOWN)&&t.preventDefault()},n.prototype.getValue=function(){var t=this.eInput.getValue();if(!P(t)&&!P(this.params.value))return this.params.value;var e=this.params.parseValue(t);if(e==null)return e;if(typeof e=="string"){if(e==="")return null;e=Number(e)}return isNaN(e)?null:e},n.prototype.getStartValue=function(){return this.params.value},n}(),wh=function(n){Ch(t,n);function t(){return n.call(this,new Sh)||this}return t}(oi),Eh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),_h=function(){function n(){}return n.prototype.getTemplate=function(){return''},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.min!=null&&t.setMin(e.min),e.max!=null&&t.setMax(e.max),e.step!=null&&t.setStep(e.step)},n.prototype.getValue=function(){var t=this.eInput.getDate();return!P(t)&&!P(this.params.value)?this.params.value:t??null},n.prototype.getStartValue=function(){var t=this.params.value;if(t instanceof Date)return Xe(t,!1)},n}(),Rh=function(n){Eh(t,n);function t(){return n.call(this,new _h)||this}return t}(oi),Oh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Th=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ph=function(){function n(t){this.getDataTypeService=t}return n.prototype.getTemplate=function(){return''},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.min!=null&&t.setMin(e.min),e.max!=null&&t.setMax(e.max),e.step!=null&&t.setStep(e.step)},n.prototype.getValue=function(){var t=this.formatDate(this.eInput.getDate());return!P(t)&&!P(this.params.value)?this.params.value:this.params.parseValue(t??"")},n.prototype.getStartValue=function(){var t,e;return Xe((e=this.parseDate((t=this.params.value)!==null&&t!==void 0?t:void 0))!==null&&e!==void 0?e:null,!1)},n.prototype.parseDate=function(t){return this.getDataTypeService().getDateParserFunction(this.params.column)(t)},n.prototype.formatDate=function(t){return this.getDataTypeService().getDateFormatterFunction(this.params.column)(t)},n}(),Dh=function(n){Oh(t,n);function t(){var e=n.call(this,new Ph(function(){return e.dataTypeService}))||this;return e}return Th([v("dataTypeService")],t.prototype,"dataTypeService",void 0),t}(oi),Ah=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),bh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fh=function(n){Ah(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){var r=this;this.params=e,this.updateCheckbox(e);var o=this.eCheckbox.getInputElement();o.setAttribute("tabindex","-1"),dn(o,"polite"),this.addManagedListener(o,"click",function(s){if(it(s),!r.eCheckbox.isDisabled()){var a=r.eCheckbox.getValue();r.onCheckboxChanged(a)}}),this.addManagedListener(o,"dblclick",function(s){it(s)});var i=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",function(s){if(s.key===_.SPACE&&!r.eCheckbox.isDisabled()){r.params.eGridCell===i.activeElement&&r.eCheckbox.toggle();var a=r.eCheckbox.getValue();r.onCheckboxChanged(a),s.preventDefault()}})},t.prototype.refresh=function(e){return this.params=e,this.updateCheckbox(e),!0},t.prototype.updateCheckbox=function(e){var r,o,i,s,a=!0;if(e.node.group&&e.column){var l=e.column.getColId();l.startsWith(Er)?s=e.value==null||e.value===""?void 0:e.value==="true":e.node.aggData&&e.node.aggData[l]!==void 0?s=(r=e.value)!==null&&r!==void 0?r:void 0:a=!1}else s=(o=e.value)!==null&&o!==void 0?o:void 0;if(!a){this.eCheckbox.setDisplayed(!1);return}this.eCheckbox.setValue(s);var u=e.disabled!=null?e.disabled:!(!((i=e.column)===null||i===void 0)&&i.isCellEditable(e.node));this.eCheckbox.setDisabled(u);var c=this.localeService.getLocaleTextFunc(),p=Sn(c,s),d=u?p:"".concat(c("ariaToggleCellValue","Press SPACE to toggle cell value")," (").concat(p,")");this.eCheckbox.setInputAriaLabel(d)},t.prototype.onCheckboxChanged=function(e){var r=this.params,o=r.column,i=r.node,s=r.rowIndex,a=r.value,l={type:g.EVENT_CELL_EDITING_STARTED,column:o,colDef:o==null?void 0:o.getColDef(),data:i.data,node:i,rowIndex:s,rowPinned:i.rowPinned,value:a};this.eventService.dispatchEvent(l);var u=this.params.node.setDataValue(this.params.column,e,"edit"),c={type:g.EVENT_CELL_EDITING_STOPPED,column:o,colDef:o==null?void 0:o.getColDef(),data:i.data,node:i,rowIndex:s,rowPinned:i.rowPinned,value:a,oldValue:a,newValue:e,valueChanged:u};this.eventService.dispatchEvent(c)},t.TEMPLATE=` +
`,zl([L("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),zl([L("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(k),fh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vh=function(n){fh(t,n);function t(){return n.call(this)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this,o=this.gridOptionsService.get("overlayLoadingTemplate");if(this.setTemplate(o??t.DEFAULT_LOADING_OVERLAY_TEMPLATE),!o){var i=this.localeService.getLocaleTextFunc();setTimeout(function(){r.getGui().textContent=i("loadingOoo","Loading...")})}},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='',t}(k),gh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yh=function(n){gh(t,n);function t(){return n.call(this)||this}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(e){var r=this,o=this.gridOptionsService.get("overlayNoRowsTemplate");if(this.setTemplate(o??t.DEFAULT_NO_ROWS_TEMPLATE),!o){var i=this.localeService.getLocaleTextFunc();setTimeout(function(){r.getGui().textContent=i("noRowsToShow","No Rows To Show")})}},t.DEFAULT_NO_ROWS_TEMPLATE='',t}(k),Ch=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),mh=function(n){Ch(t,n);function t(){return n.call(this,'
')||this}return t.prototype.init=function(e){var r=e.value;this.getGui().textContent=ae(r,!0)},t}(cr),Sh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wh=function(){function n(){}return n.prototype.getTemplate=function(){return''},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.max!=null&&t.setMax(e.max),e.min!=null&&t.setMin(e.min),e.precision!=null&&t.setPrecision(e.precision),e.step!=null&&t.setStep(e.step);var r=t.getInputElement();e.preventStepping?t.addManagedListener(r,"keydown",this.preventStepping):e.showStepperButtons&&r.classList.add("ag-number-field-input-stepper")},n.prototype.preventStepping=function(t){(t.key===_.UP||t.key===_.DOWN)&&t.preventDefault()},n.prototype.getValue=function(){var t=this.eInput.getValue();if(!P(t)&&!P(this.params.value))return this.params.value;var e=this.params.parseValue(t);if(e==null)return e;if(typeof e=="string"){if(e==="")return null;e=Number(e)}return isNaN(e)?null:e},n.prototype.getStartValue=function(){return this.params.value},n}(),Eh=function(n){Sh(t,n);function t(){return n.call(this,new wh)||this}return t}(oi),_h=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rh=function(){function n(){}return n.prototype.getTemplate=function(){return''},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.min!=null&&t.setMin(e.min),e.max!=null&&t.setMax(e.max),e.step!=null&&t.setStep(e.step)},n.prototype.getValue=function(){var t=this.eInput.getDate();return!P(t)&&!P(this.params.value)?this.params.value:t??null},n.prototype.getStartValue=function(){var t=this.params.value;if(t instanceof Date)return Xe(t,!1)},n}(),Oh=function(n){_h(t,n);function t(){return n.call(this,new Rh)||this}return t}(oi),Th=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ph=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Dh=function(){function n(t){this.getDataTypeService=t}return n.prototype.getTemplate=function(){return''},n.prototype.init=function(t,e){this.eInput=t,this.params=e,e.min!=null&&t.setMin(e.min),e.max!=null&&t.setMax(e.max),e.step!=null&&t.setStep(e.step)},n.prototype.getValue=function(){var t=this.formatDate(this.eInput.getDate());return!P(t)&&!P(this.params.value)?this.params.value:this.params.parseValue(t??"")},n.prototype.getStartValue=function(){var t,e;return Xe((e=this.parseDate((t=this.params.value)!==null&&t!==void 0?t:void 0))!==null&&e!==void 0?e:null,!1)},n.prototype.parseDate=function(t){return this.getDataTypeService().getDateParserFunction(this.params.column)(t)},n.prototype.formatDate=function(t){return this.getDataTypeService().getDateFormatterFunction(this.params.column)(t)},n}(),Ah=function(n){Th(t,n);function t(){var e=n.call(this,new Dh(function(){return e.dataTypeService}))||this;return e}return Ph([v("dataTypeService")],t.prototype,"dataTypeService",void 0),t}(oi),bh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Lh=function(n){bh(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.init=function(e){var r=this;this.params=e,this.updateCheckbox(e);var o=this.eCheckbox.getInputElement();o.setAttribute("tabindex","-1"),dn(o,"polite"),this.addManagedListener(o,"click",function(s){if(it(s),!r.eCheckbox.isDisabled()){var a=r.eCheckbox.getValue();r.onCheckboxChanged(a)}}),this.addManagedListener(o,"dblclick",function(s){it(s)});var i=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",function(s){if(s.key===_.SPACE&&!r.eCheckbox.isDisabled()){r.params.eGridCell===i.activeElement&&r.eCheckbox.toggle();var a=r.eCheckbox.getValue();r.onCheckboxChanged(a),s.preventDefault()}})},t.prototype.refresh=function(e){return this.params=e,this.updateCheckbox(e),!0},t.prototype.updateCheckbox=function(e){var r,o,i,s,a=!0;if(e.node.group&&e.column){var l=e.column.getColId();l.startsWith(Er)?s=e.value==null||e.value===""?void 0:e.value==="true":e.node.aggData&&e.node.aggData[l]!==void 0?s=(r=e.value)!==null&&r!==void 0?r:void 0:a=!1}else s=(o=e.value)!==null&&o!==void 0?o:void 0;if(!a){this.eCheckbox.setDisplayed(!1);return}this.eCheckbox.setValue(s);var u=e.disabled!=null?e.disabled:!(!((i=e.column)===null||i===void 0)&&i.isCellEditable(e.node));this.eCheckbox.setDisabled(u);var c=this.localeService.getLocaleTextFunc(),p=Sn(c,s),d=u?p:"".concat(c("ariaToggleCellValue","Press SPACE to toggle cell value")," (").concat(p,")");this.eCheckbox.setInputAriaLabel(d)},t.prototype.onCheckboxChanged=function(e){var r=this.params,o=r.column,i=r.node,s=r.rowIndex,a=r.value,l={type:g.EVENT_CELL_EDITING_STARTED,column:o,colDef:o==null?void 0:o.getColDef(),data:i.data,node:i,rowIndex:s,rowPinned:i.rowPinned,value:a};this.eventService.dispatchEvent(l);var u=this.params.node.setDataValue(this.params.column,e,"edit"),c={type:g.EVENT_CELL_EDITING_STOPPED,column:o,colDef:o==null?void 0:o.getColDef(),data:i.data,node:i,rowIndex:s,rowPinned:i.rowPinned,value:a,oldValue:a,newValue:e,valueChanged:u};this.eventService.dispatchEvent(c)},t.TEMPLATE=` `,bh([L("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(k),Lh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Mh=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ih=function(n){Lh(t,n);function t(){return n.call(this,` + `,Fh([L("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(k),Mh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ih=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},xh=function(n){Mh(t,n);function t(){return n.call(this,`
-
`)||this}return t.prototype.init=function(e){var r=this,o;this.params=e;var i=(o=e.value)!==null&&o!==void 0?o:void 0;this.eCheckbox.setValue(i);var s=this.eCheckbox.getInputElement();s.setAttribute("tabindex","-1"),this.setAriaLabel(i),this.addManagedListener(this.eCheckbox,g.EVENT_FIELD_VALUE_CHANGED,function(a){return r.setAriaLabel(a.selected)})},t.prototype.getValue=function(){return this.eCheckbox.getValue()},t.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},t.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},t.prototype.isPopup=function(){return!1},t.prototype.setAriaLabel=function(e){var r=this.localeService.getLocaleTextFunc(),o=Sn(r,e),i=r("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel("".concat(i," (").concat(o,")"))},Mh([L("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(cr),xh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Nh=function(n){xh(t,n);function t(){var e=n.call(this)||this;return e.setTemplate("
"),e}return t.prototype.init=function(e){var r;this.params=e,this.cssClassPrefix=(r=this.params.cssClassPrefix)!==null&&r!==void 0?r:"ag-menu-option",this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()},t.prototype.configureDefaults=function(){return!0},t.prototype.addIcon=function(){if(!this.params.isCompact){var e=Re(''));this.params.checked?e.appendChild(ne("check",this.gridOptionsService)):this.params.icon&&(to(this.params.icon)?e.appendChild(this.params.icon):typeof this.params.icon=="string"?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){var e=Re('').concat(this.params.name||"",""));this.getGui().appendChild(e)},t.prototype.addShortcut=function(){if(!this.params.isCompact){var e=Re('').concat(this.params.shortcut||"",""));this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){var e=Re('')),r=this.getGui();if(this.params.subMenu){var o=this.gridOptionsService.get("enableRtl")?"smallLeft":"smallRight";Pt(r,!1),e.appendChild(ne(o,this.gridOptionsService))}r.appendChild(e)},t.prototype.getClassName=function(e){return"".concat(this.cssClassPrefix,"-").concat(e)},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(k),Gh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ds=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Kl=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},$l=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0&&console.warn(" Did you mean: [".concat(i.slice(0,3),"]?")),console.warn("If using a custom component check it has been registered as described in: ".concat(this.getFrameworkOverrides().getDocLink("components/")))},ds([v("gridOptions")],t.prototype,"gridOptions",void 0),ds([F],t.prototype,"init",null),t=ds([x("userComponentRegistry")],t),t}(D),Hh={propertyName:"dateComponent",cellRenderer:!1},Bh={propertyName:"headerComponent",cellRenderer:!1},kh={propertyName:"headerGroupComponent",cellRenderer:!1},Yl={propertyName:"cellRenderer",cellRenderer:!0},Wh={propertyName:"cellEditor",cellRenderer:!1},ql={propertyName:"innerRenderer",cellRenderer:!0},jh={propertyName:"loadingOverlayComponent",cellRenderer:!1},Uh={propertyName:"noRowsOverlayComponent",cellRenderer:!1},zh={propertyName:"tooltipComponent",cellRenderer:!1},hs={propertyName:"filter",cellRenderer:!1},Kh={propertyName:"floatingFilterComponent",cellRenderer:!1},$h={propertyName:"toolPanel",cellRenderer:!1},Yh={propertyName:"statusPanel",cellRenderer:!1},qh={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Qh={propertyName:"loadingCellRenderer",cellRenderer:!0},Xh={propertyName:"groupRowRenderer",cellRenderer:!0},Jh={propertyName:"detailCellRenderer",cellRenderer:!0},Zh={propertyName:"menuItem",cellRenderer:!1},ef=function(){function n(){}return n.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},n.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},n}(),tf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Lr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},rf=function(n){tf(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getHeaderCompDetails=function(e,r){return this.getCompDetails(e,Bh,"agColumnHeader",r)},t.prototype.getHeaderGroupCompDetails=function(e){var r=e.columnGroup.getColGroupDef();return this.getCompDetails(r,kh,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,qh,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Qh,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Xh,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Jh,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,r){return this.getCompDetails(e,ql,null,r)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,r){return this.getCompDetails(e,ql,null,r)},t.prototype.getCellRendererDetails=function(e,r){return this.getCompDetails(e,Yl,null,r)},t.prototype.getCellEditorDetails=function(e,r){return this.getCompDetails(e,Wh,"agCellEditor",r,!0)},t.prototype.getFilterDetails=function(e,r,o){return this.getCompDetails(e,hs,o,r,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Hh,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,jh,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Uh,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,zh,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,r){return this.getCompDetails(e,Yl,null,r)},t.prototype.getFloatingFilterCompDetails=function(e,r,o){return this.getCompDetails(e,Kh,o,r)},t.prototype.getToolPanelCompDetails=function(e,r){return this.getCompDetails(e,$h,null,r,!0)},t.prototype.getStatusPanelCompDetails=function(e,r){return this.getCompDetails(e,Yh,null,r,!0)},t.prototype.getMenuItemCompDetails=function(e,r){return this.getCompDetails(e,Zh,"agMenuItem",r,!0)},t.prototype.getCompDetails=function(e,r,o,i,s){var a=this;s===void 0&&(s=!1);var l=r.propertyName,u=r.cellRenderer,c=this.getCompKeys(e,r,i),p=c.compName,d=c.jsComp,h=c.fwComp,f=c.paramsFromSelector,y=c.popupFromSelector,m=c.popupPositionFromSelector,C=function(R){var O=a.userComponentRegistry.retrieve(l,R);O&&(d=O.componentFromFramework?void 0:O.component,h=O.componentFromFramework?O.component:void 0)};if(p!=null&&C(p),d==null&&h==null&&o!=null&&C(o),d&&u&&!this.agComponentUtils.doesImplementIComponent(d)&&(d=this.agComponentUtils.adaptFunction(l,d)),!d&&!h){s&&console.error("AG Grid: Could not find component ".concat(p,", did you forget to configure this component?"));return}var w=this.mergeParamsWithApplicationProvidedParams(e,r,i,f),E=d==null,S=d||h;return{componentFromFramework:E,componentClass:S,params:w,type:r,popupFromSelector:y,popupPositionFromSelector:m,newAgStackInstance:function(){return a.newAgStackInstance(S,E,w,r)}}},t.prototype.getCompKeys=function(e,r,o){var i=this,s=r.propertyName,a,l,u,c,p,d;if(e){var h=e,f=h[s+"Selector"],y=f?f(o):null,m=function(C){if(typeof C=="string")a=C;else if(C!=null&&C!==!0){var w=i.getFrameworkOverrides().isFrameworkComponent(C);w?u=C:l=C}};y?(m(y.component),c=y.params,p=y.popup,d=y.popupPosition):m(h[s])}return{compName:a,jsComp:l,fwComp:u,paramsFromSelector:c,popupFromSelector:p,popupPositionFromSelector:d}},t.prototype.newAgStackInstance=function(e,r,o,i){var s=i.propertyName,a=!r,l;if(a)l=new e;else{var u=this.componentMetadataProvider.retrieve(s);l=this.frameworkComponentWrapper.wrap(e,u.mandatoryMethodList,u.optionalMethodList,i)}var c=this.initComponent(l,o);return c==null?je.resolve(l):c.then(function(){return l})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,r,o,i){i===void 0&&(i=null);var s=this.gridOptionsService.getGridCommonParams();Ve(s,o);var a=e,l=a&&a[r.propertyName+"Params"];if(typeof l=="function"){var u=l(o);Ve(s,u)}else typeof l=="object"&&Ve(s,l);return Ve(s,i),s},t.prototype.initComponent=function(e,r){if(this.context.createBean(e),e.init!=null)return e.init(r)},t.prototype.getDefaultFloatingFilterType=function(e,r){if(e==null)return null;var o=null,i=this.getCompKeys(e,hs),s=i.compName,a=i.jsComp,l=i.fwComp;if(s)o=ef.getFloatingFilterType(s);else{var u=a==null&&l==null&&e.filter===!0;u&&(o=r())}return o},Lr([v("gridOptions")],t.prototype,"gridOptions",void 0),Lr([v("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Lr([v("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),Lr([v("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Lr([Y("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=Lr([x("userComponentFactory")],t),t}(D),of=function(){function n(){}return n.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0},n.ALL_PROPERTIES=Object.keys(n.ColDefPropertyMap),n}(),ui;(function(n){n[n.SINGLE_SHEET=0]="SINGLE_SHEET",n[n.MULTI_SHEET=1]="MULTI_SHEET"})(ui||(ui={}));var nf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fs=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},sf=function(n){nf(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var r=e.dragSource.eElement,o=e.mouseDownListener;if(r.removeEventListener("mousedown",o),e.touchEnabled){var i=e.touchStartListener;r.removeEventListener("touchstart",i,{passive:!0})}},t.prototype.removeDragSource=function(e){var r=this.dragSources.find(function(o){return o.dragSource===e});r&&(this.removeListener(r),Ee(this.dragSources,r))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e){var r=this,o=this.onMouseDown.bind(this,e),i=e.eElement,s=e.includeTouch,a=e.stopPropagationForTouch;i.addEventListener("mousedown",o);var l=null,u=this.gridOptionsService.get("suppressTouch");s&&!u&&(l=function(c){Vn(c.target)||(c.cancelable&&(c.preventDefault(),a&&c.stopPropagation()),r.onTouchStart(e,c))},i.addEventListener("touchstart",l,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:l,touchEnabled:!!s})},t.prototype.getStartTarget=function(){return this.startTarget},t.prototype.onTouchStart=function(e,r){var o=this;this.currentDragParams=e,this.dragging=!1;var i=r.touches[0];this.touchLastTime=i,this.touchStart=i;var s=function(p){return o.onTouchMove(p,e.eElement)},a=function(p){return o.onTouchUp(p,e.eElement)},l=function(p){p.cancelable&&p.preventDefault()},u=r.target,c=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:l,options:{passive:!1}},{target:u,type:"touchmove",listener:s,options:{passive:!0}},{target:u,type:"touchend",listener:a,options:{passive:!0}},{target:u,type:"touchcancel",listener:a,options:{passive:!0}}];this.addTemporaryEvents(c),e.dragStartPixels===0&&this.onCommonMove(i,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,r){var o=this,i=r;if(!(e.skipMouseEvent&&e.skipMouseEvent(r))&&!i._alreadyProcessedByDragService&&(i._alreadyProcessedByDragService=!0,r.button===0)){this.shouldPreventMouseEvent(r)&&r.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=r,this.startTarget=r.target;var s=function(p){return o.onMouseMove(p,e.eElement)},a=function(p){return o.onMouseUp(p,e.eElement)},l=function(p){return p.preventDefault()},u=this.gridOptionsService.getRootNode(),c=[{target:u,type:"mousemove",listener:s},{target:u,type:"mouseup",listener:a},{target:u,type:"contextmenu",listener:l}];this.addTemporaryEvents(c),e.dragStartPixels===0&&this.onMouseMove(r,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(r){var o=r.target,i=r.type,s=r.listener,a=r.options;o.addEventListener(i,s,a)}),this.dragEndFunctions.push(function(){e.forEach(function(r){var o=r.target,i=r.type,s=r.listener,a=r.options;o.removeEventListener(i,s,a)})})},t.prototype.isEventNearStartEvent=function(e,r){var o=this.currentDragParams.dragStartPixels,i=P(o)?o:4;return $n(e,r,i)},t.prototype.getFirstActiveTouch=function(e){for(var r=0;ro.right-i,this.tickUp=t.clientYo.bottom-i&&!r,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},n.prototype.ensureTickingStarted=function(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},n.prototype.doTick=function(){this.tickCount++;var t;if(t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var r=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(r-t),this.tickRight&&this.setHorizontalPosition(r+t)}this.onScrollCallback&&this.onScrollCallback()},n.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},n}(),af=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vs="ag-list-item-hovered";(function(n){af(t,n);function t(e,r,o){var i=n.call(this)||this;return i.comp=e,i.virtualList=r,i.params=o,i.currentDragValue=null,i.lastHoveredListItem=null,i}return t.prototype.postConstruct=function(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},t.prototype.listItemDragStart=function(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)},t.prototype.listItemDragEnd=function(){var e=this;window.setTimeout(function(){e.currentDragValue=null,e.moveBlocked=!1},10)},t.prototype.createDropTarget=function(){var e=this,r={isInterestedIn:function(o){return o===e.params.dragSourceType},getIconName:function(){return e.moveBlocked?he.ICON_PINNED:he.ICON_MOVE},getContainer:function(){return e.comp.getGui()},onDragging:function(o){return e.onDragging(o)},onDragStop:function(){return e.onDragStop()},onDragLeave:function(){return e.onDragLeave()}};this.dragAndDropService.addDropTarget(r)},t.prototype.createAutoScrollService=function(){var e=this.virtualList.getGui();this.autoScrollService=new Ql({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(r){return e.scrollTop=r}})},t.prototype.onDragging=function(e){if(!(!this.currentDragValue||this.moveBlocked)){var r=this.getListDragItem(e),o=this.virtualList.getComponentAt(r.rowIndex);if(o){var i=o.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===r.rowIndex&&this.lastHoveredListItem.position===r.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=r,Nn(i,vs),Nn(i,"ag-item-highlight-".concat(r.position)))}}},t.prototype.getListDragItem=function(e){var r=this.virtualList.getGui(),o=parseFloat(window.getComputedStyle(r).paddingTop),i=this.virtualList.getRowHeight(),s=this.virtualList.getScrollTop(),a=Math.max(0,(e.y-o+s)/i),l=this.params.getNumRows(this.comp)-1,u=Math.min(l,a)|0;return{rowIndex:u,position:Math.round(a)>a||a>l?"bottom":"top",component:this.virtualList.getComponentAt(u)}},t.prototype.onDragStop=function(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())},t.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},t.prototype.clearHoveredItems=function(){var e=this.virtualList.getGui();e.querySelectorAll(".".concat(vs)).forEach(function(r){[vs,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(function(o){r.classList.remove(o)})}),this.lastHoveredListItem=null},Xl([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Xl([F],t.prototype,"postConstruct",null),t})(D);var et;(function(n){n[n.Above=0]="Above",n[n.Below=1]="Below"})(et||(et={}));var K=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};function dr(n){var t=n,e=t!=null&&t.getFrameworkComponentInstance!=null;return e?t.getFrameworkComponentInstance():n}var Jl=function(){function n(){this.detailGridInfoMap={},this.destroyCalled=!1}return n.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel;break}this.ctrlsService.whenReady(function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})},n.prototype.__getAlignedGridService=function(){return this.alignedGridsService},n.prototype.__getContext=function(){return this.context},n.prototype.__getModel=function(){return this.rowModel},n.prototype.getGridId=function(){return this.context.getGridId()},n.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},n.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},n.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},n.prototype.forEachDetailGridInfo=function(t){var e=0;ye(this.detailGridInfoMap,function(r,o){P(o)&&(t(o,e),e++)})},n.prototype.getDataAsCsv=function(t){if(X.__assertRegistered(G.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(t)},n.prototype.exportDataAsCsv=function(t){X.__assertRegistered(G.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(t)},n.prototype.assertNotExcelMultiSheet=function(t,e){return X.__assertRegistered(G.ExcelExportModule,"api."+t,this.context.getGridId())?this.excelCreator.getFactoryMode()===ui.MULTI_SHEET?(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1):!0:!1},n.prototype.getDataAsExcel=function(t){if(this.assertNotExcelMultiSheet("getDataAsExcel",t))return this.excelCreator.getDataAsExcel(t)},n.prototype.exportDataAsExcel=function(t){this.assertNotExcelMultiSheet("exportDataAsExcel",t)&&this.excelCreator.exportDataAsExcel(t)},n.prototype.getSheetDataForExcel=function(t){if(X.__assertRegistered(G.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId()))return this.excelCreator.setFactoryMode(ui.MULTI_SHEET),this.excelCreator.getSheetDataForExcel(t)},n.prototype.getMultipleSheetsAsExcel=function(t){if(X.__assertRegistered(G.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(t)},n.prototype.exportMultipleSheetsAsExcel=function(t){X.__assertRegistered(G.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId())&&this.excelCreator.exportMultipleSheetsAsExcel(t)},n.prototype.setGridAriaProperty=function(t,e){if(t){var r=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-".concat(t);e===null?r.removeAttribute(o):r.setAttribute(o,e)}},n.prototype.logMissingRowModel=function(t){for(var e=[],r=1;r= 0"));return}this.serverSideRowModel?this.serverSideRowModel.applyRowData(t.successParams,o,i):this.logMissingRowModel("setServerSideDatasource","serverSide")},n.prototype.retryServerSideLoads=function(){if(!this.serverSideRowModel){this.logMissingRowModel("retryServerSideLoads","serverSide");return}this.serverSideRowModel.retryLoads()},n.prototype.flushServerSideAsyncTransactions=function(){if(!this.serverSideTransactionManager){this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide");return}return this.serverSideTransactionManager.flushAsyncTransactions()},n.prototype.applyTransaction=function(t){var e=this;if(!this.clientSideRowModel){this.logMissingRowModel("applyTransaction","clientSide");return}return this.frameworkOverrides.wrapIncoming(function(){return e.clientSideRowModel.updateRowData(t)})},n.prototype.applyTransactionAsync=function(t,e){var r=this;if(!this.clientSideRowModel){this.logMissingRowModel("applyTransactionAsync","clientSide");return}this.frameworkOverrides.wrapIncoming(function(){return r.clientSideRowModel.batchUpdateRowData(t,e)})},n.prototype.flushAsyncTransactions=function(){var t=this;if(!this.clientSideRowModel){this.logMissingRowModel("flushAsyncTransactions","clientSide");return}this.frameworkOverrides.wrapIncoming(function(){return t.clientSideRowModel.flushAsyncTransactions()})},n.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},n.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},n.prototype.refreshServerSide=function(t){if(!this.serverSideRowModel){this.logMissingRowModel("refreshServerSide","serverSide");return}this.serverSideRowModel.refreshStore(t)},n.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},n.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},n.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},n.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},n.prototype.getFirstDisplayedRow=function(){return this.logDeprecation("v31.1","getFirstDisplayedRow","getFirstDisplayedRowIndex"),this.getFirstDisplayedRowIndex()},n.prototype.getFirstDisplayedRowIndex=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},n.prototype.getLastDisplayedRow=function(){return this.logDeprecation("v31.1","getLastDisplayedRow","getLastDisplayedRowIndex"),this.getLastDisplayedRowIndex()},n.prototype.getLastDisplayedRowIndex=function(){return this.rowRenderer.getLastVirtualRenderedRow()},n.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},n.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},n.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},n.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},n.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},n.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},n.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},n.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},n.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},n.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},n.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},n.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},n.prototype.sizeColumnsToFit=function(t){typeof t=="number"?this.columnModel.sizeColumnsToFit(t,"api"):this.gridBodyCtrl.sizeColumnsToFit(t)},n.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},n.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},n.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},n.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},n.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},n.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},n.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},n.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},n.prototype.getColumnState=function(){return this.columnModel.getColumnState()},n.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},n.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},n.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},n.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},n.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},n.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},n.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},n.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},n.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},n.prototype.setColumnVisible=function(t,e){this.logDeprecation("v31.1","setColumnVisible(key,visible)","setColumnsVisible([key],visible)"),this.columnModel.setColumnsVisible([t],e,"api")},n.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},n.prototype.setColumnPinned=function(t,e){this.logDeprecation("v31.1","setColumnPinned(key,pinned)","setColumnsPinned([key],pinned)"),this.columnModel.setColumnsPinned([t],e,"api")},n.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},n.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},n.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},n.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},n.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},n.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},n.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},n.prototype.moveColumn=function(t,e){this.logDeprecation("v31.1","moveColumn(key, toIndex)","moveColumns([key], toIndex)"),this.columnModel.moveColumns([t],e,"api")},n.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},n.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},n.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e,"api")},n.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e,"api")},n.prototype.setColumnWidth=function(t,e,r,o){r===void 0&&(r=!0),o===void 0&&(o="api"),this.logDeprecation("v31.1","setColumnWidth(col, width)","setColumnWidths([{key: col, newWidth: width}])"),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,r,o)},n.prototype.setColumnWidths=function(t,e,r){e===void 0&&(e=!0),r===void 0&&(r="api"),this.columnModel.setColumnWidths(t,!1,e,r)},n.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},n.prototype.getPivotResultColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},n.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},n.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},n.prototype.removeValueColumn=function(t){this.logDeprecation("v31.1","removeValueColumn(colKey)","removeValueColumns([colKey])"),this.columnModel.removeValueColumns([t],"api")},n.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},n.prototype.addValueColumn=function(t){this.logDeprecation("v31.1","addValueColumn(colKey)","addValueColumns([colKey])"),this.columnModel.addValueColumns([t],"api")},n.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},n.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},n.prototype.removeRowGroupColumn=function(t){this.logDeprecation("v31.1","removeRowGroupColumn(colKey)","removeRowGroupColumns([colKey])"),this.columnModel.removeRowGroupColumns([t],"api")},n.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},n.prototype.addRowGroupColumn=function(t){this.logDeprecation("v31.1","addRowGroupColumn(colKey)","addRowGroupColumns([colKey])"),this.columnModel.addRowGroupColumns([t],"api")},n.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},n.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},n.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},n.prototype.removePivotColumn=function(t){this.logDeprecation("v31.1","removePivotColumn(colKey)","removePivotColumns([colKey])"),this.columnModel.removePivotColumns([t],"api")},n.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},n.prototype.addPivotColumn=function(t){this.logDeprecation("v31.1","addPivotColumn(colKey)","addPivotColumns([colKey])"),this.columnModel.addPivotColumns([t],"api")},n.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},n.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},n.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},n.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},n.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},n.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},n.prototype.autoSizeColumn=function(t,e){return this.logDeprecation("v31.1","autoSizeColumn(key, skipHeader)","autoSizeColumns([key], skipHeader)"),this.columnModel.autoSizeColumns({columns:[t],skipHeader:e,source:"api"})},n.prototype.autoSizeColumns=function(t,e){this.columnModel.autoSizeColumns({columns:t,skipHeader:e,source:"api"})},n.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns("api",t)},n.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},n.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},n.prototype.getState=function(){return this.stateService.getState()},n.prototype.getGridOption=function(t){return this.gos.get(t)},n.prototype.setGridOption=function(t,e){var r;this.updateGridOptions((r={},r[t]=e,r))},n.prototype.updateGridOptions=function(t){this.gos.updateGridOptions({options:t})},n.prototype.__internalUpdateGridOptions=function(t){this.gos.updateGridOptions({options:t,source:"gridOptionsUpdated"})},n.prototype.deprecatedUpdateGridOption=function(t,e){V("set".concat(t.charAt(0).toUpperCase()).concat(t.slice(1,t.length)," is deprecated. Please use 'api.setGridOption('").concat(t,"', newValue)' or 'api.updateGridOptions({ ").concat(t,": newValue })' instead.")),this.setGridOption(t,e)},n.prototype.setPivotMode=function(t){this.deprecatedUpdateGridOption("pivotMode",t)},n.prototype.setPinnedTopRowData=function(t){this.deprecatedUpdateGridOption("pinnedTopRowData",t)},n.prototype.setPinnedBottomRowData=function(t){this.deprecatedUpdateGridOption("pinnedBottomRowData",t)},n.prototype.setPopupParent=function(t){this.deprecatedUpdateGridOption("popupParent",t)},n.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(t){this.deprecatedUpdateGridOption("suppressModelUpdateAfterUpdateTransaction",t)},n.prototype.setDataTypeDefinitions=function(t){this.deprecatedUpdateGridOption("dataTypeDefinitions",t)},n.prototype.setPagination=function(t){this.deprecatedUpdateGridOption("pagination",t)},n.prototype.paginationSetPageSize=function(t){this.deprecatedUpdateGridOption("paginationPageSize",t)},n.prototype.setSideBar=function(t){this.deprecatedUpdateGridOption("sideBar",t)},n.prototype.setSuppressClipboardPaste=function(t){this.deprecatedUpdateGridOption("suppressClipboardPaste",t)},n.prototype.setGroupRemoveSingleChildren=function(t){this.deprecatedUpdateGridOption("groupRemoveSingleChildren",t)},n.prototype.setGroupRemoveLowestSingleChildren=function(t){this.deprecatedUpdateGridOption("groupRemoveLowestSingleChildren",t)},n.prototype.setGroupDisplayType=function(t){this.deprecatedUpdateGridOption("groupDisplayType",t)},n.prototype.setGroupIncludeFooter=function(t){this.deprecatedUpdateGridOption("groupIncludeFooter",t)},n.prototype.setGroupIncludeTotalFooter=function(t){this.deprecatedUpdateGridOption("groupIncludeTotalFooter",t)},n.prototype.setRowClass=function(t){this.deprecatedUpdateGridOption("rowClass",t)},n.prototype.setDeltaSort=function(t){this.deprecatedUpdateGridOption("deltaSort",t)},n.prototype.setSuppressRowDrag=function(t){this.deprecatedUpdateGridOption("suppressRowDrag",t)},n.prototype.setSuppressMoveWhenRowDragging=function(t){this.deprecatedUpdateGridOption("suppressMoveWhenRowDragging",t)},n.prototype.setSuppressRowClickSelection=function(t){this.deprecatedUpdateGridOption("suppressRowClickSelection",t)},n.prototype.setEnableAdvancedFilter=function(t){this.deprecatedUpdateGridOption("enableAdvancedFilter",t)},n.prototype.setIncludeHiddenColumnsInAdvancedFilter=function(t){this.deprecatedUpdateGridOption("includeHiddenColumnsInAdvancedFilter",t)},n.prototype.setAdvancedFilterParent=function(t){this.deprecatedUpdateGridOption("advancedFilterParent",t)},n.prototype.setAdvancedFilterBuilderParams=function(t){this.deprecatedUpdateGridOption("advancedFilterBuilderParams",t)},n.prototype.setQuickFilter=function(t){V("setQuickFilter is deprecated. Please use 'api.setGridOption('quickFilterText', newValue)' or 'api.updateGridOptions({ quickFilterText: newValue })' instead."),this.gos.updateGridOptions({options:{quickFilterText:t}})},n.prototype.setExcludeHiddenColumnsFromQuickFilter=function(t){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",!t)},n.prototype.setIncludeHiddenColumnsInQuickFilter=function(t){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",t)},n.prototype.setQuickFilterParser=function(t){this.deprecatedUpdateGridOption("quickFilterParser",t)},n.prototype.setQuickFilterMatcher=function(t){this.deprecatedUpdateGridOption("quickFilterMatcher",t)},n.prototype.setAlwaysShowHorizontalScroll=function(t){this.deprecatedUpdateGridOption("alwaysShowHorizontalScroll",t)},n.prototype.setAlwaysShowVerticalScroll=function(t){this.deprecatedUpdateGridOption("alwaysShowVerticalScroll",t)},n.prototype.setFunctionsReadOnly=function(t){this.deprecatedUpdateGridOption("functionsReadOnly",t)},n.prototype.setColumnDefs=function(t,e){e===void 0&&(e="api"),V("setColumnDefs is deprecated. Please use 'api.setGridOption('columnDefs', newValue)' or 'api.updateGridOptions({ columnDefs: newValue })' instead."),this.gos.updateGridOptions({options:{columnDefs:t},source:e})},n.prototype.setAutoGroupColumnDef=function(t,e){e===void 0&&(e="api"),V("setAutoGroupColumnDef is deprecated. Please use 'api.setGridOption('autoGroupColumnDef', newValue)' or 'api.updateGridOptions({ autoGroupColumnDef: newValue })' instead."),this.gos.updateGridOptions({options:{autoGroupColumnDef:t},source:e})},n.prototype.setDefaultColDef=function(t,e){e===void 0&&(e="api"),V("setDefaultColDef is deprecated. Please use 'api.setGridOption('defaultColDef', newValue)' or 'api.updateGridOptions({ defaultColDef: newValue })' instead."),this.gos.updateGridOptions({options:{defaultColDef:t},source:e})},n.prototype.setColumnTypes=function(t,e){e===void 0&&(e="api"),V("setColumnTypes is deprecated. Please use 'api.setGridOption('columnTypes', newValue)' or 'api.updateGridOptions({ columnTypes: newValue })' instead."),this.gos.updateGridOptions({options:{columnTypes:t},source:e})},n.prototype.setTreeData=function(t){this.deprecatedUpdateGridOption("treeData",t)},n.prototype.setServerSideDatasource=function(t){this.deprecatedUpdateGridOption("serverSideDatasource",t)},n.prototype.setCacheBlockSize=function(t){this.deprecatedUpdateGridOption("cacheBlockSize",t)},n.prototype.setDatasource=function(t){this.deprecatedUpdateGridOption("datasource",t)},n.prototype.setViewportDatasource=function(t){this.deprecatedUpdateGridOption("viewportDatasource",t)},n.prototype.setRowData=function(t){this.deprecatedUpdateGridOption("rowData",t)},n.prototype.setEnableCellTextSelection=function(t){this.deprecatedUpdateGridOption("enableCellTextSelection",t)},n.prototype.setHeaderHeight=function(t){this.deprecatedUpdateGridOption("headerHeight",t)},n.prototype.setDomLayout=function(t){this.deprecatedUpdateGridOption("domLayout",t)},n.prototype.setFillHandleDirection=function(t){this.deprecatedUpdateGridOption("fillHandleDirection",t)},n.prototype.setGroupHeaderHeight=function(t){this.deprecatedUpdateGridOption("groupHeaderHeight",t)},n.prototype.setFloatingFiltersHeight=function(t){this.deprecatedUpdateGridOption("floatingFiltersHeight",t)},n.prototype.setPivotHeaderHeight=function(t){this.deprecatedUpdateGridOption("pivotHeaderHeight",t)},n.prototype.setPivotGroupHeaderHeight=function(t){this.deprecatedUpdateGridOption("pivotGroupHeaderHeight",t)},n.prototype.setAnimateRows=function(t){this.deprecatedUpdateGridOption("animateRows",t)},n.prototype.setIsExternalFilterPresent=function(t){this.deprecatedUpdateGridOption("isExternalFilterPresent",t)},n.prototype.setDoesExternalFilterPass=function(t){this.deprecatedUpdateGridOption("doesExternalFilterPass",t)},n.prototype.setNavigateToNextCell=function(t){this.deprecatedUpdateGridOption("navigateToNextCell",t)},n.prototype.setTabToNextCell=function(t){this.deprecatedUpdateGridOption("tabToNextCell",t)},n.prototype.setTabToNextHeader=function(t){this.deprecatedUpdateGridOption("tabToNextHeader",t)},n.prototype.setNavigateToNextHeader=function(t){this.deprecatedUpdateGridOption("navigateToNextHeader",t)},n.prototype.setRowGroupPanelShow=function(t){this.deprecatedUpdateGridOption("rowGroupPanelShow",t)},n.prototype.setGetGroupRowAgg=function(t){this.deprecatedUpdateGridOption("getGroupRowAgg",t)},n.prototype.setGetBusinessKeyForNode=function(t){this.deprecatedUpdateGridOption("getBusinessKeyForNode",t)},n.prototype.setGetChildCount=function(t){this.deprecatedUpdateGridOption("getChildCount",t)},n.prototype.setProcessRowPostCreate=function(t){this.deprecatedUpdateGridOption("processRowPostCreate",t)},n.prototype.setGetRowId=function(t){V("getRowId is a static property and can no longer be updated.")},n.prototype.setGetRowClass=function(t){this.deprecatedUpdateGridOption("getRowClass",t)},n.prototype.setIsFullWidthRow=function(t){this.deprecatedUpdateGridOption("isFullWidthRow",t)},n.prototype.setIsRowSelectable=function(t){this.deprecatedUpdateGridOption("isRowSelectable",t)},n.prototype.setIsRowMaster=function(t){this.deprecatedUpdateGridOption("isRowMaster",t)},n.prototype.setPostSortRows=function(t){this.deprecatedUpdateGridOption("postSortRows",t)},n.prototype.setGetDocument=function(t){this.deprecatedUpdateGridOption("getDocument",t)},n.prototype.setGetContextMenuItems=function(t){this.deprecatedUpdateGridOption("getContextMenuItems",t)},n.prototype.setGetMainMenuItems=function(t){this.deprecatedUpdateGridOption("getMainMenuItems",t)},n.prototype.setProcessCellForClipboard=function(t){this.deprecatedUpdateGridOption("processCellForClipboard",t)},n.prototype.setSendToClipboard=function(t){this.deprecatedUpdateGridOption("sendToClipboard",t)},n.prototype.setProcessCellFromClipboard=function(t){this.deprecatedUpdateGridOption("processCellFromClipboard",t)},n.prototype.setProcessPivotResultColDef=function(t){this.deprecatedUpdateGridOption("processPivotResultColDef",t)},n.prototype.setProcessPivotResultColGroupDef=function(t){this.deprecatedUpdateGridOption("processPivotResultColGroupDef",t)},n.prototype.setPostProcessPopup=function(t){this.deprecatedUpdateGridOption("postProcessPopup",t)},n.prototype.setInitialGroupOrderComparator=function(t){this.deprecatedUpdateGridOption("initialGroupOrderComparator",t)},n.prototype.setGetChartToolbarItems=function(t){this.deprecatedUpdateGridOption("getChartToolbarItems",t)},n.prototype.setPaginationNumberFormatter=function(t){this.deprecatedUpdateGridOption("paginationNumberFormatter",t)},n.prototype.setGetServerSideGroupLevelParams=function(t){this.deprecatedUpdateGridOption("getServerSideGroupLevelParams",t)},n.prototype.setIsServerSideGroupOpenByDefault=function(t){this.deprecatedUpdateGridOption("isServerSideGroupOpenByDefault",t)},n.prototype.setIsApplyServerSideTransaction=function(t){this.deprecatedUpdateGridOption("isApplyServerSideTransaction",t)},n.prototype.setIsServerSideGroup=function(t){this.deprecatedUpdateGridOption("isServerSideGroup",t)},n.prototype.setGetServerSideGroupKey=function(t){this.deprecatedUpdateGridOption("getServerSideGroupKey",t)},n.prototype.setGetRowStyle=function(t){this.deprecatedUpdateGridOption("getRowStyle",t)},n.prototype.setGetRowHeight=function(t){this.deprecatedUpdateGridOption("getRowHeight",t)},K([Y("csvCreator")],n.prototype,"csvCreator",void 0),K([Y("excelCreator")],n.prototype,"excelCreator",void 0),K([v("rowRenderer")],n.prototype,"rowRenderer",void 0),K([v("navigationService")],n.prototype,"navigationService",void 0),K([v("filterManager")],n.prototype,"filterManager",void 0),K([v("columnModel")],n.prototype,"columnModel",void 0),K([v("selectionService")],n.prototype,"selectionService",void 0),K([v("gridOptionsService")],n.prototype,"gos",void 0),K([v("valueService")],n.prototype,"valueService",void 0),K([v("alignedGridsService")],n.prototype,"alignedGridsService",void 0),K([v("eventService")],n.prototype,"eventService",void 0),K([v("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),K([v("context")],n.prototype,"context",void 0),K([v("rowModel")],n.prototype,"rowModel",void 0),K([v("sortController")],n.prototype,"sortController",void 0),K([v("paginationProxy")],n.prototype,"paginationProxy",void 0),K([v("focusService")],n.prototype,"focusService",void 0),K([v("dragAndDropService")],n.prototype,"dragAndDropService",void 0),K([Y("rangeService")],n.prototype,"rangeService",void 0),K([Y("clipboardService")],n.prototype,"clipboardService",void 0),K([Y("aggFuncService")],n.prototype,"aggFuncService",void 0),K([v("menuService")],n.prototype,"menuService",void 0),K([v("valueCache")],n.prototype,"valueCache",void 0),K([v("animationFrameService")],n.prototype,"animationFrameService",void 0),K([Y("statusBarService")],n.prototype,"statusBarService",void 0),K([Y("chartService")],n.prototype,"chartService",void 0),K([Y("undoRedoService")],n.prototype,"undoRedoService",void 0),K([Y("rowNodeBlockLoader")],n.prototype,"rowNodeBlockLoader",void 0),K([Y("ssrmTransactionManager")],n.prototype,"serverSideTransactionManager",void 0),K([v("ctrlsService")],n.prototype,"ctrlsService",void 0),K([v("overlayService")],n.prototype,"overlayService",void 0),K([Y("sideBarService")],n.prototype,"sideBarService",void 0),K([v("stateService")],n.prototype,"stateService",void 0),K([v("expansionService")],n.prototype,"expansionService",void 0),K([v("apiEventService")],n.prototype,"apiEventService",void 0),K([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),K([F],n.prototype,"init",null),n=K([x("gridApi")],n),n}(),lf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ao=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zl=function(n){lf(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.quickFilter=null,r.quickFilterParts=null,r}e=t,t.prototype.postConstruct=function(){var r=this;this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return r.resetQuickFilterCache()}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return r.resetQuickFilterCache()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return r.resetQuickFilterCache()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,function(){r.gridOptionsService.get("includeHiddenColumnsInQuickFilter")||r.resetQuickFilterCache()}),this.addManagedPropertyListener("quickFilterText",function(o){return r.setQuickFilter(o.currentValue)}),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",function(){return r.onIncludeHiddenColumnsInQuickFilterChanged()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.parser=this.gridOptionsService.get("quickFilterParser"),this.matcher=this.gridOptionsService.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],function(){return r.setQuickFilterParserAndMatcher()})},t.prototype.isQuickFilterPresent=function(){return this.quickFilter!==null},t.prototype.doesRowPassQuickFilter=function(r){var o=this,i=this.gridOptionsService.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(i,r):this.quickFilterParts.every(function(s){return i?o.doesRowPassQuickFilterCache(r,s):o.doesRowPassQuickFilterNoCache(r,s)})},t.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode(function(r){return r.quickFilterAggregateText=null})},t.prototype.setQuickFilterParts=function(){var r=this,o=r.quickFilter,i=r.parser;o?this.quickFilterParts=i?i(o):o.split(" "):this.quickFilterParts=null},t.prototype.parseQuickFilter=function(r){return P(r)?this.gridOptionsService.isRowModelType("clientSide")?r.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},t.prototype.setQuickFilter=function(r){if(r!=null&&typeof r!="string"){console.warn("AG Grid - Grid option quickFilterText only supports string inputs, received: ".concat(typeof r));return}var o=this.parseQuickFilter(r);this.quickFilter!==o&&(this.quickFilter=o,this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},t.prototype.setQuickFilterParserAndMatcher=function(){var r=this.gridOptionsService.get("quickFilterParser"),o=this.gridOptionsService.get("quickFilterMatcher"),i=r!==this.parser||o!==this.matcher;this.parser=r,this.matcher=o,i&&(this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},t.prototype.onIncludeHiddenColumnsInQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED})},t.prototype.doesRowPassQuickFilterNoCache=function(r,o){var i=this,s=this.columnModel.getAllColumnsForQuickFilter();return s.some(function(a){var l=i.getQuickFilterTextForColumn(a,r);return P(l)&&l.indexOf(o)>=0})},t.prototype.doesRowPassQuickFilterCache=function(r,o){return this.checkGenerateQuickFilterAggregateText(r),r.quickFilterAggregateText.indexOf(o)>=0},t.prototype.doesRowPassQuickFilterMatcher=function(r,o){var i;r?(this.checkGenerateQuickFilterAggregateText(o),i=o.quickFilterAggregateText):i=this.getQuickFilterAggregateText(o);var s=this,a=s.quickFilterParts,l=s.matcher;return l(a,i)},t.prototype.checkGenerateQuickFilterAggregateText=function(r){r.quickFilterAggregateText||(r.quickFilterAggregateText=this.getQuickFilterAggregateText(r))},t.prototype.getQuickFilterTextForColumn=function(r,o){var i=this.valueService.getValue(r,o,!0),s=r.getColDef();if(s.getQuickFilterText){var a=this.gridOptionsService.addGridCommonParams({value:i,node:o,data:o.data,column:r,colDef:s});i=s.getQuickFilterText(a)}return P(i)?i.toString().toUpperCase():null},t.prototype.getQuickFilterAggregateText=function(r){var o=this,i=[],s=this.columnModel.getAllColumnsForQuickFilter();return s.forEach(function(a){var l=o.getQuickFilterTextForColumn(a,r);P(l)&&i.push(l)}),i.join(e.QUICK_FILTER_SEPARATOR)};var e;return t.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",t.QUICK_FILTER_SEPARATOR=` -`,ao([v("valueService")],t.prototype,"valueService",void 0),ao([v("columnModel")],t.prototype,"columnModel",void 0),ao([v("rowModel")],t.prototype,"rowModel",void 0),ao([F],t.prototype,"postConstruct",null),t=e=ao([x("quickFilterService")],t),t}(D),uf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yt=function(){return yt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},cf=function(n){uf(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.allColumnListeners=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.processingFilterChange=!1,e.filterModelUpdateQueue=[],e.columnFilterModelUpdateQueue=[],e.advancedFilterModelUpdateQueue=[],e}return t.prototype.init=function(){var e=this,r,o,i;this.addManagedListener(this.eventService,g.EVENT_GRID_COLUMNS_CHANGED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VALUE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,g.EVENT_ROW_DATA_UPDATED,function(){return e.onNewRowsLoaded("rowDataUpdated")}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],function(){e.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",function(){e.updateAggFiltering(),e.onFilterChanged()}),this.addManagedPropertyListener("advancedFilterModel",function(s){return e.setAdvancedFilterModel(s.currentValue)}),this.addManagedListener(this.eventService,g.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,function(s){var a=s.enabled;return e.onAdvancedFilterEnabledChanged(a)}),this.addManagedListener(this.eventService,g.EVENT_DATA_TYPES_INFERRED,function(){return e.processFilterModelUpdateQueue()}),this.addManagedListener(this.quickFilterService,Zl.EVENT_QUICK_FILTER_CHANGED,function(){return e.onFilterChanged({source:"quickFilter"})}),this.initialFilterModel=yt({},(i=(o=(r=this.gridOptionsService.get("initialState"))===null||r===void 0?void 0:r.filter)===null||o===void 0?void 0:o.filterModel)!==null&&i!==void 0?i:{})},t.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return typeof e=="function"?e({}):!1},t.prototype.doesExternalFilterPass=function(e){var r=this.gridOptionsService.get("doesExternalFilterPass");return typeof r=="function"?r(e):!1},t.prototype.setFilterModel=function(e,r){var o=this;if(r===void 0&&(r="api"),this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}if(this.dataTypeService.isPendingInference()){this.filterModelUpdateQueue.push({model:e,source:r});return}var i=[],s=this.getFilterModel();if(e){var a=Yn(Object.keys(e));this.allColumnFilters.forEach(function(l,u){var c=e[u];i.push(o.setModelOnFilterWrapper(l.filterPromise,c)),a.delete(u)}),a.forEach(function(l){var u=o.columnModel.getPrimaryColumn(l)||o.columnModel.getGridColumn(l);if(!u){console.warn("AG Grid: setFilterModel() - no column found for colId: "+l);return}if(!u.isFilterAllowed()){console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+l);return}var c=o.getOrCreateFilterWrapper(u,"NO_UI");if(!c){console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+l);return}i.push(o.setModelOnFilterWrapper(c.filterPromise,e[l]))})}else this.allColumnFilters.forEach(function(l){i.push(o.setModelOnFilterWrapper(l.filterPromise,null))});je.all(i).then(function(){var l=o.getFilterModel(),u=[];o.allColumnFilters.forEach(function(c,p){var d=s?s[p]:null,h=l?l[p]:null;j.jsonEquals(d,h)||u.push(c.column)}),u.length>0&&o.onFilterChanged({columns:u,source:r})})},t.prototype.setModelOnFilterWrapper=function(e,r){return new je(function(o){e.then(function(i){typeof i.setModel!="function"&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(i.setModel(r)||je.resolve()).then(function(){return o()})})})},t.prototype.getFilterModel=function(){var e=this,r={};return this.allColumnFilters.forEach(function(o,i){var s=e.getModelFromFilterWrapper(o);P(s)&&(r[i]=s)}),r},t.prototype.getModelFromFilterWrapper=function(e){var r,o=e.filterPromise,i=o.resolveNow(null,function(s){return s});return i==null?(r=this.initialFilterModel[e.column.getColId()])!==null&&r!==void 0?r:null:typeof i.getModel!="function"?(console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel"),null):i.getModel()},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.isChildFilterPresent=function(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},t.prototype.isAdvancedFilterPresent=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()},t.prototype.onAdvancedFilterEnabledChanged=function(e){var r=this,o;e?this.allColumnFilters.size&&(this.allColumnFilters.forEach(function(i){return r.disposeFilterWrapper(i,"advancedFilterEnabled")}),this.onFilterChanged({source:"advancedFilter"})):!((o=this.advancedFilterService)===null||o===void 0)&&o.isFilterPresent()&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))},t.prototype.isAdvancedFilterEnabled=function(){var e;return(e=this.advancedFilterService)===null||e===void 0?void 0:e.isEnabled()},t.prototype.isAdvancedFilterHeaderActive=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()},t.prototype.doAggregateFiltersPass=function(e,r){return this.doColumnFiltersPass(e,r,!0)},t.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var r=function(s){return s?s.isFilterActive?s.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1):!1},o=!!this.gridOptionsService.getGroupAggFiltering(),i=function(s){var a=!s.isPrimary();if(a)return!0;var l=!e.columnModel.isPivotActive(),u=s.isValueActive();return!u||!l?!1:e.columnModel.isPivotMode()?!0:o};this.allColumnFilters.forEach(function(s){if(s.filterPromise.resolveNow(!1,r)){var a=s.filterPromise.resolveNow(null,function(l){return l});i(s.column)?e.activeAggregateFilters.push(a):e.activeColumnFilters.push(a)}})},t.prototype.updateFilterFlagInColumns=function(e,r){this.allColumnFilters.forEach(function(o){var i=o.filterPromise.resolveNow(!1,function(s){return s.isFilterActive()});o.column.setFilterActive(i,e,r)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},t.prototype.doColumnFiltersPass=function(e,r,o){for(var i=e.data,s=e.aggData,a=o?this.activeAggregateFilters:this.activeColumnFilters,l=o?s:i,u=0;u0?this.onFilterChanged({columns:r,source:"api"}):this.updateDependantFilters()},t.prototype.updateDependantFilters=function(){var e=this,r=this.columnModel.getGroupAutoColumns();r==null||r.forEach(function(o){o.getColDef().filter==="agGroupColumnFilter"&&e.getOrCreateFilterWrapper(o,"NO_UI")})},t.prototype.isFilterAllowed=function(e){var r,o;if(this.isAdvancedFilterEnabled())return!1;var i=e.isFilterAllowed();if(!i)return!1;var s=this.allColumnFilters.get(e.getColId());return(o=(r=s==null?void 0:s.filterPromise)===null||r===void 0?void 0:r.resolveNow(!0,function(a){return typeof(a==null?void 0:a.isFilterAllowed)=="function"?a==null?void 0:a.isFilterAllowed():!0}))!==null&&o!==void 0?o:!0},t.prototype.getFloatingFilterCompDetails=function(e,r){var o=this,i=function(p){var d=o.getFilterComponent(e,"NO_UI");d!=null&&d.then(function(h){p(dr(h))})},s=e.getColDef(),a=yt(yt({},this.createFilterParams(e,s)),{filterChangedCallback:function(){return i(function(p){return o.filterChangedCallbackFactory(p,e)()})}}),l=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(s,hs,a),u=this.userComponentFactory.getDefaultFloatingFilterType(s,function(){return o.getDefaultFloatingFilter(e)});u==null&&(u="agReadOnlyFloatingFilter");var c={column:e,filterParams:l,currentParentModel:function(){return o.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:i,showParentFilter:r,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(s,c,u)},t.prototype.getCurrentFloatingFilterParentModel=function(e){var r=this.getFilterComponent(e,"NO_UI",!1);return r?r.resolveNow(null,function(o){return o&&o.getModel()}):null},t.prototype.destroyFilter=function(e,r){r===void 0&&(r="api");var o=e.getColId(),i=this.allColumnFilters.get(o);this.disposeColumnListener(o),delete this.initialFilterModel[o],i&&(this.disposeFilterWrapper(i,r),this.onFilterChanged({columns:[e],source:"api"}))},t.prototype.disposeColumnListener=function(e){var r=this.allColumnListeners.get(e);r&&(this.allColumnListeners.delete(e),r())},t.prototype.disposeFilterWrapper=function(e,r){var o=this;e.filterPromise.then(function(i){o.getContext().destroyBean(i),e.column.setFilterActive(!1,"filterDestroyed"),o.allColumnFilters.delete(e.column.getColId());var s={type:g.EVENT_FILTER_DESTROYED,source:r,column:e.column};o.eventService.dispatchEvent(s)})},t.prototype.filterModifiedCallbackFactory=function(e,r){var o=this;return function(){var i={type:g.EVENT_FILTER_MODIFIED,column:r,filterInstance:e};o.eventService.dispatchEvent(i)}},t.prototype.filterChangedCallbackFactory=function(e,r){var o=this;return function(i){var s,a=(s=i==null?void 0:i.source)!==null&&s!==void 0?s:"api",l={filter:e,additionalEventAttributes:i,columns:[r],source:a};o.callOnFilterChangedOutsideRenderCycle(l)}},t.prototype.checkDestroyFilter=function(e){var r=this,o=this.allColumnFilters.get(e);if(o){var i=o.column,s=(i.isFilterAllowed()?this.createFilterInstance(i):{compDetails:null}).compDetails;if(this.areFilterCompsDifferent(o.compDetails,s)){this.destroyFilter(i,"paramsUpdated");return}var a=i.getColDef().filterParams;if(!o.filterPromise){this.destroyFilter(i,"paramsUpdated");return}o.filterPromise.then(function(l){var u=l!=null&&l.refresh?l.refresh(yt(yt(yt({},r.createFilterParams(i,i.getColDef())),{filterModifiedCallback:r.filterModifiedCallbackFactory(l,i),filterChangedCallback:r.filterChangedCallbackFactory(l,i),doesRowPassOtherFilter:function(c){return r.doesRowPassOtherFilters(l,c)}}),a)):!0;u===!1&&r.destroyFilter(i,"paramsUpdated")})}},t.prototype.setColumnFilterWrapper=function(e,r){var o=this,i=e.getColId();this.allColumnFilters.set(i,r),this.allColumnListeners.set(i,this.addManagedListener(e,J.EVENT_COL_DEF_CHANGED,function(){return o.checkDestroyFilter(i)}))},t.prototype.areFilterCompsDifferent=function(e,r){if(!r||!e)return!0;var o=e.componentClass,i=r.componentClass,s=o===i||(o==null?void 0:o.render)&&(i==null?void 0:i.render)&&o.render===i.render;return!s},t.prototype.getAdvancedFilterModel=function(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null},t.prototype.setAdvancedFilterModel=function(e){if(this.isAdvancedFilterEnabled()){if(this.dataTypeService.isPendingInference()){this.advancedFilterModelUpdateQueue.push(e);return}this.advancedFilterService.setModel(e??null),this.onFilterChanged({source:"advancedFilter"})}},t.prototype.showAdvancedFilterBuilder=function(e){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(e,!0)},t.prototype.updateAdvancedFilterColumns=function(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})},t.prototype.hasFloatingFilters=function(){if(this.isAdvancedFilterEnabled())return!1;var e=this.columnModel.getAllGridColumns();return e.some(function(r){return r.getColDef().floatingFilter})},t.prototype.getFilterInstance=function(e,r){if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}var o=this.getFilterInstanceImpl(e,function(s){if(r){var a=dr(s);r(a)}}),i=dr(o);return i},t.prototype.getColumnFilterInstance=function(e){var r=this;return new Promise(function(o){r.getFilterInstance(e,function(i){o(i)})})},t.prototype.getFilterInstanceImpl=function(e,r){var o=this.columnModel.getPrimaryColumn(e);if(o){var i=this.getFilterComponent(o,"NO_UI"),s=i&&i.resolveNow(null,function(a){return a});return s?setTimeout(r,0,s):i&&i.then(function(a){r(a)}),s}},t.prototype.warnAdvancedFilters=function(){V("Column Filter API methods have been disabled as Advanced Filters are enabled.")},t.prototype.setupAdvancedFilterHeaderComp=function(e){var r;(r=this.advancedFilterService)===null||r===void 0||r.getCtrl().setupHeaderComp(e)},t.prototype.getHeaderRowCount=function(){return this.isAdvancedFilterHeaderActive()?1:0},t.prototype.getHeaderHeight=function(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0},t.prototype.processFilterModelUpdateQueue=function(){var e=this;this.filterModelUpdateQueue.forEach(function(r){var o=r.model,i=r.source;return e.setFilterModel(o,i)}),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(function(r){var o=r.key,i=r.model,s=r.resolve;e.setColumnFilterModel(o,i).then(function(){return s()})}),this.columnFilterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue.forEach(function(r){return e.setAdvancedFilterModel(r)}),this.advancedFilterModelUpdateQueue=[]},t.prototype.getColumnFilterModel=function(e){var r=this.getFilterWrapper(e);return r?this.getModelFromFilterWrapper(r):null},t.prototype.setColumnFilterModel=function(e,r){if(this.isAdvancedFilterEnabled())return this.warnAdvancedFilters(),Promise.resolve();if(this.dataTypeService.isPendingInference()){var o=function(){},i=new Promise(function(u){o=u});return this.columnFilterModelUpdateQueue.push({key:e,model:r,resolve:o}),i}var s=this.columnModel.getPrimaryColumn(e),a=s?this.getOrCreateFilterWrapper(s,"NO_UI"):null,l=function(u){return new Promise(function(c){u.then(function(p){return c(p)})})};return a?l(this.setModelOnFilterWrapper(a.filterPromise,r)):Promise.resolve()},t.prototype.getFilterWrapper=function(e){var r,o=this.columnModel.getPrimaryColumn(e);return o&&(r=this.cachedFilter(o))!==null&&r!==void 0?r:null},t.prototype.destroy=function(){var e=this;n.prototype.destroy.call(this),this.allColumnFilters.forEach(function(r){return e.disposeFilterWrapper(r,"gridDestroyed")}),this.allColumnListeners.clear()},mt([v("valueService")],t.prototype,"valueService",void 0),mt([v("columnModel")],t.prototype,"columnModel",void 0),mt([v("rowModel")],t.prototype,"rowModel",void 0),mt([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),mt([v("rowRenderer")],t.prototype,"rowRenderer",void 0),mt([v("dataTypeService")],t.prototype,"dataTypeService",void 0),mt([v("quickFilterService")],t.prototype,"quickFilterService",void 0),mt([Y("advancedFilterService")],t.prototype,"advancedFilterService",void 0),mt([F],t.prototype,"init",null),t=mt([x("filterManager")],t),t}(D),pf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gs=function(n){pf(t,n);function t(e,r){var o=n.call(this,e)||this;return o.ctrl=r,o}return t.prototype.getCtrl=function(){return this.ctrl},t}(k),df=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),lo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},hf=function(n){df(t,n);function t(e){return n.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o={addOrRemoveCssClass:function(i,s){return e.addOrRemoveCssClass(i,s)},addOrRemoveBodyCssClass:function(i,s){return e.eFloatingFilterBody.classList.toggle(i,s)},setButtonWrapperDisplayed:function(i){return $(e.eButtonWrapper,i)},setCompDetails:function(i){return e.setCompDetails(i)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(i){return r.style.width=i},setMenuIcon:function(i){return e.eButtonShowMainFilter.appendChild(i)}};this.ctrl.setComp(o,r,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var r=this;if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(o){return r.afterCompCreated(o)})},t.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},t.prototype.afterCompCreated=function(e){if(e){if(!this.isAlive()){this.destroyBean(e);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()}},t.TEMPLATE=`
+
`)||this}return t.prototype.init=function(e){var r=this,o;this.params=e;var i=(o=e.value)!==null&&o!==void 0?o:void 0;this.eCheckbox.setValue(i);var s=this.eCheckbox.getInputElement();s.setAttribute("tabindex","-1"),this.setAriaLabel(i),this.addManagedListener(this.eCheckbox,g.EVENT_FIELD_VALUE_CHANGED,function(a){return r.setAriaLabel(a.selected)})},t.prototype.getValue=function(){return this.eCheckbox.getValue()},t.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},t.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},t.prototype.isPopup=function(){return!1},t.prototype.setAriaLabel=function(e){var r=this.localeService.getLocaleTextFunc(),o=Sn(r,e),i=r("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel("".concat(i," (").concat(o,")"))},Ih([L("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(cr),Nh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Gh=function(n){Nh(t,n);function t(){var e=n.call(this)||this;return e.setTemplate("
"),e}return t.prototype.init=function(e){var r;this.params=e,this.cssClassPrefix=(r=this.params.cssClassPrefix)!==null&&r!==void 0?r:"ag-menu-option",this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()},t.prototype.configureDefaults=function(){return!0},t.prototype.addIcon=function(){if(!this.params.isCompact){var e=Oe(''));this.params.checked?e.appendChild(ne("check",this.gridOptionsService)):this.params.icon&&(to(this.params.icon)?e.appendChild(this.params.icon):typeof this.params.icon=="string"?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){var e=Oe('').concat(this.params.name||"",""));this.getGui().appendChild(e)},t.prototype.addShortcut=function(){if(!this.params.isCompact){var e=Oe('').concat(this.params.shortcut||"",""));this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){var e=Oe('')),r=this.getGui();if(this.params.subMenu){var o=this.gridOptionsService.get("enableRtl")?"smallLeft":"smallRight";Pt(r,!1),e.appendChild(ne(o,this.gridOptionsService))}r.appendChild(e)},t.prototype.getClassName=function(e){return"".concat(this.cssClassPrefix,"-").concat(e)},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(k),Vh=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ds=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Kl=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},$l=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0&&console.warn(" Did you mean: [".concat(i.slice(0,3),"]?")),console.warn("If using a custom component check it has been registered as described in: ".concat(this.getFrameworkOverrides().getDocLink("components/")))},ds([v("gridOptions")],t.prototype,"gridOptions",void 0),ds([F],t.prototype,"init",null),t=ds([x("userComponentRegistry")],t),t}(D),Bh={propertyName:"dateComponent",cellRenderer:!1},kh={propertyName:"headerComponent",cellRenderer:!1},Wh={propertyName:"headerGroupComponent",cellRenderer:!1},Yl={propertyName:"cellRenderer",cellRenderer:!0},jh={propertyName:"cellEditor",cellRenderer:!1},ql={propertyName:"innerRenderer",cellRenderer:!0},Uh={propertyName:"loadingOverlayComponent",cellRenderer:!1},zh={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Kh={propertyName:"tooltipComponent",cellRenderer:!1},hs={propertyName:"filter",cellRenderer:!1},$h={propertyName:"floatingFilterComponent",cellRenderer:!1},Yh={propertyName:"toolPanel",cellRenderer:!1},qh={propertyName:"statusPanel",cellRenderer:!1},Qh={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Xh={propertyName:"loadingCellRenderer",cellRenderer:!0},Zh={propertyName:"groupRowRenderer",cellRenderer:!0},Jh={propertyName:"detailCellRenderer",cellRenderer:!0},ef={propertyName:"menuItem",cellRenderer:!1},tf=function(){function n(){}return n.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},n.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},n}(),rf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Lr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},of=function(n){rf(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getHeaderCompDetails=function(e,r){return this.getCompDetails(e,kh,"agColumnHeader",r)},t.prototype.getHeaderGroupCompDetails=function(e){var r=e.columnGroup.getColGroupDef();return this.getCompDetails(r,Wh,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Qh,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Xh,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Zh,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Jh,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,r){return this.getCompDetails(e,ql,null,r)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,r){return this.getCompDetails(e,ql,null,r)},t.prototype.getCellRendererDetails=function(e,r){return this.getCompDetails(e,Yl,null,r)},t.prototype.getCellEditorDetails=function(e,r){return this.getCompDetails(e,jh,"agCellEditor",r,!0)},t.prototype.getFilterDetails=function(e,r,o){return this.getCompDetails(e,hs,o,r,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Bh,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Uh,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,zh,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Kh,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,r){return this.getCompDetails(e,Yl,null,r)},t.prototype.getFloatingFilterCompDetails=function(e,r,o){return this.getCompDetails(e,$h,o,r)},t.prototype.getToolPanelCompDetails=function(e,r){return this.getCompDetails(e,Yh,null,r,!0)},t.prototype.getStatusPanelCompDetails=function(e,r){return this.getCompDetails(e,qh,null,r,!0)},t.prototype.getMenuItemCompDetails=function(e,r){return this.getCompDetails(e,ef,"agMenuItem",r,!0)},t.prototype.getCompDetails=function(e,r,o,i,s){var a=this;s===void 0&&(s=!1);var l=r.propertyName,u=r.cellRenderer,c=this.getCompKeys(e,r,i),p=c.compName,d=c.jsComp,h=c.fwComp,f=c.paramsFromSelector,y=c.popupFromSelector,C=c.popupPositionFromSelector,m=function(R){var O=a.userComponentRegistry.retrieve(l,R);O&&(d=O.componentFromFramework?void 0:O.component,h=O.componentFromFramework?O.component:void 0)};if(p!=null&&m(p),d==null&&h==null&&o!=null&&m(o),d&&u&&!this.agComponentUtils.doesImplementIComponent(d)&&(d=this.agComponentUtils.adaptFunction(l,d)),!d&&!h){s&&console.error("AG Grid: Could not find component ".concat(p,", did you forget to configure this component?"));return}var w=this.mergeParamsWithApplicationProvidedParams(e,r,i,f),E=d==null,S=d||h;return{componentFromFramework:E,componentClass:S,params:w,type:r,popupFromSelector:y,popupPositionFromSelector:C,newAgStackInstance:function(){return a.newAgStackInstance(S,E,w,r)}}},t.prototype.getCompKeys=function(e,r,o){var i=this,s=r.propertyName,a,l,u,c,p,d;if(e){var h=e,f=h[s+"Selector"],y=f?f(o):null,C=function(m){if(typeof m=="string")a=m;else if(m!=null&&m!==!0){var w=i.getFrameworkOverrides().isFrameworkComponent(m);w?u=m:l=m}};y?(C(y.component),c=y.params,p=y.popup,d=y.popupPosition):C(h[s])}return{compName:a,jsComp:l,fwComp:u,paramsFromSelector:c,popupFromSelector:p,popupPositionFromSelector:d}},t.prototype.newAgStackInstance=function(e,r,o,i){var s=i.propertyName,a=!r,l;if(a)l=new e;else{var u=this.componentMetadataProvider.retrieve(s);l=this.frameworkComponentWrapper.wrap(e,u.mandatoryMethodList,u.optionalMethodList,i)}var c=this.initComponent(l,o);return c==null?je.resolve(l):c.then(function(){return l})},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,r,o,i){i===void 0&&(i=null);var s=this.gridOptionsService.getGridCommonParams();Ve(s,o);var a=e,l=a&&a[r.propertyName+"Params"];if(typeof l=="function"){var u=l(o);Ve(s,u)}else typeof l=="object"&&Ve(s,l);return Ve(s,i),s},t.prototype.initComponent=function(e,r){if(this.context.createBean(e),e.init!=null)return e.init(r)},t.prototype.getDefaultFloatingFilterType=function(e,r){if(e==null)return null;var o=null,i=this.getCompKeys(e,hs),s=i.compName,a=i.jsComp,l=i.fwComp;if(s)o=tf.getFloatingFilterType(s);else{var u=a==null&&l==null&&e.filter===!0;u&&(o=r())}return o},Lr([v("gridOptions")],t.prototype,"gridOptions",void 0),Lr([v("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Lr([v("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),Lr([v("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Lr([Y("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=Lr([x("userComponentFactory")],t),t}(D),nf=function(){function n(){}return n.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0},n.ALL_PROPERTIES=Object.keys(n.ColDefPropertyMap),n}(),ui;(function(n){n[n.SINGLE_SHEET=0]="SINGLE_SHEET",n[n.MULTI_SHEET=1]="MULTI_SHEET"})(ui||(ui={}));var sf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fs=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},af=function(n){sf(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var r=e.dragSource.eElement,o=e.mouseDownListener;if(r.removeEventListener("mousedown",o),e.touchEnabled){var i=e.touchStartListener;r.removeEventListener("touchstart",i,{passive:!0})}},t.prototype.removeDragSource=function(e){var r=this.dragSources.find(function(o){return o.dragSource===e});r&&(this.removeListener(r),_e(this.dragSources,r))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e){var r=this,o=this.onMouseDown.bind(this,e),i=e.eElement,s=e.includeTouch,a=e.stopPropagationForTouch;i.addEventListener("mousedown",o);var l=null,u=this.gridOptionsService.get("suppressTouch");s&&!u&&(l=function(c){Vn(c.target)||(c.cancelable&&(c.preventDefault(),a&&c.stopPropagation()),r.onTouchStart(e,c))},i.addEventListener("touchstart",l,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:l,touchEnabled:!!s})},t.prototype.getStartTarget=function(){return this.startTarget},t.prototype.onTouchStart=function(e,r){var o=this;this.currentDragParams=e,this.dragging=!1;var i=r.touches[0];this.touchLastTime=i,this.touchStart=i;var s=function(p){return o.onTouchMove(p,e.eElement)},a=function(p){return o.onTouchUp(p,e.eElement)},l=function(p){p.cancelable&&p.preventDefault()},u=r.target,c=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:l,options:{passive:!1}},{target:u,type:"touchmove",listener:s,options:{passive:!0}},{target:u,type:"touchend",listener:a,options:{passive:!0}},{target:u,type:"touchcancel",listener:a,options:{passive:!0}}];this.addTemporaryEvents(c),e.dragStartPixels===0&&this.onCommonMove(i,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,r){var o=this,i=r;if(!(e.skipMouseEvent&&e.skipMouseEvent(r))&&!i._alreadyProcessedByDragService&&(i._alreadyProcessedByDragService=!0,r.button===0)){this.shouldPreventMouseEvent(r)&&r.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=r,this.startTarget=r.target;var s=function(p){return o.onMouseMove(p,e.eElement)},a=function(p){return o.onMouseUp(p,e.eElement)},l=function(p){return p.preventDefault()},u=this.gridOptionsService.getRootNode(),c=[{target:u,type:"mousemove",listener:s},{target:u,type:"mouseup",listener:a},{target:u,type:"contextmenu",listener:l}];this.addTemporaryEvents(c),e.dragStartPixels===0&&this.onMouseMove(r,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach(function(r){var o=r.target,i=r.type,s=r.listener,a=r.options;o.addEventListener(i,s,a)}),this.dragEndFunctions.push(function(){e.forEach(function(r){var o=r.target,i=r.type,s=r.listener,a=r.options;o.removeEventListener(i,s,a)})})},t.prototype.isEventNearStartEvent=function(e,r){var o=this.currentDragParams.dragStartPixels,i=P(o)?o:4;return $n(e,r,i)},t.prototype.getFirstActiveTouch=function(e){for(var r=0;ro.right-i,this.tickUp=t.clientYo.bottom-i&&!r,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},n.prototype.ensureTickingStarted=function(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},n.prototype.doTick=function(){this.tickCount++;var t;if(t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var r=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(r-t),this.tickRight&&this.setHorizontalPosition(r+t)}this.onScrollCallback&&this.onScrollCallback()},n.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},n}(),lf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xl=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vs="ag-list-item-hovered";(function(n){lf(t,n);function t(e,r,o){var i=n.call(this)||this;return i.comp=e,i.virtualList=r,i.params=o,i.currentDragValue=null,i.lastHoveredListItem=null,i}return t.prototype.postConstruct=function(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},t.prototype.listItemDragStart=function(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)},t.prototype.listItemDragEnd=function(){var e=this;window.setTimeout(function(){e.currentDragValue=null,e.moveBlocked=!1},10)},t.prototype.createDropTarget=function(){var e=this,r={isInterestedIn:function(o){return o===e.params.dragSourceType},getIconName:function(){return e.moveBlocked?he.ICON_PINNED:he.ICON_MOVE},getContainer:function(){return e.comp.getGui()},onDragging:function(o){return e.onDragging(o)},onDragStop:function(){return e.onDragStop()},onDragLeave:function(){return e.onDragLeave()}};this.dragAndDropService.addDropTarget(r)},t.prototype.createAutoScrollService=function(){var e=this.virtualList.getGui();this.autoScrollService=new Ql({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(r){return e.scrollTop=r}})},t.prototype.onDragging=function(e){if(!(!this.currentDragValue||this.moveBlocked)){var r=this.getListDragItem(e),o=this.virtualList.getComponentAt(r.rowIndex);if(o){var i=o.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===r.rowIndex&&this.lastHoveredListItem.position===r.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=r,Nn(i,vs),Nn(i,"ag-item-highlight-".concat(r.position)))}}},t.prototype.getListDragItem=function(e){var r=this.virtualList.getGui(),o=parseFloat(window.getComputedStyle(r).paddingTop),i=this.virtualList.getRowHeight(),s=this.virtualList.getScrollTop(),a=Math.max(0,(e.y-o+s)/i),l=this.params.getNumRows(this.comp)-1,u=Math.min(l,a)|0;return{rowIndex:u,position:Math.round(a)>a||a>l?"bottom":"top",component:this.virtualList.getComponentAt(u)}},t.prototype.onDragStop=function(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())},t.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},t.prototype.clearHoveredItems=function(){var e=this.virtualList.getGui();e.querySelectorAll(".".concat(vs)).forEach(function(r){[vs,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(function(o){r.classList.remove(o)})}),this.lastHoveredListItem=null},Xl([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Xl([F],t.prototype,"postConstruct",null),t})(D);var et;(function(n){n[n.Above=0]="Above",n[n.Below=1]="Below"})(et||(et={}));var K=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};function dr(n){var t=n,e=t!=null&&t.getFrameworkComponentInstance!=null;return e?t.getFrameworkComponentInstance():n}var Zl=function(){function n(){this.detailGridInfoMap={},this.destroyCalled=!1}return n.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel;break}this.ctrlsService.whenReady(function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})},n.prototype.__getAlignedGridService=function(){return this.alignedGridsService},n.prototype.__getContext=function(){return this.context},n.prototype.__getModel=function(){return this.rowModel},n.prototype.getGridId=function(){return this.context.getGridId()},n.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},n.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},n.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},n.prototype.forEachDetailGridInfo=function(t){var e=0;ye(this.detailGridInfoMap,function(r,o){P(o)&&(t(o,e),e++)})},n.prototype.getDataAsCsv=function(t){if(X.__assertRegistered(G.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(t)},n.prototype.exportDataAsCsv=function(t){X.__assertRegistered(G.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(t)},n.prototype.assertNotExcelMultiSheet=function(t,e){return X.__assertRegistered(G.ExcelExportModule,"api."+t,this.context.getGridId())?this.excelCreator.getFactoryMode()===ui.MULTI_SHEET?(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1):!0:!1},n.prototype.getDataAsExcel=function(t){if(this.assertNotExcelMultiSheet("getDataAsExcel",t))return this.excelCreator.getDataAsExcel(t)},n.prototype.exportDataAsExcel=function(t){this.assertNotExcelMultiSheet("exportDataAsExcel",t)&&this.excelCreator.exportDataAsExcel(t)},n.prototype.getSheetDataForExcel=function(t){if(X.__assertRegistered(G.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId()))return this.excelCreator.setFactoryMode(ui.MULTI_SHEET),this.excelCreator.getSheetDataForExcel(t)},n.prototype.getMultipleSheetsAsExcel=function(t){if(X.__assertRegistered(G.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(t)},n.prototype.exportMultipleSheetsAsExcel=function(t){X.__assertRegistered(G.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId())&&this.excelCreator.exportMultipleSheetsAsExcel(t)},n.prototype.setGridAriaProperty=function(t,e){if(t){var r=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-".concat(t);e===null?r.removeAttribute(o):r.setAttribute(o,e)}},n.prototype.logMissingRowModel=function(t){for(var e=[],r=1;r= 0"));return}this.serverSideRowModel?this.serverSideRowModel.applyRowData(t.successParams,o,i):this.logMissingRowModel("setServerSideDatasource","serverSide")},n.prototype.retryServerSideLoads=function(){if(!this.serverSideRowModel){this.logMissingRowModel("retryServerSideLoads","serverSide");return}this.serverSideRowModel.retryLoads()},n.prototype.flushServerSideAsyncTransactions=function(){if(!this.serverSideTransactionManager){this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide");return}return this.serverSideTransactionManager.flushAsyncTransactions()},n.prototype.applyTransaction=function(t){var e=this;if(!this.clientSideRowModel){this.logMissingRowModel("applyTransaction","clientSide");return}return this.frameworkOverrides.wrapIncoming(function(){return e.clientSideRowModel.updateRowData(t)})},n.prototype.applyTransactionAsync=function(t,e){var r=this;if(!this.clientSideRowModel){this.logMissingRowModel("applyTransactionAsync","clientSide");return}this.frameworkOverrides.wrapIncoming(function(){return r.clientSideRowModel.batchUpdateRowData(t,e)})},n.prototype.flushAsyncTransactions=function(){var t=this;if(!this.clientSideRowModel){this.logMissingRowModel("flushAsyncTransactions","clientSide");return}this.frameworkOverrides.wrapIncoming(function(){return t.clientSideRowModel.flushAsyncTransactions()})},n.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},n.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},n.prototype.refreshServerSide=function(t){if(!this.serverSideRowModel){this.logMissingRowModel("refreshServerSide","serverSide");return}this.serverSideRowModel.refreshStore(t)},n.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},n.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},n.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},n.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},n.prototype.getFirstDisplayedRow=function(){return this.logDeprecation("v31.1","getFirstDisplayedRow","getFirstDisplayedRowIndex"),this.getFirstDisplayedRowIndex()},n.prototype.getFirstDisplayedRowIndex=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},n.prototype.getLastDisplayedRow=function(){return this.logDeprecation("v31.1","getLastDisplayedRow","getLastDisplayedRowIndex"),this.getLastDisplayedRowIndex()},n.prototype.getLastDisplayedRowIndex=function(){return this.rowRenderer.getLastVirtualRenderedRow()},n.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},n.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},n.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},n.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},n.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},n.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},n.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},n.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},n.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},n.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},n.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},n.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},n.prototype.sizeColumnsToFit=function(t){typeof t=="number"?this.columnModel.sizeColumnsToFit(t,"api"):this.gridBodyCtrl.sizeColumnsToFit(t)},n.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},n.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},n.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},n.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},n.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},n.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},n.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},n.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},n.prototype.getColumnState=function(){return this.columnModel.getColumnState()},n.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},n.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},n.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},n.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},n.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},n.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},n.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},n.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},n.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},n.prototype.setColumnVisible=function(t,e){this.logDeprecation("v31.1","setColumnVisible(key,visible)","setColumnsVisible([key],visible)"),this.columnModel.setColumnsVisible([t],e,"api")},n.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},n.prototype.setColumnPinned=function(t,e){this.logDeprecation("v31.1","setColumnPinned(key,pinned)","setColumnsPinned([key],pinned)"),this.columnModel.setColumnsPinned([t],e,"api")},n.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},n.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},n.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},n.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},n.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},n.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},n.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},n.prototype.moveColumn=function(t,e){this.logDeprecation("v31.1","moveColumn(key, toIndex)","moveColumns([key], toIndex)"),this.columnModel.moveColumns([t],e,"api")},n.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},n.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},n.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e,"api")},n.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e,"api")},n.prototype.setColumnWidth=function(t,e,r,o){r===void 0&&(r=!0),o===void 0&&(o="api"),this.logDeprecation("v31.1","setColumnWidth(col, width)","setColumnWidths([{key: col, newWidth: width}])"),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,r,o)},n.prototype.setColumnWidths=function(t,e,r){e===void 0&&(e=!0),r===void 0&&(r="api"),this.columnModel.setColumnWidths(t,!1,e,r)},n.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},n.prototype.getPivotResultColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},n.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},n.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},n.prototype.removeValueColumn=function(t){this.logDeprecation("v31.1","removeValueColumn(colKey)","removeValueColumns([colKey])"),this.columnModel.removeValueColumns([t],"api")},n.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},n.prototype.addValueColumn=function(t){this.logDeprecation("v31.1","addValueColumn(colKey)","addValueColumns([colKey])"),this.columnModel.addValueColumns([t],"api")},n.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},n.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},n.prototype.removeRowGroupColumn=function(t){this.logDeprecation("v31.1","removeRowGroupColumn(colKey)","removeRowGroupColumns([colKey])"),this.columnModel.removeRowGroupColumns([t],"api")},n.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},n.prototype.addRowGroupColumn=function(t){this.logDeprecation("v31.1","addRowGroupColumn(colKey)","addRowGroupColumns([colKey])"),this.columnModel.addRowGroupColumns([t],"api")},n.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},n.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},n.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},n.prototype.removePivotColumn=function(t){this.logDeprecation("v31.1","removePivotColumn(colKey)","removePivotColumns([colKey])"),this.columnModel.removePivotColumns([t],"api")},n.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},n.prototype.addPivotColumn=function(t){this.logDeprecation("v31.1","addPivotColumn(colKey)","addPivotColumns([colKey])"),this.columnModel.addPivotColumns([t],"api")},n.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},n.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},n.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},n.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},n.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},n.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},n.prototype.autoSizeColumn=function(t,e){return this.logDeprecation("v31.1","autoSizeColumn(key, skipHeader)","autoSizeColumns([key], skipHeader)"),this.columnModel.autoSizeColumns({columns:[t],skipHeader:e,source:"api"})},n.prototype.autoSizeColumns=function(t,e){this.columnModel.autoSizeColumns({columns:t,skipHeader:e,source:"api"})},n.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns("api",t)},n.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},n.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},n.prototype.getState=function(){return this.stateService.getState()},n.prototype.getGridOption=function(t){return this.gos.get(t)},n.prototype.setGridOption=function(t,e){var r;this.updateGridOptions((r={},r[t]=e,r))},n.prototype.updateGridOptions=function(t){this.gos.updateGridOptions({options:t})},n.prototype.__internalUpdateGridOptions=function(t){this.gos.updateGridOptions({options:t,source:"gridOptionsUpdated"})},n.prototype.deprecatedUpdateGridOption=function(t,e){V("set".concat(t.charAt(0).toUpperCase()).concat(t.slice(1,t.length)," is deprecated. Please use 'api.setGridOption('").concat(t,"', newValue)' or 'api.updateGridOptions({ ").concat(t,": newValue })' instead.")),this.setGridOption(t,e)},n.prototype.setPivotMode=function(t){this.deprecatedUpdateGridOption("pivotMode",t)},n.prototype.setPinnedTopRowData=function(t){this.deprecatedUpdateGridOption("pinnedTopRowData",t)},n.prototype.setPinnedBottomRowData=function(t){this.deprecatedUpdateGridOption("pinnedBottomRowData",t)},n.prototype.setPopupParent=function(t){this.deprecatedUpdateGridOption("popupParent",t)},n.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(t){this.deprecatedUpdateGridOption("suppressModelUpdateAfterUpdateTransaction",t)},n.prototype.setDataTypeDefinitions=function(t){this.deprecatedUpdateGridOption("dataTypeDefinitions",t)},n.prototype.setPagination=function(t){this.deprecatedUpdateGridOption("pagination",t)},n.prototype.paginationSetPageSize=function(t){this.deprecatedUpdateGridOption("paginationPageSize",t)},n.prototype.setSideBar=function(t){this.deprecatedUpdateGridOption("sideBar",t)},n.prototype.setSuppressClipboardPaste=function(t){this.deprecatedUpdateGridOption("suppressClipboardPaste",t)},n.prototype.setGroupRemoveSingleChildren=function(t){this.deprecatedUpdateGridOption("groupRemoveSingleChildren",t)},n.prototype.setGroupRemoveLowestSingleChildren=function(t){this.deprecatedUpdateGridOption("groupRemoveLowestSingleChildren",t)},n.prototype.setGroupDisplayType=function(t){this.deprecatedUpdateGridOption("groupDisplayType",t)},n.prototype.setGroupIncludeFooter=function(t){this.deprecatedUpdateGridOption("groupIncludeFooter",t)},n.prototype.setGroupIncludeTotalFooter=function(t){this.deprecatedUpdateGridOption("groupIncludeTotalFooter",t)},n.prototype.setRowClass=function(t){this.deprecatedUpdateGridOption("rowClass",t)},n.prototype.setDeltaSort=function(t){this.deprecatedUpdateGridOption("deltaSort",t)},n.prototype.setSuppressRowDrag=function(t){this.deprecatedUpdateGridOption("suppressRowDrag",t)},n.prototype.setSuppressMoveWhenRowDragging=function(t){this.deprecatedUpdateGridOption("suppressMoveWhenRowDragging",t)},n.prototype.setSuppressRowClickSelection=function(t){this.deprecatedUpdateGridOption("suppressRowClickSelection",t)},n.prototype.setEnableAdvancedFilter=function(t){this.deprecatedUpdateGridOption("enableAdvancedFilter",t)},n.prototype.setIncludeHiddenColumnsInAdvancedFilter=function(t){this.deprecatedUpdateGridOption("includeHiddenColumnsInAdvancedFilter",t)},n.prototype.setAdvancedFilterParent=function(t){this.deprecatedUpdateGridOption("advancedFilterParent",t)},n.prototype.setAdvancedFilterBuilderParams=function(t){this.deprecatedUpdateGridOption("advancedFilterBuilderParams",t)},n.prototype.setQuickFilter=function(t){V("setQuickFilter is deprecated. Please use 'api.setGridOption('quickFilterText', newValue)' or 'api.updateGridOptions({ quickFilterText: newValue })' instead."),this.gos.updateGridOptions({options:{quickFilterText:t}})},n.prototype.setExcludeHiddenColumnsFromQuickFilter=function(t){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",!t)},n.prototype.setIncludeHiddenColumnsInQuickFilter=function(t){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",t)},n.prototype.setQuickFilterParser=function(t){this.deprecatedUpdateGridOption("quickFilterParser",t)},n.prototype.setQuickFilterMatcher=function(t){this.deprecatedUpdateGridOption("quickFilterMatcher",t)},n.prototype.setAlwaysShowHorizontalScroll=function(t){this.deprecatedUpdateGridOption("alwaysShowHorizontalScroll",t)},n.prototype.setAlwaysShowVerticalScroll=function(t){this.deprecatedUpdateGridOption("alwaysShowVerticalScroll",t)},n.prototype.setFunctionsReadOnly=function(t){this.deprecatedUpdateGridOption("functionsReadOnly",t)},n.prototype.setColumnDefs=function(t,e){e===void 0&&(e="api"),V("setColumnDefs is deprecated. Please use 'api.setGridOption('columnDefs', newValue)' or 'api.updateGridOptions({ columnDefs: newValue })' instead."),this.gos.updateGridOptions({options:{columnDefs:t},source:e})},n.prototype.setAutoGroupColumnDef=function(t,e){e===void 0&&(e="api"),V("setAutoGroupColumnDef is deprecated. Please use 'api.setGridOption('autoGroupColumnDef', newValue)' or 'api.updateGridOptions({ autoGroupColumnDef: newValue })' instead."),this.gos.updateGridOptions({options:{autoGroupColumnDef:t},source:e})},n.prototype.setDefaultColDef=function(t,e){e===void 0&&(e="api"),V("setDefaultColDef is deprecated. Please use 'api.setGridOption('defaultColDef', newValue)' or 'api.updateGridOptions({ defaultColDef: newValue })' instead."),this.gos.updateGridOptions({options:{defaultColDef:t},source:e})},n.prototype.setColumnTypes=function(t,e){e===void 0&&(e="api"),V("setColumnTypes is deprecated. Please use 'api.setGridOption('columnTypes', newValue)' or 'api.updateGridOptions({ columnTypes: newValue })' instead."),this.gos.updateGridOptions({options:{columnTypes:t},source:e})},n.prototype.setTreeData=function(t){this.deprecatedUpdateGridOption("treeData",t)},n.prototype.setServerSideDatasource=function(t){this.deprecatedUpdateGridOption("serverSideDatasource",t)},n.prototype.setCacheBlockSize=function(t){this.deprecatedUpdateGridOption("cacheBlockSize",t)},n.prototype.setDatasource=function(t){this.deprecatedUpdateGridOption("datasource",t)},n.prototype.setViewportDatasource=function(t){this.deprecatedUpdateGridOption("viewportDatasource",t)},n.prototype.setRowData=function(t){this.deprecatedUpdateGridOption("rowData",t)},n.prototype.setEnableCellTextSelection=function(t){this.deprecatedUpdateGridOption("enableCellTextSelection",t)},n.prototype.setHeaderHeight=function(t){this.deprecatedUpdateGridOption("headerHeight",t)},n.prototype.setDomLayout=function(t){this.deprecatedUpdateGridOption("domLayout",t)},n.prototype.setFillHandleDirection=function(t){this.deprecatedUpdateGridOption("fillHandleDirection",t)},n.prototype.setGroupHeaderHeight=function(t){this.deprecatedUpdateGridOption("groupHeaderHeight",t)},n.prototype.setFloatingFiltersHeight=function(t){this.deprecatedUpdateGridOption("floatingFiltersHeight",t)},n.prototype.setPivotHeaderHeight=function(t){this.deprecatedUpdateGridOption("pivotHeaderHeight",t)},n.prototype.setPivotGroupHeaderHeight=function(t){this.deprecatedUpdateGridOption("pivotGroupHeaderHeight",t)},n.prototype.setAnimateRows=function(t){this.deprecatedUpdateGridOption("animateRows",t)},n.prototype.setIsExternalFilterPresent=function(t){this.deprecatedUpdateGridOption("isExternalFilterPresent",t)},n.prototype.setDoesExternalFilterPass=function(t){this.deprecatedUpdateGridOption("doesExternalFilterPass",t)},n.prototype.setNavigateToNextCell=function(t){this.deprecatedUpdateGridOption("navigateToNextCell",t)},n.prototype.setTabToNextCell=function(t){this.deprecatedUpdateGridOption("tabToNextCell",t)},n.prototype.setTabToNextHeader=function(t){this.deprecatedUpdateGridOption("tabToNextHeader",t)},n.prototype.setNavigateToNextHeader=function(t){this.deprecatedUpdateGridOption("navigateToNextHeader",t)},n.prototype.setRowGroupPanelShow=function(t){this.deprecatedUpdateGridOption("rowGroupPanelShow",t)},n.prototype.setGetGroupRowAgg=function(t){this.deprecatedUpdateGridOption("getGroupRowAgg",t)},n.prototype.setGetBusinessKeyForNode=function(t){this.deprecatedUpdateGridOption("getBusinessKeyForNode",t)},n.prototype.setGetChildCount=function(t){this.deprecatedUpdateGridOption("getChildCount",t)},n.prototype.setProcessRowPostCreate=function(t){this.deprecatedUpdateGridOption("processRowPostCreate",t)},n.prototype.setGetRowId=function(t){V("getRowId is a static property and can no longer be updated.")},n.prototype.setGetRowClass=function(t){this.deprecatedUpdateGridOption("getRowClass",t)},n.prototype.setIsFullWidthRow=function(t){this.deprecatedUpdateGridOption("isFullWidthRow",t)},n.prototype.setIsRowSelectable=function(t){this.deprecatedUpdateGridOption("isRowSelectable",t)},n.prototype.setIsRowMaster=function(t){this.deprecatedUpdateGridOption("isRowMaster",t)},n.prototype.setPostSortRows=function(t){this.deprecatedUpdateGridOption("postSortRows",t)},n.prototype.setGetDocument=function(t){this.deprecatedUpdateGridOption("getDocument",t)},n.prototype.setGetContextMenuItems=function(t){this.deprecatedUpdateGridOption("getContextMenuItems",t)},n.prototype.setGetMainMenuItems=function(t){this.deprecatedUpdateGridOption("getMainMenuItems",t)},n.prototype.setProcessCellForClipboard=function(t){this.deprecatedUpdateGridOption("processCellForClipboard",t)},n.prototype.setSendToClipboard=function(t){this.deprecatedUpdateGridOption("sendToClipboard",t)},n.prototype.setProcessCellFromClipboard=function(t){this.deprecatedUpdateGridOption("processCellFromClipboard",t)},n.prototype.setProcessPivotResultColDef=function(t){this.deprecatedUpdateGridOption("processPivotResultColDef",t)},n.prototype.setProcessPivotResultColGroupDef=function(t){this.deprecatedUpdateGridOption("processPivotResultColGroupDef",t)},n.prototype.setPostProcessPopup=function(t){this.deprecatedUpdateGridOption("postProcessPopup",t)},n.prototype.setInitialGroupOrderComparator=function(t){this.deprecatedUpdateGridOption("initialGroupOrderComparator",t)},n.prototype.setGetChartToolbarItems=function(t){this.deprecatedUpdateGridOption("getChartToolbarItems",t)},n.prototype.setPaginationNumberFormatter=function(t){this.deprecatedUpdateGridOption("paginationNumberFormatter",t)},n.prototype.setGetServerSideGroupLevelParams=function(t){this.deprecatedUpdateGridOption("getServerSideGroupLevelParams",t)},n.prototype.setIsServerSideGroupOpenByDefault=function(t){this.deprecatedUpdateGridOption("isServerSideGroupOpenByDefault",t)},n.prototype.setIsApplyServerSideTransaction=function(t){this.deprecatedUpdateGridOption("isApplyServerSideTransaction",t)},n.prototype.setIsServerSideGroup=function(t){this.deprecatedUpdateGridOption("isServerSideGroup",t)},n.prototype.setGetServerSideGroupKey=function(t){this.deprecatedUpdateGridOption("getServerSideGroupKey",t)},n.prototype.setGetRowStyle=function(t){this.deprecatedUpdateGridOption("getRowStyle",t)},n.prototype.setGetRowHeight=function(t){this.deprecatedUpdateGridOption("getRowHeight",t)},K([Y("csvCreator")],n.prototype,"csvCreator",void 0),K([Y("excelCreator")],n.prototype,"excelCreator",void 0),K([v("rowRenderer")],n.prototype,"rowRenderer",void 0),K([v("navigationService")],n.prototype,"navigationService",void 0),K([v("filterManager")],n.prototype,"filterManager",void 0),K([v("columnModel")],n.prototype,"columnModel",void 0),K([v("selectionService")],n.prototype,"selectionService",void 0),K([v("gridOptionsService")],n.prototype,"gos",void 0),K([v("valueService")],n.prototype,"valueService",void 0),K([v("alignedGridsService")],n.prototype,"alignedGridsService",void 0),K([v("eventService")],n.prototype,"eventService",void 0),K([v("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),K([v("context")],n.prototype,"context",void 0),K([v("rowModel")],n.prototype,"rowModel",void 0),K([v("sortController")],n.prototype,"sortController",void 0),K([v("paginationProxy")],n.prototype,"paginationProxy",void 0),K([v("focusService")],n.prototype,"focusService",void 0),K([v("dragAndDropService")],n.prototype,"dragAndDropService",void 0),K([Y("rangeService")],n.prototype,"rangeService",void 0),K([Y("clipboardService")],n.prototype,"clipboardService",void 0),K([Y("aggFuncService")],n.prototype,"aggFuncService",void 0),K([v("menuService")],n.prototype,"menuService",void 0),K([v("valueCache")],n.prototype,"valueCache",void 0),K([v("animationFrameService")],n.prototype,"animationFrameService",void 0),K([Y("statusBarService")],n.prototype,"statusBarService",void 0),K([Y("chartService")],n.prototype,"chartService",void 0),K([Y("undoRedoService")],n.prototype,"undoRedoService",void 0),K([Y("rowNodeBlockLoader")],n.prototype,"rowNodeBlockLoader",void 0),K([Y("ssrmTransactionManager")],n.prototype,"serverSideTransactionManager",void 0),K([v("ctrlsService")],n.prototype,"ctrlsService",void 0),K([v("overlayService")],n.prototype,"overlayService",void 0),K([Y("sideBarService")],n.prototype,"sideBarService",void 0),K([v("stateService")],n.prototype,"stateService",void 0),K([v("expansionService")],n.prototype,"expansionService",void 0),K([v("apiEventService")],n.prototype,"apiEventService",void 0),K([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),K([F],n.prototype,"init",null),n=K([x("gridApi")],n),n}(),uf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ao=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Jl=function(n){uf(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.quickFilter=null,r.quickFilterParts=null,r}e=t,t.prototype.postConstruct=function(){var r=this;this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return r.resetQuickFilterCache()}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return r.resetQuickFilterCache()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return r.resetQuickFilterCache()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,function(){r.gridOptionsService.get("includeHiddenColumnsInQuickFilter")||r.resetQuickFilterCache()}),this.addManagedPropertyListener("quickFilterText",function(o){return r.setQuickFilter(o.currentValue)}),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",function(){return r.onIncludeHiddenColumnsInQuickFilterChanged()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.parser=this.gridOptionsService.get("quickFilterParser"),this.matcher=this.gridOptionsService.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],function(){return r.setQuickFilterParserAndMatcher()})},t.prototype.isQuickFilterPresent=function(){return this.quickFilter!==null},t.prototype.doesRowPassQuickFilter=function(r){var o=this,i=this.gridOptionsService.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(i,r):this.quickFilterParts.every(function(s){return i?o.doesRowPassQuickFilterCache(r,s):o.doesRowPassQuickFilterNoCache(r,s)})},t.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode(function(r){return r.quickFilterAggregateText=null})},t.prototype.setQuickFilterParts=function(){var r=this,o=r.quickFilter,i=r.parser;o?this.quickFilterParts=i?i(o):o.split(" "):this.quickFilterParts=null},t.prototype.parseQuickFilter=function(r){return P(r)?this.gridOptionsService.isRowModelType("clientSide")?r.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},t.prototype.setQuickFilter=function(r){if(r!=null&&typeof r!="string"){console.warn("AG Grid - Grid option quickFilterText only supports string inputs, received: ".concat(typeof r));return}var o=this.parseQuickFilter(r);this.quickFilter!==o&&(this.quickFilter=o,this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},t.prototype.setQuickFilterParserAndMatcher=function(){var r=this.gridOptionsService.get("quickFilterParser"),o=this.gridOptionsService.get("quickFilterMatcher"),i=r!==this.parser||o!==this.matcher;this.parser=r,this.matcher=o,i&&(this.setQuickFilterParts(),this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED}))},t.prototype.onIncludeHiddenColumnsInQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:e.EVENT_QUICK_FILTER_CHANGED})},t.prototype.doesRowPassQuickFilterNoCache=function(r,o){var i=this,s=this.columnModel.getAllColumnsForQuickFilter();return s.some(function(a){var l=i.getQuickFilterTextForColumn(a,r);return P(l)&&l.indexOf(o)>=0})},t.prototype.doesRowPassQuickFilterCache=function(r,o){return this.checkGenerateQuickFilterAggregateText(r),r.quickFilterAggregateText.indexOf(o)>=0},t.prototype.doesRowPassQuickFilterMatcher=function(r,o){var i;r?(this.checkGenerateQuickFilterAggregateText(o),i=o.quickFilterAggregateText):i=this.getQuickFilterAggregateText(o);var s=this,a=s.quickFilterParts,l=s.matcher;return l(a,i)},t.prototype.checkGenerateQuickFilterAggregateText=function(r){r.quickFilterAggregateText||(r.quickFilterAggregateText=this.getQuickFilterAggregateText(r))},t.prototype.getQuickFilterTextForColumn=function(r,o){var i=this.valueService.getValue(r,o,!0),s=r.getColDef();if(s.getQuickFilterText){var a=this.gridOptionsService.addGridCommonParams({value:i,node:o,data:o.data,column:r,colDef:s});i=s.getQuickFilterText(a)}return P(i)?i.toString().toUpperCase():null},t.prototype.getQuickFilterAggregateText=function(r){var o=this,i=[],s=this.columnModel.getAllColumnsForQuickFilter();return s.forEach(function(a){var l=o.getQuickFilterTextForColumn(a,r);P(l)&&i.push(l)}),i.join(e.QUICK_FILTER_SEPARATOR)};var e;return t.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",t.QUICK_FILTER_SEPARATOR=` +`,ao([v("valueService")],t.prototype,"valueService",void 0),ao([v("columnModel")],t.prototype,"columnModel",void 0),ao([v("rowModel")],t.prototype,"rowModel",void 0),ao([F],t.prototype,"postConstruct",null),t=e=ao([x("quickFilterService")],t),t}(D),cf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yt=function(){return yt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pf=function(n){cf(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.allColumnListeners=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.processingFilterChange=!1,e.filterModelUpdateQueue=[],e.columnFilterModelUpdateQueue=[],e.advancedFilterModelUpdateQueue=[],e}return t.prototype.init=function(){var e=this,r,o,i;this.addManagedListener(this.eventService,g.EVENT_GRID_COLUMNS_CHANGED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VALUE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,function(){return e.updateAdvancedFilterColumns()}),this.addManagedListener(this.eventService,g.EVENT_ROW_DATA_UPDATED,function(){return e.onNewRowsLoaded("rowDataUpdated")}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],function(){e.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",function(){e.updateAggFiltering(),e.onFilterChanged()}),this.addManagedPropertyListener("advancedFilterModel",function(s){return e.setAdvancedFilterModel(s.currentValue)}),this.addManagedListener(this.eventService,g.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,function(s){var a=s.enabled;return e.onAdvancedFilterEnabledChanged(a)}),this.addManagedListener(this.eventService,g.EVENT_DATA_TYPES_INFERRED,function(){return e.processFilterModelUpdateQueue()}),this.addManagedListener(this.quickFilterService,Jl.EVENT_QUICK_FILTER_CHANGED,function(){return e.onFilterChanged({source:"quickFilter"})}),this.initialFilterModel=yt({},(i=(o=(r=this.gridOptionsService.get("initialState"))===null||r===void 0?void 0:r.filter)===null||o===void 0?void 0:o.filterModel)!==null&&i!==void 0?i:{})},t.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return typeof e=="function"?e({}):!1},t.prototype.doesExternalFilterPass=function(e){var r=this.gridOptionsService.get("doesExternalFilterPass");return typeof r=="function"?r(e):!1},t.prototype.setFilterModel=function(e,r){var o=this;if(r===void 0&&(r="api"),this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}if(this.dataTypeService.isPendingInference()){this.filterModelUpdateQueue.push({model:e,source:r});return}var i=[],s=this.getFilterModel();if(e){var a=Yn(Object.keys(e));this.allColumnFilters.forEach(function(l,u){var c=e[u];i.push(o.setModelOnFilterWrapper(l.filterPromise,c)),a.delete(u)}),a.forEach(function(l){var u=o.columnModel.getPrimaryColumn(l)||o.columnModel.getGridColumn(l);if(!u){console.warn("AG Grid: setFilterModel() - no column found for colId: "+l);return}if(!u.isFilterAllowed()){console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+l);return}var c=o.getOrCreateFilterWrapper(u,"NO_UI");if(!c){console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+l);return}i.push(o.setModelOnFilterWrapper(c.filterPromise,e[l]))})}else this.allColumnFilters.forEach(function(l){i.push(o.setModelOnFilterWrapper(l.filterPromise,null))});je.all(i).then(function(){var l=o.getFilterModel(),u=[];o.allColumnFilters.forEach(function(c,p){var d=s?s[p]:null,h=l?l[p]:null;j.jsonEquals(d,h)||u.push(c.column)}),u.length>0&&o.onFilterChanged({columns:u,source:r})})},t.prototype.setModelOnFilterWrapper=function(e,r){return new je(function(o){e.then(function(i){typeof i.setModel!="function"&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(i.setModel(r)||je.resolve()).then(function(){return o()})})})},t.prototype.getFilterModel=function(){var e=this,r={};return this.allColumnFilters.forEach(function(o,i){var s=e.getModelFromFilterWrapper(o);P(s)&&(r[i]=s)}),r},t.prototype.getModelFromFilterWrapper=function(e){var r,o=e.filterPromise,i=o.resolveNow(null,function(s){return s});return i==null?(r=this.initialFilterModel[e.column.getColId()])!==null&&r!==void 0?r:null:typeof i.getModel!="function"?(console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel"),null):i.getModel()},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.isChildFilterPresent=function(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},t.prototype.isAdvancedFilterPresent=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()},t.prototype.onAdvancedFilterEnabledChanged=function(e){var r=this,o;e?this.allColumnFilters.size&&(this.allColumnFilters.forEach(function(i){return r.disposeFilterWrapper(i,"advancedFilterEnabled")}),this.onFilterChanged({source:"advancedFilter"})):!((o=this.advancedFilterService)===null||o===void 0)&&o.isFilterPresent()&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))},t.prototype.isAdvancedFilterEnabled=function(){var e;return(e=this.advancedFilterService)===null||e===void 0?void 0:e.isEnabled()},t.prototype.isAdvancedFilterHeaderActive=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()},t.prototype.doAggregateFiltersPass=function(e,r){return this.doColumnFiltersPass(e,r,!0)},t.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var r=function(s){return s?s.isFilterActive?s.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1):!1},o=!!this.gridOptionsService.getGroupAggFiltering(),i=function(s){var a=!s.isPrimary();if(a)return!0;var l=!e.columnModel.isPivotActive(),u=s.isValueActive();return!u||!l?!1:e.columnModel.isPivotMode()?!0:o};this.allColumnFilters.forEach(function(s){if(s.filterPromise.resolveNow(!1,r)){var a=s.filterPromise.resolveNow(null,function(l){return l});i(s.column)?e.activeAggregateFilters.push(a):e.activeColumnFilters.push(a)}})},t.prototype.updateFilterFlagInColumns=function(e,r){this.allColumnFilters.forEach(function(o){var i=o.filterPromise.resolveNow(!1,function(s){return s.isFilterActive()});o.column.setFilterActive(i,e,r)})},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},t.prototype.doColumnFiltersPass=function(e,r,o){for(var i=e.data,s=e.aggData,a=o?this.activeAggregateFilters:this.activeColumnFilters,l=o?s:i,u=0;u0?this.onFilterChanged({columns:r,source:"api"}):this.updateDependantFilters()},t.prototype.updateDependantFilters=function(){var e=this,r=this.columnModel.getGroupAutoColumns();r==null||r.forEach(function(o){o.getColDef().filter==="agGroupColumnFilter"&&e.getOrCreateFilterWrapper(o,"NO_UI")})},t.prototype.isFilterAllowed=function(e){var r,o;if(this.isAdvancedFilterEnabled())return!1;var i=e.isFilterAllowed();if(!i)return!1;var s=this.allColumnFilters.get(e.getColId());return(o=(r=s==null?void 0:s.filterPromise)===null||r===void 0?void 0:r.resolveNow(!0,function(a){return typeof(a==null?void 0:a.isFilterAllowed)=="function"?a==null?void 0:a.isFilterAllowed():!0}))!==null&&o!==void 0?o:!0},t.prototype.getFloatingFilterCompDetails=function(e,r){var o=this,i=function(p){var d=o.getFilterComponent(e,"NO_UI");d!=null&&d.then(function(h){p(dr(h))})},s=e.getColDef(),a=yt(yt({},this.createFilterParams(e,s)),{filterChangedCallback:function(){return i(function(p){return o.filterChangedCallbackFactory(p,e)()})}}),l=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(s,hs,a),u=this.userComponentFactory.getDefaultFloatingFilterType(s,function(){return o.getDefaultFloatingFilter(e)});u==null&&(u="agReadOnlyFloatingFilter");var c={column:e,filterParams:l,currentParentModel:function(){return o.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:i,showParentFilter:r,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(s,c,u)},t.prototype.getCurrentFloatingFilterParentModel=function(e){var r=this.getFilterComponent(e,"NO_UI",!1);return r?r.resolveNow(null,function(o){return o&&o.getModel()}):null},t.prototype.destroyFilter=function(e,r){r===void 0&&(r="api");var o=e.getColId(),i=this.allColumnFilters.get(o);this.disposeColumnListener(o),delete this.initialFilterModel[o],i&&(this.disposeFilterWrapper(i,r),this.onFilterChanged({columns:[e],source:"api"}))},t.prototype.disposeColumnListener=function(e){var r=this.allColumnListeners.get(e);r&&(this.allColumnListeners.delete(e),r())},t.prototype.disposeFilterWrapper=function(e,r){var o=this;e.filterPromise.then(function(i){o.getContext().destroyBean(i),e.column.setFilterActive(!1,"filterDestroyed"),o.allColumnFilters.delete(e.column.getColId());var s={type:g.EVENT_FILTER_DESTROYED,source:r,column:e.column};o.eventService.dispatchEvent(s)})},t.prototype.filterModifiedCallbackFactory=function(e,r){var o=this;return function(){var i={type:g.EVENT_FILTER_MODIFIED,column:r,filterInstance:e};o.eventService.dispatchEvent(i)}},t.prototype.filterChangedCallbackFactory=function(e,r){var o=this;return function(i){var s,a=(s=i==null?void 0:i.source)!==null&&s!==void 0?s:"api",l={filter:e,additionalEventAttributes:i,columns:[r],source:a};o.callOnFilterChangedOutsideRenderCycle(l)}},t.prototype.checkDestroyFilter=function(e){var r=this,o=this.allColumnFilters.get(e);if(o){var i=o.column,s=(i.isFilterAllowed()?this.createFilterInstance(i):{compDetails:null}).compDetails;if(this.areFilterCompsDifferent(o.compDetails,s)){this.destroyFilter(i,"paramsUpdated");return}var a=i.getColDef().filterParams;if(!o.filterPromise){this.destroyFilter(i,"paramsUpdated");return}o.filterPromise.then(function(l){var u=l!=null&&l.refresh?l.refresh(yt(yt(yt({},r.createFilterParams(i,i.getColDef())),{filterModifiedCallback:r.filterModifiedCallbackFactory(l,i),filterChangedCallback:r.filterChangedCallbackFactory(l,i),doesRowPassOtherFilter:function(c){return r.doesRowPassOtherFilters(l,c)}}),a)):!0;u===!1&&r.destroyFilter(i,"paramsUpdated")})}},t.prototype.setColumnFilterWrapper=function(e,r){var o=this,i=e.getColId();this.allColumnFilters.set(i,r),this.allColumnListeners.set(i,this.addManagedListener(e,Z.EVENT_COL_DEF_CHANGED,function(){return o.checkDestroyFilter(i)}))},t.prototype.areFilterCompsDifferent=function(e,r){if(!r||!e)return!0;var o=e.componentClass,i=r.componentClass,s=o===i||(o==null?void 0:o.render)&&(i==null?void 0:i.render)&&o.render===i.render;return!s},t.prototype.getAdvancedFilterModel=function(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null},t.prototype.setAdvancedFilterModel=function(e){if(this.isAdvancedFilterEnabled()){if(this.dataTypeService.isPendingInference()){this.advancedFilterModelUpdateQueue.push(e);return}this.advancedFilterService.setModel(e??null),this.onFilterChanged({source:"advancedFilter"})}},t.prototype.showAdvancedFilterBuilder=function(e){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(e,!0)},t.prototype.updateAdvancedFilterColumns=function(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})},t.prototype.hasFloatingFilters=function(){if(this.isAdvancedFilterEnabled())return!1;var e=this.columnModel.getAllGridColumns();return e.some(function(r){return r.getColDef().floatingFilter})},t.prototype.getFilterInstance=function(e,r){if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}var o=this.getFilterInstanceImpl(e,function(s){if(r){var a=dr(s);r(a)}}),i=dr(o);return i},t.prototype.getColumnFilterInstance=function(e){var r=this;return new Promise(function(o){r.getFilterInstance(e,function(i){o(i)})})},t.prototype.getFilterInstanceImpl=function(e,r){var o=this.columnModel.getPrimaryColumn(e);if(o){var i=this.getFilterComponent(o,"NO_UI"),s=i&&i.resolveNow(null,function(a){return a});return s?setTimeout(r,0,s):i&&i.then(function(a){r(a)}),s}},t.prototype.warnAdvancedFilters=function(){V("Column Filter API methods have been disabled as Advanced Filters are enabled.")},t.prototype.setupAdvancedFilterHeaderComp=function(e){var r;(r=this.advancedFilterService)===null||r===void 0||r.getCtrl().setupHeaderComp(e)},t.prototype.getHeaderRowCount=function(){return this.isAdvancedFilterHeaderActive()?1:0},t.prototype.getHeaderHeight=function(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0},t.prototype.processFilterModelUpdateQueue=function(){var e=this;this.filterModelUpdateQueue.forEach(function(r){var o=r.model,i=r.source;return e.setFilterModel(o,i)}),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(function(r){var o=r.key,i=r.model,s=r.resolve;e.setColumnFilterModel(o,i).then(function(){return s()})}),this.columnFilterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue.forEach(function(r){return e.setAdvancedFilterModel(r)}),this.advancedFilterModelUpdateQueue=[]},t.prototype.getColumnFilterModel=function(e){var r=this.getFilterWrapper(e);return r?this.getModelFromFilterWrapper(r):null},t.prototype.setColumnFilterModel=function(e,r){if(this.isAdvancedFilterEnabled())return this.warnAdvancedFilters(),Promise.resolve();if(this.dataTypeService.isPendingInference()){var o=function(){},i=new Promise(function(u){o=u});return this.columnFilterModelUpdateQueue.push({key:e,model:r,resolve:o}),i}var s=this.columnModel.getPrimaryColumn(e),a=s?this.getOrCreateFilterWrapper(s,"NO_UI"):null,l=function(u){return new Promise(function(c){u.then(function(p){return c(p)})})};return a?l(this.setModelOnFilterWrapper(a.filterPromise,r)):Promise.resolve()},t.prototype.getFilterWrapper=function(e){var r,o=this.columnModel.getPrimaryColumn(e);return o&&(r=this.cachedFilter(o))!==null&&r!==void 0?r:null},t.prototype.destroy=function(){var e=this;n.prototype.destroy.call(this),this.allColumnFilters.forEach(function(r){return e.disposeFilterWrapper(r,"gridDestroyed")}),this.allColumnListeners.clear()},Ct([v("valueService")],t.prototype,"valueService",void 0),Ct([v("columnModel")],t.prototype,"columnModel",void 0),Ct([v("rowModel")],t.prototype,"rowModel",void 0),Ct([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ct([v("rowRenderer")],t.prototype,"rowRenderer",void 0),Ct([v("dataTypeService")],t.prototype,"dataTypeService",void 0),Ct([v("quickFilterService")],t.prototype,"quickFilterService",void 0),Ct([Y("advancedFilterService")],t.prototype,"advancedFilterService",void 0),Ct([F],t.prototype,"init",null),t=Ct([x("filterManager")],t),t}(D),df=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gs=function(n){df(t,n);function t(e,r){var o=n.call(this,e)||this;return o.ctrl=r,o}return t.prototype.getCtrl=function(){return this.ctrl},t}(k),hf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),lo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ff=function(n){hf(t,n);function t(e){return n.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o={addOrRemoveCssClass:function(i,s){return e.addOrRemoveCssClass(i,s)},addOrRemoveBodyCssClass:function(i,s){return e.eFloatingFilterBody.classList.toggle(i,s)},setButtonWrapperDisplayed:function(i){return $(e.eButtonWrapper,i)},setCompDetails:function(i){return e.setCompDetails(i)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(i){return r.style.width=i},setMenuIcon:function(i){return e.eButtonShowMainFilter.appendChild(i)}};this.ctrl.setComp(o,r,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var r=this;if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(o){return r.afterCompCreated(o)})},t.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},t.prototype.afterCompCreated=function(e){if(e){if(!this.isAlive()){this.destroyBean(e);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()}},t.TEMPLATE=`
-
`,lo([L("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),lo([L("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),lo([L("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),lo([F],t.prototype,"postConstruct",null),lo([Se],t.prototype,"destroyFloatingFilterComp",null),t}(gs),ff=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vf=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pe;(function(n){n.AUTO_HEIGHT="ag-layout-auto-height",n.NORMAL="ag-layout-normal",n.PRINT="ag-layout-print"})(pe||(pe={}));var ys=function(n){ff(t,n);function t(e){var r=n.call(this)||this;return r.view=e,r}return t.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),r={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},o=r.autoHeight?pe.AUTO_HEIGHT:r.print?pe.PRINT:pe.NORMAL;this.view.updateLayoutClasses(o,r)},t.prototype.getDomLayout=function(){var e,r=(e=this.gridOptionsService.get("domLayout"))!==null&&e!==void 0?e:"normal",o=["normal","print","autoHeight"];return o.indexOf(r)===-1?(V("".concat(r," is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")),"normal"):r},vf([F],t.prototype,"postConstruct",null),t}(D),gf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ci=function(){return ci=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ce;(function(n){n[n.Vertical=0]="Vertical",n[n.Horizontal=1]="Horizontal"})(Ce||(Ce={}));var we;(function(n){n[n.Container=0]="Container",n[n.FakeContainer=1]="FakeContainer"})(we||(we={}));var yf=function(n){gf(t,n);function t(e){var r=n.call(this)||this;return r.lastScrollSource=[null,null],r.scrollLeft=-1,r.nextScrollTop=-1,r.scrollTop=-1,r.lastOffsetHeight=-1,r.lastScrollTop=-1,r.eBodyViewport=e,r.resetLastHScrollDebounced=He(function(){return r.lastScrollSource[Ce.Horizontal]=null},500),r.resetLastVScrollDebounced=He(function(){return r.lastScrollSource[Ce.Vertical]=null},500),r}return t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.get("enableRtl"),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(r){e.centerRowContainerCtrl=r.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),r=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),e.onScrollCallback(this.onFakeHScroll.bind(this));var o=this.gridOptionsService.get("debounceVerticalScrollbar"),i=o?He(this.onVScroll.bind(this),100):this.onVScroll.bind(this),s=o?He(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i),r.onScrollCallback(s)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){var r=this.centerRowContainerCtrl==null;if(!r){e===void 0&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var o=this.enableRtl?e:-e,i=this.ctrlsService.getTopCenterRowContainerCtrl(),s=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),a=this.ctrlsService.getBottomCenterRowContainerCtrl(),l=this.ctrlsService.getFakeHScrollComp(),u=this.ctrlsService.getHeaderRowContainerCtrl();u.setHorizontalScroll(-o),a.setContainerTranslateX(o),i.setContainerTranslateX(o),s.setContainerTranslateX(o);var c=this.centerRowContainerCtrl.getViewportElement(),p=this.lastScrollSource[Ce.Horizontal]===we.Container;e=Math.abs(e),p?l.setScrollPosition(e):Zr(c,e,this.enableRtl)}},t.prototype.isControllingScroll=function(e,r){return this.lastScrollSource[r]==null?(this.lastScrollSource[r]=e,!0):this.lastScrollSource[r]===e},t.prototype.onFakeHScroll=function(){this.isControllingScroll(we.FakeContainer,Ce.Horizontal)&&this.onHScrollCommon(we.FakeContainer)},t.prototype.onHScroll=function(){this.isControllingScroll(we.Container,Ce.Horizontal)&&this.onHScrollCommon(we.Container)},t.prototype.onHScrollCommon=function(e){var r=this.centerRowContainerCtrl.getViewportElement(),o=r.scrollLeft;if(!this.shouldBlockScrollUpdate(Ce.Horizontal,o,!0)){var i;e===we.Container?i=Jr(r,this.enableRtl):i=this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(i)),this.resetLastHScrollDebounced()}},t.prototype.onFakeVScroll=function(){this.isControllingScroll(we.FakeContainer,Ce.Vertical)&&this.onVScrollCommon(we.FakeContainer)},t.prototype.onVScroll=function(){this.isControllingScroll(we.Container,Ce.Vertical)&&this.onVScrollCommon(we.Container)},t.prototype.onVScrollCommon=function(e){var r;e===we.Container?r=this.eBodyViewport.scrollTop:r=this.ctrlsService.getFakeVScrollComp().getScrollPosition(),!this.shouldBlockScrollUpdate(Ce.Vertical,r,!0)&&(this.animationFrameService.setScrollTop(r),this.nextScrollTop=r,e===we.Container?this.ctrlsService.getFakeVScrollComp().setScrollPosition(r):this.eBodyViewport.scrollTop=r,this.gridOptionsService.get("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},t.prototype.doHorizontalScroll=function(e){var r=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===e&&e===r||(this.scrollLeft=e,this.fireScrollEvent(Ce.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},t.prototype.fireScrollEvent=function(e){var r=this,o={type:g.EVENT_BODY_SCROLL,direction:e===Ce.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var i=ci(ci({},o),{type:g.EVENT_BODY_SCROLL_END});r.eventService.dispatchEvent(i)},100)},t.prototype.shouldBlockScrollUpdate=function(e,r,o){return o===void 0&&(o=!1),o&&!Dt()?!1:e===Ce.Vertical?this.shouldBlockVerticalScroll(r):this.shouldBlockHorizontalScroll(r)},t.prototype.shouldBlockVerticalScroll=function(e){var r=qr(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;return e<0||e+r>o},t.prototype.shouldBlockHorizontalScroll=function(e){var r=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Xr()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+r>o},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(Ce.Vertical)},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(we.Container)},t.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e,r){r===void 0&&(r=!1);var o=0,i=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!r&&this.shouldBlockScrollUpdate(Ce.Horizontal,e)&&(this.enableRtl&&Xr()?e=e>0?0:i:e=Math.min(Math.max(e,o),i)),Zr(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){this.lastScrollTop=this.eBodyViewport.scrollTop,this.lastOffsetHeight=this.eBodyViewport.offsetHeight;var e={top:this.lastScrollTop,bottom:this.lastScrollTop+this.lastOffsetHeight};return e},t.prototype.getApproximateVScollPosition=function(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var r=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(r+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-r},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,r){r===void 0&&(r=null);for(var o=this.rowModel.getRowCount(),i=-1,s=0;s=0&&this.ensureIndexVisible(i,r)},t.prototype.ensureIndexVisible=function(e,r){var o=this;if(!this.gridOptionsService.isDomLayout("print")){var i=this.paginationProxy.getRowCount();if(typeof e!="number"||e<0||e>=i){console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);return}var s=this.gridOptionsService.get("pagination"),a=s&&!this.gridOptionsService.get("suppressPaginationPanel");this.getFrameworkOverrides().wrapIncoming(function(){a||o.paginationProxy.goToPageWithIndex(e);var l=o.ctrlsService.getGridBodyCtrl(),u=l.getStickyTopHeight(),c=o.paginationProxy.getRow(e),p;do{var d=c.rowTop,h=c.rowHeight,f=o.paginationProxy.getPixelOffset(),y=c.rowTop-f,m=y+c.rowHeight,C=o.getVScrollPosition(),w=o.heightScaler.getDivStretchOffset(),E=C.top+w,S=C.bottom+w,R=S-E,O=o.heightScaler.getScrollPositionForPixel(y),b=o.heightScaler.getScrollPositionForPixel(m-R),A=Math.min((O+b)/2,y),M=E+u>y,N=Sl:ia;return{columnBeforeStart:c,columnAfterEnd:p}},t.prototype.getColumnBounds=function(e){var r=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),i=e.getActualWidth(),s=e.getLeft(),a=r?-1:1,l=r?o-s:s,u=l+i*a,c=l+i/2*a;return{colLeft:l,colMiddle:c,colRight:u}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),r=this.centerRowContainerCtrl.getCenterViewportScrollLeft(),o=r,i=e+r;return{start:o,end:i,width:e}},Wt([v("ctrlsService")],t.prototype,"ctrlsService",void 0),Wt([v("animationFrameService")],t.prototype,"animationFrameService",void 0),Wt([v("paginationProxy")],t.prototype,"paginationProxy",void 0),Wt([v("rowModel")],t.prototype,"rowModel",void 0),Wt([v("rowContainerHeightService")],t.prototype,"heightScaler",void 0),Wt([v("rowRenderer")],t.prototype,"rowRenderer",void 0),Wt([v("columnModel")],t.prototype,"columnModel",void 0),Wt([F],t.prototype,"postConstruct",null),t}(D),mf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ms=function(){return ms=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Cf=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Sf=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;rthis.paginationProxy.getCurrentPageHeight(),s=-1,a;i||(s=this.rowModel.getRowIndexAtPixel(o),a=this.rowModel.getRow(s));var l;switch(r.vDirection){case Fr.Down:l="down";break;case Fr.Up:l="up";break;default:l=null;break}var u=this.gridOptionsService.addGridCommonParams({type:e,event:r.event,node:r.dragItem.rowNode,nodes:r.dragItem.rowNodes,overIndex:s,overNode:a,y:o,vDirection:l});return u},t.prototype.dispatchGridEvent=function(e,r){var o=this.draggingToRowDragEvent(e,r);this.eventService.dispatchEvent(o)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(g.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(g.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&(this.gridOptionsService.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(r){r.setDragging(!1)})},tt([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),tt([v("rowModel")],t.prototype,"rowModel",void 0),tt([v("paginationProxy")],t.prototype,"paginationProxy",void 0),tt([v("columnModel")],t.prototype,"columnModel",void 0),tt([v("focusService")],t.prototype,"focusService",void 0),tt([v("sortController")],t.prototype,"sortController",void 0),tt([v("filterManager")],t.prototype,"filterManager",void 0),tt([v("selectionService")],t.prototype,"selectionService",void 0),tt([v("mouseEventService")],t.prototype,"mouseEventService",void 0),tt([v("ctrlsService")],t.prototype,"ctrlsService",void 0),tt([Y("rangeService")],t.prototype,"rangeService",void 0),tt([F],t.prototype,"postConstruct",null),t}(D),Ef=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Pe=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Mr;(function(n){n.ANIMATION_ON="ag-row-animation",n.ANIMATION_OFF="ag-row-no-animation"})(Mr||(Mr={}));var eu="ag-force-vertical-scroll",_f="ag-selectable",Rf="ag-column-moving",Of=function(n){Ef(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,r,o,i,s,a){var l=this;this.comp=e,this.eGridBody=r,this.eBodyViewport=o,this.eTop=i,this.eBottom=s,this.eStickyTop=a,this.setCellTextSelection(this.gridOptionsService.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",function(u){return l.setCellTextSelection(u.currentValue)}),this.createManagedBean(new ys(this.comp)),this.bodyScrollFeature=this.createManagedBean(new yf(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,o,s,a]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(i),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,g.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var r=this;e.forEach(function(o){r.addManagedListener(o,"focusin",function(i){var s=i.target,a=or(s,"ag-root",o);o.classList.toggle("ag-has-focus",!a)}),r.addManagedListener(o,"focusout",function(i){var s=i.target,a=i.relatedTarget,l=o.contains(a),u=or(a,"ag-root",o),c=or(s,"ag-root",o);c||(!l||u)&&o.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(Rf,e)},t.prototype.setCellTextSelection=function(e){e===void 0&&(e=!1),this.comp.setCellSelectableCss(_f,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this,r=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(r),this.setStickyTopWidth(r);var o=r&&this.gridOptionsService.getScrollbarWidth()||0,i=Ln()?16:0,s="calc(100% + ".concat(o+i,"px)");this.animationFrameService.requestAnimationFrame(function(){return e.comp.setBodyViewportWidth(s)})},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e.length)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.get("stopEditingWhenCellsLoseFocus")){var r=function(i){var s=i.relatedTarget;if(Yo(s)===null){e.rowRenderer.stopEditing();return}var a=o.some(function(u){return u.contains(s)})&&e.mouseEventService.isElementInThisGrid(s);if(!a){var l=e.popupService;a=l.getActivePopups().some(function(u){return u.contains(s)})||l.isElementWithinCustomPopup(s)}a||e.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach(function(i){return e.addManagedListener(i,"focusout",r)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),r=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=r===-1?-1:e+r;this.comp.setRowCount(o)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var r=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(r)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.get("alwaysShowVerticalScroll"),r=e?eu:null,o=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(r,e),e||o&&ol(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,r=function(){var o=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),i=o?Mr.ANIMATION_ON:Mr.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(i,o)};r(),this.addManagedListener(this.eventService,g.EVENT_HEIGHT_SCALE_CHANGED,r),this.addManagedPropertyListener("animateRows",r)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},t.prototype.addFullWidthContainerWheelListener=function(){var e=this,r=this.eBodyViewport.querySelector(".ag-full-width-container"),o=this.eBodyViewport.querySelector(".ag-center-cols-viewport");r&&o&&this.addManagedListener(r,"wheel",function(i){return e.onFullWidthContainerWheel(i,o)})},t.prototype.onFullWidthContainerWheel=function(e,r){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||!this.mouseEventService.isEventFromThisGrid(e)||(e.preventDefault(),r.scrollBy({left:e.deltaX}))},t.prototype.onBodyViewportContextMenu=function(e,r,o){if(!(!e&&!o)){if(this.gridOptionsService.get("preventDefaultOnContextMenu")){var i=e||o;i.preventDefault()}var s=(e||r).target;(s===this.eBodyViewport||s===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&this.menuService.showContextMenu({mouseEvent:e,touchEvent:o,value:null,anchorToElement:this.eGridBody})}},t.prototype.mockContextMenuForIPad=function(e){if(Dt()){var r=new me(this.eBodyViewport),o=function(i){e(void 0,i.touchStart,i.touchEvent)};this.addManagedListener(r,me.EVENT_LONG_TAP,o),this.addDestroyFunc(function(){return r.destroy()})}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var r=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(r+e),this.eBodyViewport.scrollTop-r},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new wf(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,r=e.getPinnedTopTotalHeight(),o=e.getPinnedBottomTotalHeight();this.comp.setTopHeight(r),this.comp.setBottomHeight(o),this.comp.setTopDisplay(r?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){e===void 0&&(e=0),this.comp.setStickyTopHeight("".concat(e,"px")),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(!e)this.comp.setStickyTopWidth("100%");else{var r=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - ".concat(r,"px)"))}},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl(),r=e.getHeaderHeight()+this.filterManager.getHeaderHeight(),o=this.pinnedRowModel.getPinnedTopTotalHeight(),i=0;r>0&&(i+=r+1),o>0&&(i+=o+1),this.comp.setStickyTopTop("".concat(i,"px"))},t.prototype.sizeColumnsToFit=function(e,r){var o=this,i=this.isVerticalScrollShowing(),s=i?this.gridOptionsService.getScrollbarWidth():0,a=ir(this.eGridBody),l=a-s;if(l>0){this.columnModel.sizeColumnsToFit(l,"sizeColumnsToFit",!1,e);return}r===void 0?window.setTimeout(function(){o.sizeColumnsToFit(e,100)},0):r===100?window.setTimeout(function(){o.sizeColumnsToFit(e,500)},100):r===500?window.setTimeout(function(){o.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Pe([v("animationFrameService")],t.prototype,"animationFrameService",void 0),Pe([v("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Pe([v("ctrlsService")],t.prototype,"ctrlsService",void 0),Pe([v("columnModel")],t.prototype,"columnModel",void 0),Pe([v("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Pe([v("menuService")],t.prototype,"menuService",void 0),Pe([v("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Pe([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Pe([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Pe([v("rowRenderer")],t.prototype,"rowRenderer",void 0),Pe([v("popupService")],t.prototype,"popupService",void 0),Pe([v("mouseEventService")],t.prototype,"mouseEventService",void 0),Pe([v("rowModel")],t.prototype,"rowModel",void 0),Pe([v("filterManager")],t.prototype,"filterManager",void 0),t}(D),pi;(function(n){n[n.FILL=0]="FILL",n[n.RANGE=1]="RANGE"})(pi||(pi={}));var Ir;(function(n){n[n.VALUE=0]="VALUE",n[n.DIMENSION=1]="DIMENSION"})(Ir||(Ir={}));var uo="ag-cell-range-selected",Tf="ag-cell-range-chart",Pf="ag-cell-range-single-cell",Df="ag-cell-range-chart-category",Af="ag-cell-range-handle",bf="ag-cell-range-top",Ff="ag-cell-range-right",Lf="ag-cell-range-bottom",Mf="ag-cell-range-left",If=function(){function n(t,e){this.beans=t,this.cellCtrl=e}return n.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(uo,this.rangeCount!==0),this.cellComp.addOrRemoveCssClass("".concat(uo,"-1"),this.rangeCount===1),this.cellComp.addOrRemoveCssClass("".concat(uo,"-2"),this.rangeCount===2),this.cellComp.addOrRemoveCssClass("".concat(uo,"-3"),this.rangeCount===3),this.cellComp.addOrRemoveCssClass("".concat(uo,"-4"),this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(Tf,this.hasChartRange),Rr(this.eGui,this.rangeCount>0?!0:void 0),this.cellComp.addOrRemoveCssClass(Pf,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},n.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),r=!e&&t.top,o=!e&&t.right,i=!e&&t.bottom,s=!e&&t.left;this.cellComp.addOrRemoveCssClass(bf,r),this.cellComp.addOrRemoveCssClass(Ff,o),this.cellComp.addOrRemoveCssClass(Lf,i),this.cellComp.addOrRemoveCssClass(Mf,s)},n.prototype.isSingleCell=function(){var t=this.beans.rangeService;return this.rangeCount===1&&t&&!t.isMoreThanOneCell()},n.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every(function(r){return ot([Ir.DIMENSION,Ir.VALUE],r.type)})},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.getRangeBorders=function(){var t=this,e=this.beans.gridOptionsService.get("enableRtl"),r=!1,o=!1,i=!1,s=!1,a=this.cellCtrl.getCellPosition().column,l=this.beans,u=l.rangeService,c=l.columnModel,p,d;e?(p=c.getDisplayedColAfter(a),d=c.getDisplayedColBefore(a)):(p=c.getDisplayedColBefore(a),d=c.getDisplayedColAfter(a));var h=u.getCellRanges().filter(function(w){return u.isCellInSpecificRange(t.cellCtrl.getCellPosition(),w)});p||(s=!0),d||(o=!0);for(var f=0;f=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tu=function(){function n(){}return n.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},B([v("resizeObserverService")],n.prototype,"resizeObserverService",void 0),B([v("paginationProxy")],n.prototype,"paginationProxy",void 0),B([v("context")],n.prototype,"context",void 0),B([v("columnApi")],n.prototype,"columnApi",void 0),B([v("gridApi")],n.prototype,"gridApi",void 0),B([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),B([v("expressionService")],n.prototype,"expressionService",void 0),B([v("environment")],n.prototype,"environment",void 0),B([v("rowRenderer")],n.prototype,"rowRenderer",void 0),B([v("templateService")],n.prototype,"templateService",void 0),B([v("valueService")],n.prototype,"valueService",void 0),B([v("eventService")],n.prototype,"eventService",void 0),B([v("columnModel")],n.prototype,"columnModel",void 0),B([v("headerNavigationService")],n.prototype,"headerNavigationService",void 0),B([v("navigationService")],n.prototype,"navigationService",void 0),B([v("columnAnimationService")],n.prototype,"columnAnimationService",void 0),B([Y("rangeService")],n.prototype,"rangeService",void 0),B([v("focusService")],n.prototype,"focusService",void 0),B([v("popupService")],n.prototype,"popupService",void 0),B([v("valueFormatterService")],n.prototype,"valueFormatterService",void 0),B([v("stylingService")],n.prototype,"stylingService",void 0),B([v("columnHoverService")],n.prototype,"columnHoverService",void 0),B([v("userComponentFactory")],n.prototype,"userComponentFactory",void 0),B([v("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),B([v("animationFrameService")],n.prototype,"animationFrameService",void 0),B([v("dragService")],n.prototype,"dragService",void 0),B([v("dragAndDropService")],n.prototype,"dragAndDropService",void 0),B([v("sortController")],n.prototype,"sortController",void 0),B([v("filterManager")],n.prototype,"filterManager",void 0),B([v("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),B([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),B([v("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),B([v("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),B([v("selectionService")],n.prototype,"selectionService",void 0),B([Y("selectionHandleFactory")],n.prototype,"selectionHandleFactory",void 0),B([v("rowCssClassCalculator")],n.prototype,"rowCssClassCalculator",void 0),B([v("rowModel")],n.prototype,"rowModel",void 0),B([v("ctrlsService")],n.prototype,"ctrlsService",void 0),B([v("ctrlsFactory")],n.prototype,"ctrlsFactory",void 0),B([v("agStackComponentsRegistry")],n.prototype,"agStackComponentsRegistry",void 0),B([v("valueCache")],n.prototype,"valueCache",void 0),B([v("rowNodeEventThrottle")],n.prototype,"rowNodeEventThrottle",void 0),B([v("localeService")],n.prototype,"localeService",void 0),B([v("valueParserService")],n.prototype,"valueParserService",void 0),B([v("syncService")],n.prototype,"syncService",void 0),B([v("ariaAnnouncementService")],n.prototype,"ariaAnnouncementService",void 0),B([F],n.prototype,"postConstruct",null),n=B([x("beans")],n),n}(),Bf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),kf=function(n){Bf(t,n);function t(e,r,o){var i=n.call(this)||this;return i.cellCtrl=e,i.beans=r,i.column=o,i}return t.prototype.onMouseEvent=function(e,r){if(!nt(r))switch(e){case"click":this.onCellClicked(r);break;case"mousedown":case"touchstart":this.onMouseDown(r);break;case"dblclick":this.onCellDoubleClicked(r);break;case"mouseout":this.onMouseOut(r);break;case"mouseover":this.onMouseOver(r);break}},t.prototype.onCellClicked=function(e){var r=this;if(this.isDoubleClickOnIPad()){this.onCellDoubleClicked(e),e.preventDefault();return}var o=this.beans,i=o.eventService,s=o.rangeService,a=o.gridOptionsService,l=e.ctrlKey||e.metaKey;s&&l&&s.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&s.intersectLastRange(!0);var u=this.cellCtrl.createEvent(e,g.EVENT_CELL_CLICKED);i.dispatchEvent(u);var c=this.column.getColDef();c.onCellClicked&&window.setTimeout(function(){r.beans.frameworkOverrides.wrapOutgoing(function(){c.onCellClicked(u)})},0);var p=(a.get("singleClickEdit")||c.singleClickEdit)&&!a.get("suppressClickEdit");p&&!(e.shiftKey&&(s==null?void 0:s.getCellRanges().length)!=0)&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Dt()||an("dblclick"))return!1;var e=new Date().getTime(),r=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,r},t.prototype.onCellDoubleClicked=function(e){var r=this,o=this.column.getColDef(),i=this.cellCtrl.createEvent(e,g.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(i),typeof o.onCellDoubleClicked=="function"&&window.setTimeout(function(){r.beans.frameworkOverrides.wrapOutgoing(function(){o.onCellDoubleClicked(i)})},0);var s=!this.beans.gridOptionsService.get("singleClickEdit")&&!this.beans.gridOptionsService.get("suppressClickEdit");s&&this.cellCtrl.startRowOrCellEdit(null,e)},t.prototype.onMouseDown=function(e){var r=e.ctrlKey,o=e.metaKey,i=e.shiftKey,s=e.target,a=this,l=a.cellCtrl,u=a.beans,c=u.eventService,p=u.rangeService,d=u.focusService;if(!this.isRightClickInExistingRange(e)){var h=p&&p.getCellRanges().length!=0;if(!i||!h){var f=ht()&&!l.isEditing()&&!Vn(s);l.focusCell(f)}if(i&&h&&!d.isCellFocused(l.getCellPosition())){e.preventDefault();var y=d.getFocusedCell();if(y){var m=y.column,C=y.rowIndex,w=y.rowPinned,E=u.rowRenderer.getRowByPosition({rowIndex:C,rowPinned:w}),S=E==null?void 0:E.getCellCtrl(m);S!=null&&S.isEditing()&&S.stopEditing(),d.setFocusedCell({column:m,rowIndex:C,rowPinned:w,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(s)){if(p){var R=this.cellCtrl.getCellPosition();if(i)p.extendLatestRangeToCell(R);else{var O=r||o;p.setRangeToCell(R,O)}}c.dispatchEvent(this.cellCtrl.createEvent(e,g.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var r=this.beans.rangeService;if(r){var o=r.isCellInAnyRange(this.cellCtrl.getCellPosition()),i=e.button===2||e.ctrlKey&&this.beans.gridOptionsService.get("allowContextMenuWithControlKey");if(o&&i)return!0}return!1},t.prototype.containsWidget=function(e){return or(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var r=this.cellCtrl.createEvent(e,g.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(r),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var r=this.cellCtrl.createEvent(e,g.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(r),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var r=this.cellCtrl.getGui(),o=r.contains(e.target),i=r.contains(e.relatedTarget);return o&&i},t.prototype.destroy=function(){},t}(tu),Wf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),jf=function(n){Wf(t,n);function t(e,r,o,i,s){var a=n.call(this)||this;return a.cellCtrl=e,a.beans=r,a.rowNode=i,a.rowCtrl=s,a}return t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var r=e.key;switch(r){case _.ENTER:this.onEnterKeyDown(e);break;case _.F2:this.onF2KeyDown(e);break;case _.ESCAPE:this.onEscapeKeyDown(e);break;case _.TAB:this.onTabKeyDown(e);break;case _.BACKSPACE:case _.DELETE:this.onBackspaceOrDeleteKeyDown(r,e);break;case _.DOWN:case _.UP:case _.RIGHT:case _.LEFT:this.onNavigationKeyDown(e,r);break}},t.prototype.onNavigationKeyDown=function(e,r){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,r,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var r=this.beans.rangeService.extendLatestRangeInDirection(e);r&&this.beans.navigationService.ensureCellVisible(r)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyDown=function(e,r){var o=this,i=o.cellCtrl,s=o.beans,a=o.rowNode,l=s.gridOptionsService,u=s.rangeService,c=s.eventService;i.isEditing()||(c.dispatchEvent({type:g.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),cl(e,l.get("enableCellEditingOnBackspace"))?u&&l.get("enableRangeSelection")?u.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):i.isCellEditable()&&a.setDataValue(i.getColumn(),null,"cellClear"):i.startRowOrCellEdit(e,r),c.dispatchEvent({type:g.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gridOptionsService.get("enterNavigatesVertically")){var r=e.shiftKey?_.UP:_.DOWN;this.beans.navigationService.navigateToNextCell(null,r,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(_.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(_.F2,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.processCharacter=function(e){var r=e.target,o=r!==this.eGui;if(!(o||this.cellCtrl.isEditing())){var i=e.key;i===" "?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(i,e),e.preventDefault())}},t.prototype.onSpaceKeyDown=function(e){var r=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&r.isRowSelection()){var o=this.rowNode.isSelected(),i=!o;if(i||!r.get("suppressRowDeselection")){var s=this.beans.gridOptionsService.get("groupSelectsFiltered"),a=this.rowNode.setSelectedParams({newValue:i,rangeSelect:e.shiftKey,groupSelectsFiltered:s,event:e,source:"spaceKey"});o===void 0&&a===0&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:s,event:e,source:"spaceKey"})}}e.preventDefault()},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(D),Uf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zf=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Kf=function(n){Uf(t,n);function t(e,r,o){var i=n.call(this,'
')||this;return i.rowNode=e,i.column=r,i.eCell=o,i}return t.prototype.postConstruct=function(){var e=this.getGui();e.appendChild(ne("rowDrag",this.gridOptionsService,null)),this.addGuiEventListener("mousedown",function(r){r.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var r=this,o=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);var i=function(){try{var a=JSON.stringify(r.rowNode.data);e.dataTransfer.setData("application/json",a),e.dataTransfer.setData("text/plain",a)}catch{}};if(o){var s=this.gridOptionsService.addGridCommonParams({rowNode:this.rowNode,dragEvent:e});o(s)}else i()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},zf([F],t.prototype,"postConstruct",null),t}(k),$f=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Yf=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Cs=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Ss=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;return d?i:o}return o},t.prototype.getDomOrder=function(){var e=this.gridOptionsService.get("ensureDomOrder");return e||this.gridOptionsService.isDomLayout("print")},t.prototype.listenOnDomOrder=function(e){var r=this,o=function(){e.rowComp.setDomOrder(r.getDomOrder())};this.addManagedPropertyListener("domLayout",o),this.addManagedPropertyListener("ensureDomOrder",o)},t.prototype.setAnimateFlags=function(e){if(!(this.isSticky()||!e)){var r=P(this.rowNode.oldRowTop),o=this.beans.columnModel.isPinningLeft(),i=this.beans.columnModel.isPinningRight();if(r){if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows")){this.slideInAnimation.fullWidth=!0;return}this.slideInAnimation.center=!0,this.slideInAnimation.left=o,this.slideInAnimation.right=i}else{if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows")){this.fadeInAnimation.fullWidth=!0;return}this.fadeInAnimation.center=!0,this.fadeInAnimation.left=o,this.fadeInAnimation.right=i}}},t.prototype.isEditing=function(){return this.editingRow},t.prototype.isFullWidth=function(){return this.rowType!==De.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,r=function(u,c){return u?u.rowComp.refreshFullWidth(function(){return e.createFullWidthParams(u.element,c)}):!0},o=r(this.fullWidthGui,null),i=r(this.centerGui,null),s=r(this.leftGui,"left"),a=r(this.rightGui,"right"),l=o&&i&&s&&a;return l},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,U.EVENT_HEIGHT_CHANGED,function(){return e.onRowHeightChanged()}),this.addManagedListener(this.rowNode,U.EVENT_ROW_SELECTED,function(){return e.onRowSelected()}),this.addManagedListener(this.rowNode,U.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,U.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,this.postProcessCss.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DRAGGING_CHANGED,this.postProcessRowDragging.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var r=this.beans.eventService;this.addManagedListener(r,g.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(r,g.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(r,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(r,g.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(r,g.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(r,g.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusChanged.bind(this)),this.addManagedListener(r,g.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(r,g.EVENT_MODEL_UPDATED,this.refreshFirstAndLastRowStyles.bind(this)),this.addManagedListener(r,g.EVENT_COLUMN_MOVED,this.updateColumnLists.bind(this)),this.addDestroyFunc(function(){e.destroyBeans(e.rowDragComps,e.beans.context)}),this.addManagedPropertyListeners(["rowDragEntireRow"],function(){var o=e.gridOptionsService.get("rowDragEntireRow");if(o){e.allRowGuis.forEach(function(i){e.addRowDraggerToRow(i)});return}e.destroyBeans(e.rowDragComps,e.beans.context),e.rowDragComps=[]}),this.addListenersForCellComps()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,U.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(r){return r.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,function(r){e.getAllCellCtrls().forEach(function(o){return o.onCellChanged(r)})})},t.prototype.onRowNodeDataChanged=function(e){var r=this,o=this.isFullWidth()!==!!this.rowNode.isFullWidthCell();if(o){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){var i=this.refreshFullWidth();i||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(function(s){return s.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.allRowGuis.forEach(function(s){r.setRowCompRowId(s.rowComp),r.updateRowBusinessKey(),r.setRowCompRowBusinessKey(s.rowComp)}),this.onRowSelected(),this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(r){var o=e===et.Above,i=e===et.Below;r.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),r.rowComp.addOrRemoveCssClass("ag-row-highlight-below",i)})},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),r=this.rowNode.expanded==!0;this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",e),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&r),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!r),Pt(o.element,e&&r)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},t.prototype.getRowPosition=function(){return{rowPinned:ct(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var r=this.allRowGuis.find(function(u){return u.element.contains(e.target)}),o=r?r.element:null,i=o===e.target;if(i){var s=this.rowNode,a=this.beans.focusService.getFocusedCell(),l={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:a&&a.column};this.beans.navigationService.navigateToNextCell(e,e.key,l,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!(e.defaultPrevented||nt(e))){var r=this.allRowGuis.find(function(a){return a.element.contains(e.target)}),o=r?r.element:null,i=o===e.target,s=null;i||(s=this.beans.focusService.findNextFocusableElement(o,!1,e.shiftKey)),(this.isFullWidth()&&i||!s)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var r,o=this.rowNode,i=e?this.isFullWidth()&&e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned:!1,s=this.fullWidthGui?this.fullWidthGui.element:(r=this.centerGui)===null||r===void 0?void 0:r.element;s&&(s.classList.toggle("ag-full-width-focus",i),i&&s.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,r){var o={list:[],map:{}};return e.list.forEach(function(i){i!==r&&(o.list.push(i),o.map[i.getInstanceId()]=i)}),o},t.prototype.onMouseEvent=function(e,r){switch(e){case"dblclick":this.onRowDblClick(r);break;case"click":this.onRowClick(r);break;case"touchstart":case"mousedown":this.onRowMouseDown(r);break}},t.prototype.createRowEvent=function(e,r){return this.gridOptionsService.addGridCommonParams({type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,event:r})},t.prototype.createRowEventWithSource=function(e,r){var o=this.createRowEvent(e,r);return o.source=this,o},t.prototype.onRowDblClick=function(e){if(!nt(e)){var r=this.createRowEventWithSource(g.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(r)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=or(e.target,"ag-row-drag",3),!!this.isFullWidth()){var r=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:r.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:r.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){var r=nt(e)||this.lastMouseDownOnDragger;if(!r){var o=this.createRowEventWithSource(g.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(o);var i=e.ctrlKey||e.metaKey,s=e.shiftKey,a=this.gridOptionsService.get("groupSelectsChildren");if(!(a&&this.rowNode.group||this.isRowSelectionBlocked()||this.gridOptionsService.get("suppressRowClickSelection"))){var l=this.gridOptionsService.get("rowMultiSelectWithClick"),u=!this.gridOptionsService.get("suppressRowDeselection"),c="rowClicked";if(this.rowNode.isSelected())l?this.rowNode.setSelectedParams({newValue:!1,event:e,source:c}):i?u&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:c}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!s,rangeSelect:s,event:e,source:c});else{var p=l?!1:!i;this.rowNode.setSelectedParams({newValue:!0,clearSelection:p,rangeSelect:s,event:e,source:c})}}}},t.prototype.isRowSelectionBlocked=function(){return!this.rowNode.selectable||!!this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()},t.prototype.setupDetailRowAutoHeight=function(e){var r=this;if(this.rowType===De.FullWidthDetail&&this.gridOptionsService.get("detailRowAutoHeight")){var o=function(){var s=e.clientHeight;if(s!=null&&s>0){var a=function(){r.rowNode.setRowHeight(s),r.beans.clientSideRowModel?r.beans.clientSideRowModel.onRowHeightChanged():r.beans.serverSideRowModel&&r.beans.serverSideRowModel.onRowHeightChanged()};window.setTimeout(a,0)}},i=this.beans.resizeObserverService.observeResize(e,o);this.addDestroyFunc(i),o()}},t.prototype.createFullWidthParams=function(e,r){var o=this,i=this.gridOptionsService.addGridCommonParams({fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,eGridCell:e,eParentOfValue:e,pinned:r,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(s,a,l,u){return o.addFullWidthRowDragging(s,a,l,u)}});return i},t.prototype.addFullWidthRowDragging=function(e,r,o,i){if(o===void 0&&(o=""),!!this.isFullWidth()){var s=new ai(function(){return o},this.rowNode,void 0,e,r,i);this.createManagedBean(s,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var r="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass(r,!0),i.rowComp.addOrRemoveCssClass(o,!1)})}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),r=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==r&&(this.lastRowOnPage=r,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-last",r)}))},t.prototype.stopEditing=function(e){var r,o;if(e===void 0&&(e=!1),!this.stoppingRowEdit){var i=this.getAllCellCtrls(),s=this.editingRow;this.stoppingRowEdit=!0;var a=!1;try{for(var l=uv(i),u=l.next();!u.done;u=l.next()){var c=u.value,p=c.stopEditing(e);s&&!e&&!a&&p&&(a=!0)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}if(a){var d=this.createRowEvent(g.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(d)}s&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),r.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var r=e?this.createRowEvent(g.EVENT_ROW_EDITING_STARTED):this.createRowEvent(g.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(r)},t.prototype.startRowEditing=function(e,r,o){if(e===void 0&&(e=null),r===void 0&&(r=null),o===void 0&&(o=null),!this.editingRow){var i=this.getAllCellCtrls().reduce(function(s,a){var l=a===r;return l?a.startEditing(e,l,o):a.startEditing(null,l,o),s?!0:a.isEditing()},!1);i&&this.setEditingRow(!0)}},t.prototype.getAllCellCtrls=function(){if(this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0)return this.centerCellCtrls.list;var e=Ss(Ss(Ss([],Cs(this.centerCellCtrls.list),!1),Cs(this.leftCellCtrls.list),!1),Cs(this.rightCellCtrls.list),!1);return e},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,r=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);!r||!r.length||r.forEach(function(o){e.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass(o,!0)})})},t.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,function(r){e.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass(r,!0)})},function(r){e.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass(r,!1)})})},t.prototype.setStylesFromGridOptions=function(e,r){var o=this;e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(r,function(i){return i.rowComp.setUserStyles(o.rowStyles)})},t.prototype.getPinnedForContainer=function(e){var r=e===fe.LEFT?"left":e===fe.RIGHT?"right":null;return r},t.prototype.getInitialRowClasses=function(e){var r=this.getPinnedForContainer(e),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:r};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},t.prototype.processStylesFromGridOptions=function(){var e=this.gridOptionsService.get("rowStyle");if(e&&typeof e=="function"){console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");return}var r=this.gridOptionsService.getCallback("getRowStyle"),o;if(r){var i={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex};o=r(i)}return o||e?Object.assign({},e,o):this.emptyStyle},t.prototype.onRowSelected=function(e){var r=this,o=this.beans.gridOptionsService.getDocument(),i=!!this.rowNode.isSelected();this.forEachGui(e,function(s){s.rowComp.addOrRemoveCssClass("ag-row-selected",i),Rr(s.element,i);var a=s.element.contains(o.activeElement);a&&(s===r.centerGui||s===r.fullWidthGui)&&r.announceDescription()})},t.prototype.announceDescription=function(){if(!this.isRowSelectionBlocked()){var e=this.rowNode.isSelected();if(!(e&&this.beans.gridOptionsService.get("suppressRowDeselection"))){var r=this.beans.localeService.getLocaleTextFunc(),o=r(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to ".concat(e?"deselect":"select"," this row."));this.beans.ariaAnnouncementService.announceValue(o)}}},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.prototype.addHoverFunctionality=function(e){var r=this;this.active&&(this.addManagedListener(e,"mouseenter",function(){return r.rowNode.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return r.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,U.EVENT_MOUSE_ENTER,function(){!r.beans.dragService.isDragging()&&!r.gridOptionsService.get("suppressRowHoverHighlight")&&(e.classList.add("ag-row-hover"),r.rowNode.setHovered(!0))}),this.addManagedListener(this.rowNode,U.EVENT_MOUSE_LEAVE,function(){e.classList.remove("ag-row-hover"),r.rowNode.setHovered(!1)}))},t.prototype.roundRowTopToBounds=function(e){var r=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getApproximateVScollPosition(),o=this.applyPaginationOffset(r.top,!0)-100,i=this.applyPaginationOffset(r.bottom,!0)+100;return Math.min(Math.max(o,e),i)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.forEachGui=function(e,r){e?r(e):this.allRowGuis.forEach(r)},t.prototype.onRowHeightChanged=function(e){if(this.rowNode.rowHeight!=null){var r=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),i=this.gridOptionsService.isGetRowHeightFunction(),s=i?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,a=s?"".concat(Math.min(o,s)-2,"px"):void 0;this.forEachGui(e,function(l){l.element.style.height="".concat(r,"px"),a&&l.element.style.setProperty("--ag-line-height",a)})}},t.prototype.addEventListener=function(e,r){n.prototype.addEventListener.call(this,e,r)},t.prototype.removeEventListener=function(e,r){n.prototype.removeEventListener.call(this,e,r)},t.prototype.destroyFirstPass=function(e){if(e===void 0&&(e=!1),this.active=!1,!e&&this.gridOptionsService.isAnimateRows()&&!this.isSticky()){var r=this.rowNode.rowTop!=null;if(r){var o=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(o)}else this.allRowGuis.forEach(function(s){return s.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)})}this.rowNode.setHovered(!1);var i=this.createRowEvent(g.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(i),this.beans.eventService.dispatchEvent(i),n.prototype.destroy.call(this)},t.prototype.destroySecondPass=function(){this.allRowGuis.length=0,this.stopEditing();var e=function(r){return r.list.forEach(function(o){return o.destroy()}),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},t.prototype.setFocusedClasses=function(e){var r=this;this.forEachGui(e,function(o){o.rowComp.addOrRemoveCssClass("ag-row-focus",r.rowFocused),o.rowComp.addOrRemoveCssClass("ag-row-no-focus",!r.rowFocused)})},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,r){if(r===void 0&&(r=!1),this.rowNode.isRowPinned()||this.rowNode.sticky)return e;var o=this.beans.paginationProxy.getPixelOffset(),i=r?1:-1;return e+o*i},t.prototype.setRowTop=function(e){if(!this.printLayout&&P(e)){var r=this.applyPaginationOffset(e),o=this.rowNode.isRowPinned()||this.rowNode.sticky,i=o?r:this.beans.rowContainerHeightService.getRealPixelPosition(r),s="".concat(i,"px");this.setRowTopStyle(s)}},t.prototype.getInitialRowTop=function(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0},t.prototype.getInitialTransform=function(e){return this.suppressRowTransform?void 0:"translateY(".concat(this.getInitialRowTopShared(e),")")},t.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var r;if(this.isSticky())r=this.rowNode.stickyRowTop;else{var o=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,i=this.applyPaginationOffset(o);r=this.rowNode.isRowPinned()?i:this.beans.rowContainerHeightService.getRealPixelPosition(i)}return r+"px"},t.prototype.setRowTopStyle=function(e){var r=this;this.allRowGuis.forEach(function(o){return r.suppressRowTransform?o.rowComp.setTop(e):o.rowComp.setTransform("translateY(".concat(e,")"))})},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var r=null;return this.getAllCellCtrls().forEach(function(o){o.getColumn()==e&&(r=o)}),r!=null||this.getAllCellCtrls().forEach(function(o){o.getColSpanningList().indexOf(e)>=0&&(r=o)}),r},t.prototype.onRowIndexChanged=function(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.getRowIndex=function(){return this.rowNode.getRowIndexString()},t.prototype.updateRowIndexes=function(e){var r=this.rowNode.getRowIndexString(),o=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),i=this.rowNode.rowIndex%2===0,s=o+this.rowNode.rowIndex+1;this.forEachGui(e,function(a){a.rowComp.setRowIndex(r),a.rowComp.addOrRemoveCssClass("ag-row-even",i),a.rowComp.addOrRemoveCssClass("ag-row-odd",!i),yn(a.element,s)})},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(D),pv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ze=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dv=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},hv=function(n){pv(t,n);function t(e){var r=n.call(this)||this;return r.element=e,r}return t.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},t.prototype.addKeyboardListeners=function(){var e="keydown",r=this.processKeyboardEvent.bind(this,e);this.addManagedListener(this.element,e,r)},t.prototype.addMouseListeners=function(){var e=this,r=an("touchstart")?"touchstart":"mousedown",o=["dblclick","contextmenu","mouseover","mouseout","click",r];o.forEach(function(i){var s=e.processMouseEvent.bind(e,i);e.addManagedListener(e.element,i,s)})},t.prototype.processMouseEvent=function(e,r){if(!(!this.mouseEventService.isEventFromThisGrid(r)||nt(r))){var o=this.getRowForEvent(r),i=this.mouseEventService.getRenderedCellForEvent(r);e==="contextmenu"?this.handleContextMenuMouseEvent(r,void 0,o,i):(i&&i.onMouseEvent(e,r),o&&o.onMouseEvent(e,r))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Dt()){var r=new me(this.element),o=function(i){var s=e.getRowForEvent(i.touchEvent),a=e.mouseEventService.getRenderedCellForEvent(i.touchEvent);e.handleContextMenuMouseEvent(void 0,i.touchEvent,s,a)};this.addManagedListener(r,me.EVENT_LONG_TAP,o),this.addDestroyFunc(function(){return r.destroy()})}},t.prototype.getRowForEvent=function(e){for(var r=e.target;r;){var o=this.gridOptionsService.getDomData(r,fr.DOM_DATA_KEY_ROW_CTRL);if(o)return o;r=r.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,r,o,i){var s=o?o.getRowNode():null,a=i?i.getColumn():null,l=null;if(a){var u=e||r;i.dispatchCellContextMenuEvent(u??null),l=this.valueService.getValue(a,s)}var c=this.ctrlsService.getGridBodyCtrl(),p=i?i.getGui():c.getGridBodyElement();this.menuService.showContextMenu({mouseEvent:e,touchEvent:r,rowNode:s,column:a,value:l,anchorToElement:p})},t.prototype.getControlsForEventTarget=function(e){return{cellCtrl:ko(this.gridOptionsService,e,hr.DOM_DATA_KEY_CELL_CTRL),rowCtrl:ko(this.gridOptionsService,e,fr.DOM_DATA_KEY_ROW_CTRL)}},t.prototype.processKeyboardEvent=function(e,r){var o=this.getControlsForEventTarget(r.target),i=o.cellCtrl,s=o.rowCtrl;r.defaultPrevented||(i?this.processCellKeyboardEvent(i,e,r):s&&s.isFullWidth()&&this.processFullWidthRowKeyboardEvent(s,e,r))},t.prototype.processCellKeyboardEvent=function(e,r,o){var i=e.getRowNode(),s=e.getColumn(),a=e.isEditing(),l=!Jo(this.gridOptionsService,o,i,s,a);if(l&&r==="keydown"){var u=!a&&this.navigationService.handlePageScrollingKey(o);u||e.onKeyDown(o),this.doGridOperations(o,e.isEditing()),Xo(o)&&e.processCharacter(o)}if(r==="keydown"){var c=e.createEvent(o,g.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(c)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,r,o){var i=e.getRowNode(),s=this.focusService.getFocusedCell(),a=s&&s.column,l=!Jo(this.gridOptionsService,o,i,a,!1);if(l){var u=o.key;if(r==="keydown")switch(u){case _.PAGE_HOME:case _.PAGE_END:case _.PAGE_UP:case _.PAGE_DOWN:this.navigationService.handlePageScrollingKey(o,!0);break;case _.UP:case _.DOWN:e.onKeyboardNavigate(o);break;case _.TAB:e.onTabKeyDown(o);break}}if(r==="keydown"){var c=e.createRowEvent(g.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(c)}},t.prototype.doGridOperations=function(e,r){if(!(!e.ctrlKey&&!e.metaKey)&&!r&&this.mouseEventService.isEventFromThisGrid(e)){var o=ul(e);if(o===_.A)return this.onCtrlAndA(e);if(o===_.C)return this.onCtrlAndC(e);if(o===_.D)return this.onCtrlAndD(e);if(o===_.V)return this.onCtrlAndV(e);if(o===_.X)return this.onCtrlAndX(e);if(o===_.Y)return this.onCtrlAndY();if(o===_.Z)return this.onCtrlAndZ(e)}},t.prototype.onCtrlAndA=function(e){var r=this,o=r.pinnedRowModel,i=r.paginationProxy,s=r.rangeService;if(s&&i.isRowsToRender()){var a=dv([o.isEmpty("top"),o.isEmpty("bottom")],2),l=a[0],u=a[1],c=l?null:"top",p=void 0,d=void 0;u?(p=null,d=this.paginationProxy.getRowCount()-1):(p="bottom",d=o.getPinnedBottomRowData().length-1);var h=this.columnModel.getAllDisplayedColumns();if(Ge(h))return;s.setCellRange({rowStartIndex:0,rowStartPinned:c,rowEndIndex:d,rowEndPinned:p,columnStart:h[0],columnEnd:q(h)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(!(!this.clipboardService||this.gridOptionsService.get("enableCellTextSelection"))){var r=this.getControlsForEventTarget(e.target),o=r.cellCtrl,i=r.rowCtrl;o!=null&&o.isEditing()||i!=null&&i.isEditing()||(e.preventDefault(),this.clipboardService.copyToClipboard())}},t.prototype.onCtrlAndX=function(e){if(!(!this.clipboardService||this.gridOptionsService.get("enableCellTextSelection")||this.gridOptionsService.get("suppressCutToClipboard"))){var r=this.getControlsForEventTarget(e.target),o=r.cellCtrl,i=r.rowCtrl;o!=null&&o.isEditing()||i!=null&&i.isEditing()||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},t.prototype.onCtrlAndV=function(e){var r=this.getControlsForEventTarget(e.target),o=r.cellCtrl,i=r.rowCtrl;o!=null&&o.isEditing()||i!=null&&i.isEditing()||this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.get("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},ze([v("mouseEventService")],t.prototype,"mouseEventService",void 0),ze([v("valueService")],t.prototype,"valueService",void 0),ze([v("menuService")],t.prototype,"menuService",void 0),ze([v("ctrlsService")],t.prototype,"ctrlsService",void 0),ze([v("navigationService")],t.prototype,"navigationService",void 0),ze([v("focusService")],t.prototype,"focusService",void 0),ze([v("undoRedoService")],t.prototype,"undoRedoService",void 0),ze([v("columnModel")],t.prototype,"columnModel",void 0),ze([v("paginationProxy")],t.prototype,"paginationProxy",void 0),ze([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ze([Y("rangeService")],t.prototype,"rangeService",void 0),ze([Y("clipboardService")],t.prototype,"clipboardService",void 0),ze([F],t.prototype,"postConstruct",null),t}(D),fv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),co=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ru=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},ou=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0;){if(l0){var h=s[u++];d-=h.getActualWidth(),p.push(h)}}return p},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=this.gridBodyCtrl.getBodyViewportElement(),r=qr(e);if(this.bodyHeight!==r){this.bodyHeight=r;var o={type:g.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)},t.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),r=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,r)},co([v("ctrlsService")],t.prototype,"ctrlsService",void 0),co([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),co([v("columnModel")],t.prototype,"columnModel",void 0),co([v("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),co([F],t.prototype,"postConstruct",null),t}(D),gv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),iu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},yv=function(n){gv(t,n);function t(e){var r=n.call(this)||this;return r.element=e,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),r=e>0;$(this.element,r),Je(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},iu([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),iu([F],t.prototype,"postConstruct",null),t}(D),mv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),nu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Cv=function(n){mv(t,n);function t(e){var r=n.call(this)||this;return r.element=e,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),r=e>0;$(this.element,r),Je(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},nu([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),nu([F],t.prototype,"postConstruct",null),t}(D),Sv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),su=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},au=function(n){Sv(t,n);function t(e,r){var o=n.call(this)||this;return o.eContainer=e,o.eViewport=r,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),r=e!=null?"".concat(e,"px"):"";this.eContainer.style.height=r,this.eViewport&&(this.eViewport.style.height=r)},su([v("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),su([F],t.prototype,"postConstruct",null),t}(D),wv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ws=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ev=function(n){wv(t,n);function t(e){var r=n.call(this)||this;return r.eContainer=e,r}return t.prototype.postConstruct=function(){var e=this;if(!H(this.rangeService)){this.params={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)},this.addManagedPropertyListener("enableRangeSelection",function(o){var i=o.currentValue;if(i){e.enableFeature();return}e.disableFeature()}),this.addDestroyFunc(function(){return e.disableFeature()});var r=this.gridOptionsService.get("enableRangeSelection");r&&this.enableFeature()}},t.prototype.enableFeature=function(){this.dragService.addDragSource(this.params)},t.prototype.disableFeature=function(){this.dragService.removeDragSource(this.params)},ws([Y("rangeService")],t.prototype,"rangeService",void 0),ws([v("dragService")],t.prototype,"dragService",void 0),ws([F],t.prototype,"postConstruct",null),t}(D),_v=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Es=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_s=function(n){_v(t,n);function t(e,r){r===void 0&&(r=!1);var o=n.call(this)||this;return o.callback=e,o.addSpacer=r,o}return t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,g.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,g.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,r=this.gridOptionsService.isDomLayout("print"),o=e.getBodyContainerWidth(),i=e.getDisplayedColumnsLeftWidth(),s=e.getDisplayedColumnsRightWidth(),a;if(r)a=o+i+s;else if(a=o,this.addSpacer){var l=this.gridOptionsService.get("enableRtl")?i:s;l===0&&this.scrollVisibleService.isVerticalScrollShowing()&&(a+=this.gridOptionsService.getScrollbarWidth())}this.callback(a)},Es([v("columnModel")],t.prototype,"columnModel",void 0),Es([v("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Es([F],t.prototype,"postConstruct",null),t}(D),Rv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vi=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},gi=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0&&r()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,r,o){var i=this;this.comp=e,this.eContainer=r,this.eViewport=o,this.createManagedBean(new hv(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var s=[T.TOP_CENTER,T.TOP_LEFT,T.TOP_RIGHT],a=[T.STICKY_TOP_CENTER,T.STICKY_TOP_LEFT,T.STICKY_TOP_RIGHT],l=[T.BOTTOM_CENTER,T.BOTTOM_LEFT,T.BOTTOM_RIGHT],u=[T.CENTER,T.LEFT,T.RIGHT],c=gi(gi(gi(gi([],vi(s),!1),vi(l),!1),vi(u),!1),vi(a),!1),p=[T.CENTER,T.LEFT,T.RIGHT,T.FULL_WIDTH],d=[T.CENTER,T.TOP_CENTER,T.STICKY_TOP_CENTER,T.BOTTOM_CENTER],h=[T.LEFT,T.BOTTOM_LEFT,T.TOP_LEFT,T.STICKY_TOP_LEFT],f=[T.RIGHT,T.BOTTOM_RIGHT,T.TOP_RIGHT,T.STICKY_TOP_RIGHT];this.forContainers(h,function(){i.pinnedWidthFeature=i.createManagedBean(new yv(i.eContainer)),i.addManagedListener(i.eventService,g.EVENT_LEFT_PINNED_WIDTH_CHANGED,function(){return i.onPinnedWidthChanged()})}),this.forContainers(f,function(){i.pinnedWidthFeature=i.createManagedBean(new Cv(i.eContainer)),i.addManagedListener(i.eventService,g.EVENT_RIGHT_PINNED_WIDTH_CHANGED,function(){return i.onPinnedWidthChanged()})}),this.forContainers(p,function(){return i.createManagedBean(new au(i.eContainer,i.name===T.CENTER?o:void 0))}),this.forContainers(c,function(){return i.createManagedBean(new Ev(i.eContainer))}),this.forContainers(d,function(){return i.createManagedBean(new _s(function(y){return i.comp.setContainerWidth("".concat(y,"px"))}))}),this.addListeners(),this.registerWithCtrlsService()},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.onDisplayedColumnsChanged()}),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){return e.onDisplayedColumnsWidthChanged()}),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_ROWS_CHANGED,function(r){return e.onDisplayedRowsChanged(r.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this,r=[T.STICKY_TOP_CENTER,T.STICKY_TOP_LEFT,T.STICKY_TOP_RIGHT,T.STICKY_TOP_FULL_WIDTH],o=r.indexOf(this.name)>=0;if(o){this.comp.setDomOrder(!0);return}var i=function(){var s=e.gridOptionsService.get("ensureDomOrder"),a=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(s||a)};this.addManagedPropertyListener("domLayout",i),i()},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([T.TOP_CENTER,T.STICKY_TOP_CENTER,T.BOTTOM_CENTER],function(){var r=function(){return e.eViewport.scrollLeft=0};e.addManagedListener(e.eViewport,"scroll",r)})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([T.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([T.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.addPreventScrollWhileDragging=function(){var e=this,r=function(o){e.dragService.isDragging()&&o.cancelable&&o.preventDefault()};this.eContainer.addEventListener("touchmove",r,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",r)})},t.prototype.onHorizontalViewportChanged=function(e){e===void 0&&(e=!1);var r=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(r,o,e)},t.prototype.getCenterWidth=function(){return ir(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return Jr(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var r=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return r()})},t.prototype.isViewportInTheDOMTree=function(){return kn(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return Jr(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){var e=this.gridOptionsService.get("alwaysShowHorizontalScroll");return e||rl(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX(".concat(e,"px)")},t.prototype.getHScrollPosition=function(){var e={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return e},t.prototype.setCenterViewportScrollLeft=function(e){Zr(this.eViewport,e,this.enableRtl)},t.prototype.isContainerVisible=function(){var e=t.getPinned(this.name);return!e||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},t.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())},t.prototype.onDisplayedRowsChanged=function(e){var r=this;if(e===void 0&&(e=!1),!this.visible){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}var o=this.gridOptionsService.isDomLayout("print"),i=this.gridOptionsService.get("embedFullWidthRows"),s=i||o,a=this.getRowCtrls().filter(function(l){var u=l.isFullWidth(),c=r.isFullWithContainer?!s&&u:s||!u;return c});this.comp.setRowCtrls({rowCtrls:a,useFlushSync:e})},t.prototype.getRowCtrls=function(){switch(this.name){case T.TOP_CENTER:case T.TOP_LEFT:case T.TOP_RIGHT:case T.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case T.STICKY_TOP_CENTER:case T.STICKY_TOP_LEFT:case T.STICKY_TOP_RIGHT:case T.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case T.BOTTOM_CENTER:case T.BOTTOM_LEFT:case T.BOTTOM_RIGHT:case T.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},xr([v("dragService")],t.prototype,"dragService",void 0),xr([v("ctrlsService")],t.prototype,"ctrlsService",void 0),xr([v("columnModel")],t.prototype,"columnModel",void 0),xr([v("resizeObserverService")],t.prototype,"resizeObserverService",void 0),xr([v("rowRenderer")],t.prototype,"rowRenderer",void 0),xr([F],t.prototype,"postConstruct",null),t}(D),Dv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),At=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Av=`
+
`,lo([L("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),lo([L("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),lo([L("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),lo([F],t.prototype,"postConstruct",null),lo([we],t.prototype,"destroyFloatingFilterComp",null),t}(gs),vf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gf=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pe;(function(n){n.AUTO_HEIGHT="ag-layout-auto-height",n.NORMAL="ag-layout-normal",n.PRINT="ag-layout-print"})(pe||(pe={}));var ys=function(n){vf(t,n);function t(e){var r=n.call(this)||this;return r.view=e,r}return t.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),r={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},o=r.autoHeight?pe.AUTO_HEIGHT:r.print?pe.PRINT:pe.NORMAL;this.view.updateLayoutClasses(o,r)},t.prototype.getDomLayout=function(){var e,r=(e=this.gridOptionsService.get("domLayout"))!==null&&e!==void 0?e:"normal",o=["normal","print","autoHeight"];return o.indexOf(r)===-1?(V("".concat(r," is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")),"normal"):r},gf([F],t.prototype,"postConstruct",null),t}(D),yf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ci=function(){return ci=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},me;(function(n){n[n.Vertical=0]="Vertical",n[n.Horizontal=1]="Horizontal"})(me||(me={}));var Ee;(function(n){n[n.Container=0]="Container",n[n.FakeContainer=1]="FakeContainer"})(Ee||(Ee={}));var Cf=function(n){yf(t,n);function t(e){var r=n.call(this)||this;return r.lastScrollSource=[null,null],r.scrollLeft=-1,r.nextScrollTop=-1,r.scrollTop=-1,r.lastOffsetHeight=-1,r.lastScrollTop=-1,r.eBodyViewport=e,r.resetLastHScrollDebounced=He(function(){return r.lastScrollSource[me.Horizontal]=null},500),r.resetLastVScrollDebounced=He(function(){return r.lastScrollSource[me.Vertical]=null},500),r}return t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.get("enableRtl"),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(r){e.centerRowContainerCtrl=r.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),r=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),e.onScrollCallback(this.onFakeHScroll.bind(this));var o=this.gridOptionsService.get("debounceVerticalScrollbar"),i=o?He(this.onVScroll.bind(this),100):this.onVScroll.bind(this),s=o?He(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i),r.onScrollCallback(s)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){var r=this.centerRowContainerCtrl==null;if(!r){e===void 0&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var o=this.enableRtl?e:-e,i=this.ctrlsService.getTopCenterRowContainerCtrl(),s=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),a=this.ctrlsService.getBottomCenterRowContainerCtrl(),l=this.ctrlsService.getFakeHScrollComp(),u=this.ctrlsService.getHeaderRowContainerCtrl();u.setHorizontalScroll(-o),a.setContainerTranslateX(o),i.setContainerTranslateX(o),s.setContainerTranslateX(o);var c=this.centerRowContainerCtrl.getViewportElement(),p=this.lastScrollSource[me.Horizontal]===Ee.Container;e=Math.abs(e),p?l.setScrollPosition(e):Jr(c,e,this.enableRtl)}},t.prototype.isControllingScroll=function(e,r){return this.lastScrollSource[r]==null?(this.lastScrollSource[r]=e,!0):this.lastScrollSource[r]===e},t.prototype.onFakeHScroll=function(){this.isControllingScroll(Ee.FakeContainer,me.Horizontal)&&this.onHScrollCommon(Ee.FakeContainer)},t.prototype.onHScroll=function(){this.isControllingScroll(Ee.Container,me.Horizontal)&&this.onHScrollCommon(Ee.Container)},t.prototype.onHScrollCommon=function(e){var r=this.centerRowContainerCtrl.getViewportElement(),o=r.scrollLeft;if(!this.shouldBlockScrollUpdate(me.Horizontal,o,!0)){var i;e===Ee.Container?i=Zr(r,this.enableRtl):i=this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(i)),this.resetLastHScrollDebounced()}},t.prototype.onFakeVScroll=function(){this.isControllingScroll(Ee.FakeContainer,me.Vertical)&&this.onVScrollCommon(Ee.FakeContainer)},t.prototype.onVScroll=function(){this.isControllingScroll(Ee.Container,me.Vertical)&&this.onVScrollCommon(Ee.Container)},t.prototype.onVScrollCommon=function(e){var r;e===Ee.Container?r=this.eBodyViewport.scrollTop:r=this.ctrlsService.getFakeVScrollComp().getScrollPosition(),!this.shouldBlockScrollUpdate(me.Vertical,r,!0)&&(this.animationFrameService.setScrollTop(r),this.nextScrollTop=r,e===Ee.Container?this.ctrlsService.getFakeVScrollComp().setScrollPosition(r):this.eBodyViewport.scrollTop=r,this.gridOptionsService.get("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},t.prototype.doHorizontalScroll=function(e){var r=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===e&&e===r||(this.scrollLeft=e,this.fireScrollEvent(me.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},t.prototype.fireScrollEvent=function(e){var r=this,o={type:g.EVENT_BODY_SCROLL,direction:e===me.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var i=ci(ci({},o),{type:g.EVENT_BODY_SCROLL_END});r.eventService.dispatchEvent(i)},100)},t.prototype.shouldBlockScrollUpdate=function(e,r,o){return o===void 0&&(o=!1),o&&!Dt()?!1:e===me.Vertical?this.shouldBlockVerticalScroll(r):this.shouldBlockHorizontalScroll(r)},t.prototype.shouldBlockVerticalScroll=function(e){var r=qr(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;return e<0||e+r>o},t.prototype.shouldBlockHorizontalScroll=function(e){var r=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Xr()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+r>o},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(me.Vertical)},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(Ee.Container)},t.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e,r){r===void 0&&(r=!1);var o=0,i=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!r&&this.shouldBlockScrollUpdate(me.Horizontal,e)&&(this.enableRtl&&Xr()?e=e>0?0:i:e=Math.min(Math.max(e,o),i)),Jr(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){this.lastScrollTop=this.eBodyViewport.scrollTop,this.lastOffsetHeight=this.eBodyViewport.offsetHeight;var e={top:this.lastScrollTop,bottom:this.lastScrollTop+this.lastOffsetHeight};return e},t.prototype.getApproximateVScollPosition=function(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var r=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(r+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-r},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,r){r===void 0&&(r=null);for(var o=this.rowModel.getRowCount(),i=-1,s=0;s=0&&this.ensureIndexVisible(i,r)},t.prototype.ensureIndexVisible=function(e,r){var o=this;if(!this.gridOptionsService.isDomLayout("print")){var i=this.paginationProxy.getRowCount();if(typeof e!="number"||e<0||e>=i){console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);return}var s=this.gridOptionsService.get("pagination"),a=s&&!this.gridOptionsService.get("suppressPaginationPanel");this.getFrameworkOverrides().wrapIncoming(function(){a||o.paginationProxy.goToPageWithIndex(e);var l=o.ctrlsService.getGridBodyCtrl(),u=l.getStickyTopHeight(),c=o.paginationProxy.getRow(e),p;do{var d=c.rowTop,h=c.rowHeight,f=o.paginationProxy.getPixelOffset(),y=c.rowTop-f,C=y+c.rowHeight,m=o.getVScrollPosition(),w=o.heightScaler.getDivStretchOffset(),E=m.top+w,S=m.bottom+w,R=S-E,O=o.heightScaler.getScrollPositionForPixel(y),b=o.heightScaler.getScrollPositionForPixel(C-R),A=Math.min((O+b)/2,y),M=E+u>y,N=Sl:ia;return{columnBeforeStart:c,columnAfterEnd:p}},t.prototype.getColumnBounds=function(e){var r=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),i=e.getActualWidth(),s=e.getLeft(),a=r?-1:1,l=r?o-s:s,u=l+i*a,c=l+i/2*a;return{colLeft:l,colMiddle:c,colRight:u}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),r=this.centerRowContainerCtrl.getCenterViewportScrollLeft(),o=r,i=e+r;return{start:o,end:i,width:e}},Wt([v("ctrlsService")],t.prototype,"ctrlsService",void 0),Wt([v("animationFrameService")],t.prototype,"animationFrameService",void 0),Wt([v("paginationProxy")],t.prototype,"paginationProxy",void 0),Wt([v("rowModel")],t.prototype,"rowModel",void 0),Wt([v("rowContainerHeightService")],t.prototype,"heightScaler",void 0),Wt([v("rowRenderer")],t.prototype,"rowRenderer",void 0),Wt([v("columnModel")],t.prototype,"columnModel",void 0),Wt([F],t.prototype,"postConstruct",null),t}(D),mf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Cs=function(){return Cs=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Sf=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},wf=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;rthis.paginationProxy.getCurrentPageHeight(),s=-1,a;i||(s=this.rowModel.getRowIndexAtPixel(o),a=this.rowModel.getRow(s));var l;switch(r.vDirection){case Fr.Down:l="down";break;case Fr.Up:l="up";break;default:l=null;break}var u=this.gridOptionsService.addGridCommonParams({type:e,event:r.event,node:r.dragItem.rowNode,nodes:r.dragItem.rowNodes,overIndex:s,overNode:a,y:o,vDirection:l});return u},t.prototype.dispatchGridEvent=function(e,r){var o=this.draggingToRowDragEvent(e,r);this.eventService.dispatchEvent(o)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(g.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(g.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&(this.gridOptionsService.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(r){r.setDragging(!1)})},tt([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),tt([v("rowModel")],t.prototype,"rowModel",void 0),tt([v("paginationProxy")],t.prototype,"paginationProxy",void 0),tt([v("columnModel")],t.prototype,"columnModel",void 0),tt([v("focusService")],t.prototype,"focusService",void 0),tt([v("sortController")],t.prototype,"sortController",void 0),tt([v("filterManager")],t.prototype,"filterManager",void 0),tt([v("selectionService")],t.prototype,"selectionService",void 0),tt([v("mouseEventService")],t.prototype,"mouseEventService",void 0),tt([v("ctrlsService")],t.prototype,"ctrlsService",void 0),tt([Y("rangeService")],t.prototype,"rangeService",void 0),tt([F],t.prototype,"postConstruct",null),t}(D),_f=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),De=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Mr;(function(n){n.ANIMATION_ON="ag-row-animation",n.ANIMATION_OFF="ag-row-no-animation"})(Mr||(Mr={}));var eu="ag-force-vertical-scroll",Rf="ag-selectable",Of="ag-column-moving",Tf=function(n){_f(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,r,o,i,s,a){var l=this;this.comp=e,this.eGridBody=r,this.eBodyViewport=o,this.eTop=i,this.eBottom=s,this.eStickyTop=a,this.setCellTextSelection(this.gridOptionsService.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",function(u){return l.setCellTextSelection(u.currentValue)}),this.createManagedBean(new ys(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Cf(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,o,s,a]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(i),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,g.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var r=this;e.forEach(function(o){r.addManagedListener(o,"focusin",function(i){var s=i.target,a=or(s,"ag-root",o);o.classList.toggle("ag-has-focus",!a)}),r.addManagedListener(o,"focusout",function(i){var s=i.target,a=i.relatedTarget,l=o.contains(a),u=or(a,"ag-root",o),c=or(s,"ag-root",o);c||(!l||u)&&o.classList.remove("ag-has-focus")})})},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(Of,e)},t.prototype.setCellTextSelection=function(e){e===void 0&&(e=!1),this.comp.setCellSelectableCss(Rf,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this,r=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(r),this.setStickyTopWidth(r);var o=r&&this.gridOptionsService.getScrollbarWidth()||0,i=Ln()?16:0,s="calc(100% + ".concat(o+i,"px)");this.animationFrameService.requestAnimationFrame(function(){return e.comp.setBodyViewportWidth(s)})},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e.length)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.get("stopEditingWhenCellsLoseFocus")){var r=function(i){var s=i.relatedTarget;if(Yo(s)===null){e.rowRenderer.stopEditing();return}var a=o.some(function(u){return u.contains(s)})&&e.mouseEventService.isElementInThisGrid(s);if(!a){var l=e.popupService;a=l.getActivePopups().some(function(u){return u.contains(s)})||l.isElementWithinCustomPopup(s)}a||e.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach(function(i){return e.addManagedListener(i,"focusout",r)})}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),r=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=r===-1?-1:e+r;this.comp.setRowCount(o)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var r=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(r)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.get("alwaysShowVerticalScroll"),r=e?eu:null,o=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(r,e),e||o&&ol(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,r=function(){var o=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),i=o?Mr.ANIMATION_ON:Mr.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(i,o)};r(),this.addManagedListener(this.eventService,g.EVENT_HEIGHT_SCALE_CHANGED,r),this.addManagedPropertyListener("animateRows",r)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},t.prototype.addFullWidthContainerWheelListener=function(){var e=this,r=this.eBodyViewport.querySelector(".ag-full-width-container"),o=this.eBodyViewport.querySelector(".ag-center-cols-viewport");r&&o&&this.addManagedListener(r,"wheel",function(i){return e.onFullWidthContainerWheel(i,o)})},t.prototype.onFullWidthContainerWheel=function(e,r){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||!this.mouseEventService.isEventFromThisGrid(e)||(e.preventDefault(),r.scrollBy({left:e.deltaX}))},t.prototype.onBodyViewportContextMenu=function(e,r,o){if(!(!e&&!o)){if(this.gridOptionsService.get("preventDefaultOnContextMenu")){var i=e||o;i.preventDefault()}var s=(e||r).target;(s===this.eBodyViewport||s===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&this.menuService.showContextMenu({mouseEvent:e,touchEvent:o,value:null,anchorToElement:this.eGridBody})}},t.prototype.mockContextMenuForIPad=function(e){if(Dt()){var r=new Ce(this.eBodyViewport),o=function(i){e(void 0,i.touchStart,i.touchEvent)};this.addManagedListener(r,Ce.EVENT_LONG_TAP,o),this.addDestroyFunc(function(){return r.destroy()})}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var r=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(r+e),this.eBodyViewport.scrollTop-r},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Ef(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,r=e.getPinnedTopTotalHeight(),o=e.getPinnedBottomTotalHeight();this.comp.setTopHeight(r),this.comp.setBottomHeight(o),this.comp.setTopDisplay(r?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){e===void 0&&(e=0),this.comp.setStickyTopHeight("".concat(e,"px")),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(!e)this.comp.setStickyTopWidth("100%");else{var r=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - ".concat(r,"px)"))}},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl(),r=e.getHeaderHeight()+this.filterManager.getHeaderHeight(),o=this.pinnedRowModel.getPinnedTopTotalHeight(),i=0;r>0&&(i+=r+1),o>0&&(i+=o+1),this.comp.setStickyTopTop("".concat(i,"px"))},t.prototype.sizeColumnsToFit=function(e,r){var o=this,i=this.isVerticalScrollShowing(),s=i?this.gridOptionsService.getScrollbarWidth():0,a=ir(this.eGridBody),l=a-s;if(l>0){this.columnModel.sizeColumnsToFit(l,"sizeColumnsToFit",!1,e);return}r===void 0?window.setTimeout(function(){o.sizeColumnsToFit(e,100)},0):r===100?window.setTimeout(function(){o.sizeColumnsToFit(e,500)},100):r===500?window.setTimeout(function(){o.sizeColumnsToFit(e,-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},De([v("animationFrameService")],t.prototype,"animationFrameService",void 0),De([v("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),De([v("ctrlsService")],t.prototype,"ctrlsService",void 0),De([v("columnModel")],t.prototype,"columnModel",void 0),De([v("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),De([v("menuService")],t.prototype,"menuService",void 0),De([v("headerNavigationService")],t.prototype,"headerNavigationService",void 0),De([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),De([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),De([v("rowRenderer")],t.prototype,"rowRenderer",void 0),De([v("popupService")],t.prototype,"popupService",void 0),De([v("mouseEventService")],t.prototype,"mouseEventService",void 0),De([v("rowModel")],t.prototype,"rowModel",void 0),De([v("filterManager")],t.prototype,"filterManager",void 0),t}(D),pi;(function(n){n[n.FILL=0]="FILL",n[n.RANGE=1]="RANGE"})(pi||(pi={}));var Ir;(function(n){n[n.VALUE=0]="VALUE",n[n.DIMENSION=1]="DIMENSION"})(Ir||(Ir={}));var uo="ag-cell-range-selected",Pf="ag-cell-range-chart",Df="ag-cell-range-single-cell",Af="ag-cell-range-chart-category",bf="ag-cell-range-handle",Ff="ag-cell-range-top",Lf="ag-cell-range-right",Mf="ag-cell-range-bottom",If="ag-cell-range-left",xf=function(){function n(t,e){this.beans=t,this.cellCtrl=e}return n.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(uo,this.rangeCount!==0),this.cellComp.addOrRemoveCssClass("".concat(uo,"-1"),this.rangeCount===1),this.cellComp.addOrRemoveCssClass("".concat(uo,"-2"),this.rangeCount===2),this.cellComp.addOrRemoveCssClass("".concat(uo,"-3"),this.rangeCount===3),this.cellComp.addOrRemoveCssClass("".concat(uo,"-4"),this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(Pf,this.hasChartRange),Rr(this.eGui,this.rangeCount>0?!0:void 0),this.cellComp.addOrRemoveCssClass(Df,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},n.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),r=!e&&t.top,o=!e&&t.right,i=!e&&t.bottom,s=!e&&t.left;this.cellComp.addOrRemoveCssClass(Ff,r),this.cellComp.addOrRemoveCssClass(Lf,o),this.cellComp.addOrRemoveCssClass(Mf,i),this.cellComp.addOrRemoveCssClass(If,s)},n.prototype.isSingleCell=function(){var t=this.beans.rangeService;return this.rangeCount===1&&t&&!t.isMoreThanOneCell()},n.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every(function(r){return ot([Ir.DIMENSION,Ir.VALUE],r.type)})},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.getRangeBorders=function(){var t=this,e=this.beans.gridOptionsService.get("enableRtl"),r=!1,o=!1,i=!1,s=!1,a=this.cellCtrl.getCellPosition().column,l=this.beans,u=l.rangeService,c=l.columnModel,p,d;e?(p=c.getDisplayedColAfter(a),d=c.getDisplayedColBefore(a)):(p=c.getDisplayedColBefore(a),d=c.getDisplayedColAfter(a));var h=u.getCellRanges().filter(function(w){return u.isCellInSpecificRange(t.cellCtrl.getCellPosition(),w)});p||(s=!0),d||(o=!0);for(var f=0;f=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tu=function(){function n(){}return n.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},B([v("resizeObserverService")],n.prototype,"resizeObserverService",void 0),B([v("paginationProxy")],n.prototype,"paginationProxy",void 0),B([v("context")],n.prototype,"context",void 0),B([v("columnApi")],n.prototype,"columnApi",void 0),B([v("gridApi")],n.prototype,"gridApi",void 0),B([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),B([v("expressionService")],n.prototype,"expressionService",void 0),B([v("environment")],n.prototype,"environment",void 0),B([v("rowRenderer")],n.prototype,"rowRenderer",void 0),B([v("templateService")],n.prototype,"templateService",void 0),B([v("valueService")],n.prototype,"valueService",void 0),B([v("eventService")],n.prototype,"eventService",void 0),B([v("columnModel")],n.prototype,"columnModel",void 0),B([v("headerNavigationService")],n.prototype,"headerNavigationService",void 0),B([v("navigationService")],n.prototype,"navigationService",void 0),B([v("columnAnimationService")],n.prototype,"columnAnimationService",void 0),B([Y("rangeService")],n.prototype,"rangeService",void 0),B([v("focusService")],n.prototype,"focusService",void 0),B([v("popupService")],n.prototype,"popupService",void 0),B([v("valueFormatterService")],n.prototype,"valueFormatterService",void 0),B([v("stylingService")],n.prototype,"stylingService",void 0),B([v("columnHoverService")],n.prototype,"columnHoverService",void 0),B([v("userComponentFactory")],n.prototype,"userComponentFactory",void 0),B([v("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),B([v("animationFrameService")],n.prototype,"animationFrameService",void 0),B([v("dragService")],n.prototype,"dragService",void 0),B([v("dragAndDropService")],n.prototype,"dragAndDropService",void 0),B([v("sortController")],n.prototype,"sortController",void 0),B([v("filterManager")],n.prototype,"filterManager",void 0),B([v("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),B([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),B([v("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),B([v("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),B([v("selectionService")],n.prototype,"selectionService",void 0),B([Y("selectionHandleFactory")],n.prototype,"selectionHandleFactory",void 0),B([v("rowCssClassCalculator")],n.prototype,"rowCssClassCalculator",void 0),B([v("rowModel")],n.prototype,"rowModel",void 0),B([v("ctrlsService")],n.prototype,"ctrlsService",void 0),B([v("ctrlsFactory")],n.prototype,"ctrlsFactory",void 0),B([v("agStackComponentsRegistry")],n.prototype,"agStackComponentsRegistry",void 0),B([v("valueCache")],n.prototype,"valueCache",void 0),B([v("rowNodeEventThrottle")],n.prototype,"rowNodeEventThrottle",void 0),B([v("localeService")],n.prototype,"localeService",void 0),B([v("valueParserService")],n.prototype,"valueParserService",void 0),B([v("syncService")],n.prototype,"syncService",void 0),B([v("ariaAnnouncementService")],n.prototype,"ariaAnnouncementService",void 0),B([F],n.prototype,"postConstruct",null),n=B([x("beans")],n),n}(),kf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wf=function(n){kf(t,n);function t(e,r,o){var i=n.call(this)||this;return i.cellCtrl=e,i.beans=r,i.column=o,i}return t.prototype.onMouseEvent=function(e,r){if(!nt(r))switch(e){case"click":this.onCellClicked(r);break;case"mousedown":case"touchstart":this.onMouseDown(r);break;case"dblclick":this.onCellDoubleClicked(r);break;case"mouseout":this.onMouseOut(r);break;case"mouseover":this.onMouseOver(r);break}},t.prototype.onCellClicked=function(e){var r=this;if(this.isDoubleClickOnIPad()){this.onCellDoubleClicked(e),e.preventDefault();return}var o=this.beans,i=o.eventService,s=o.rangeService,a=o.gridOptionsService,l=e.ctrlKey||e.metaKey;s&&l&&s.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&s.intersectLastRange(!0);var u=this.cellCtrl.createEvent(e,g.EVENT_CELL_CLICKED);i.dispatchEvent(u);var c=this.column.getColDef();c.onCellClicked&&window.setTimeout(function(){r.beans.frameworkOverrides.wrapOutgoing(function(){c.onCellClicked(u)})},0);var p=(a.get("singleClickEdit")||c.singleClickEdit)&&!a.get("suppressClickEdit");p&&!(e.shiftKey&&(s==null?void 0:s.getCellRanges().length)!=0)&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Dt()||an("dblclick"))return!1;var e=new Date().getTime(),r=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,r},t.prototype.onCellDoubleClicked=function(e){var r=this,o=this.column.getColDef(),i=this.cellCtrl.createEvent(e,g.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(i),typeof o.onCellDoubleClicked=="function"&&window.setTimeout(function(){r.beans.frameworkOverrides.wrapOutgoing(function(){o.onCellDoubleClicked(i)})},0);var s=!this.beans.gridOptionsService.get("singleClickEdit")&&!this.beans.gridOptionsService.get("suppressClickEdit");s&&this.cellCtrl.startRowOrCellEdit(null,e)},t.prototype.onMouseDown=function(e){var r=e.ctrlKey,o=e.metaKey,i=e.shiftKey,s=e.target,a=this,l=a.cellCtrl,u=a.beans,c=u.eventService,p=u.rangeService,d=u.focusService;if(!this.isRightClickInExistingRange(e)){var h=p&&p.getCellRanges().length!=0;if(!i||!h){var f=ht()&&!l.isEditing()&&!Vn(s);l.focusCell(f)}if(i&&h&&!d.isCellFocused(l.getCellPosition())){e.preventDefault();var y=d.getFocusedCell();if(y){var C=y.column,m=y.rowIndex,w=y.rowPinned,E=u.rowRenderer.getRowByPosition({rowIndex:m,rowPinned:w}),S=E==null?void 0:E.getCellCtrl(C);S!=null&&S.isEditing()&&S.stopEditing(),d.setFocusedCell({column:C,rowIndex:m,rowPinned:w,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(s)){if(p){var R=this.cellCtrl.getCellPosition();if(i)p.extendLatestRangeToCell(R);else{var O=r||o;p.setRangeToCell(R,O)}}c.dispatchEvent(this.cellCtrl.createEvent(e,g.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var r=this.beans.rangeService;if(r){var o=r.isCellInAnyRange(this.cellCtrl.getCellPosition()),i=e.button===2||e.ctrlKey&&this.beans.gridOptionsService.get("allowContextMenuWithControlKey");if(o&&i)return!0}return!1},t.prototype.containsWidget=function(e){return or(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var r=this.cellCtrl.createEvent(e,g.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(r),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var r=this.cellCtrl.createEvent(e,g.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(r),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var r=this.cellCtrl.getGui(),o=r.contains(e.target),i=r.contains(e.relatedTarget);return o&&i},t.prototype.destroy=function(){},t}(tu),jf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Uf=function(n){jf(t,n);function t(e,r,o,i,s){var a=n.call(this)||this;return a.cellCtrl=e,a.beans=r,a.rowNode=i,a.rowCtrl=s,a}return t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var r=e.key;switch(r){case _.ENTER:this.onEnterKeyDown(e);break;case _.F2:this.onF2KeyDown(e);break;case _.ESCAPE:this.onEscapeKeyDown(e);break;case _.TAB:this.onTabKeyDown(e);break;case _.BACKSPACE:case _.DELETE:this.onBackspaceOrDeleteKeyDown(r,e);break;case _.DOWN:case _.UP:case _.RIGHT:case _.LEFT:this.onNavigationKeyDown(e,r);break}},t.prototype.onNavigationKeyDown=function(e,r){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,r,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var r=this.beans.rangeService.extendLatestRangeInDirection(e);r&&this.beans.navigationService.ensureCellVisible(r)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyDown=function(e,r){var o=this,i=o.cellCtrl,s=o.beans,a=o.rowNode,l=s.gridOptionsService,u=s.rangeService,c=s.eventService;i.isEditing()||(c.dispatchEvent({type:g.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),cl(e,l.get("enableCellEditingOnBackspace"))?u&&l.get("enableRangeSelection")?u.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):i.isCellEditable()&&a.setDataValue(i.getColumn(),null,"cellClear"):i.startRowOrCellEdit(e,r),c.dispatchEvent({type:g.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gridOptionsService.get("enterNavigatesVertically")){var r=e.shiftKey?_.UP:_.DOWN;this.beans.navigationService.navigateToNextCell(null,r,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(_.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(_.F2,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.processCharacter=function(e){var r=e.target,o=r!==this.eGui;if(!(o||this.cellCtrl.isEditing())){var i=e.key;i===" "?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(i,e),e.preventDefault())}},t.prototype.onSpaceKeyDown=function(e){var r=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&r.isRowSelection()){var o=this.rowNode.isSelected(),i=!o;if(i||!r.get("suppressRowDeselection")){var s=this.beans.gridOptionsService.get("groupSelectsFiltered"),a=this.rowNode.setSelectedParams({newValue:i,rangeSelect:e.shiftKey,groupSelectsFiltered:s,event:e,source:"spaceKey"});o===void 0&&a===0&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:s,event:e,source:"spaceKey"})}}e.preventDefault()},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t}(D),zf=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Kf=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$f=function(n){zf(t,n);function t(e,r,o){var i=n.call(this,'
')||this;return i.rowNode=e,i.column=r,i.eCell=o,i}return t.prototype.postConstruct=function(){var e=this.getGui();e.appendChild(ne("rowDrag",this.gridOptionsService,null)),this.addGuiEventListener("mousedown",function(r){r.stopPropagation()}),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var r=this,o=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);var i=function(){try{var a=JSON.stringify(r.rowNode.data);e.dataTransfer.setData("application/json",a),e.dataTransfer.setData("text/plain",a)}catch{}};if(o){var s=this.gridOptionsService.addGridCommonParams({rowNode:this.rowNode,dragEvent:e});o(s)}else i()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},Kf([F],t.prototype,"postConstruct",null),t}(k),Yf=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},qf=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ms=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Ss=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;return d?i:o}return o},t.prototype.getDomOrder=function(){var e=this.gridOptionsService.get("ensureDomOrder");return e||this.gridOptionsService.isDomLayout("print")},t.prototype.listenOnDomOrder=function(e){var r=this,o=function(){e.rowComp.setDomOrder(r.getDomOrder())};this.addManagedPropertyListener("domLayout",o),this.addManagedPropertyListener("ensureDomOrder",o)},t.prototype.setAnimateFlags=function(e){if(!(this.isSticky()||!e)){var r=P(this.rowNode.oldRowTop),o=this.beans.columnModel.isPinningLeft(),i=this.beans.columnModel.isPinningRight();if(r){if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows")){this.slideInAnimation.fullWidth=!0;return}this.slideInAnimation.center=!0,this.slideInAnimation.left=o,this.slideInAnimation.right=i}else{if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows")){this.fadeInAnimation.fullWidth=!0;return}this.fadeInAnimation.center=!0,this.fadeInAnimation.left=o,this.fadeInAnimation.right=i}}},t.prototype.isEditing=function(){return this.editingRow},t.prototype.isFullWidth=function(){return this.rowType!==Ae.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,r=function(u,c){return u?u.rowComp.refreshFullWidth(function(){return e.createFullWidthParams(u.element,c)}):!0},o=r(this.fullWidthGui,null),i=r(this.centerGui,null),s=r(this.leftGui,"left"),a=r(this.rightGui,"right"),l=o&&i&&s&&a;return l},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,U.EVENT_HEIGHT_CHANGED,function(){return e.onRowHeightChanged()}),this.addManagedListener(this.rowNode,U.EVENT_ROW_SELECTED,function(){return e.onRowSelected()}),this.addManagedListener(this.rowNode,U.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,U.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,this.postProcessCss.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_DRAGGING_CHANGED,this.postProcessRowDragging.bind(this)),this.addManagedListener(this.rowNode,U.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var r=this.beans.eventService;this.addManagedListener(r,g.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(r,g.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(r,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(r,g.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(r,g.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(r,g.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusChanged.bind(this)),this.addManagedListener(r,g.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(r,g.EVENT_MODEL_UPDATED,this.refreshFirstAndLastRowStyles.bind(this)),this.addManagedListener(r,g.EVENT_COLUMN_MOVED,this.updateColumnLists.bind(this)),this.addDestroyFunc(function(){e.destroyBeans(e.rowDragComps,e.beans.context)}),this.addManagedPropertyListeners(["rowDragEntireRow"],function(){var o=e.gridOptionsService.get("rowDragEntireRow");if(o){e.allRowGuis.forEach(function(i){e.addRowDraggerToRow(i)});return}e.destroyBeans(e.rowDragComps,e.beans.context),e.rowDragComps=[]}),this.addListenersForCellComps()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,U.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(r){return r.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,U.EVENT_CELL_CHANGED,function(r){e.getAllCellCtrls().forEach(function(o){return o.onCellChanged(r)})})},t.prototype.onRowNodeDataChanged=function(e){var r=this,o=this.isFullWidth()!==!!this.rowNode.isFullWidthCell();if(o){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){var i=this.refreshFullWidth();i||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(function(s){return s.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.allRowGuis.forEach(function(s){r.setRowCompRowId(s.rowComp),r.updateRowBusinessKey(),r.setRowCompRowBusinessKey(s.rowComp)}),this.onRowSelected(),this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(r){var o=e===et.Above,i=e===et.Below;r.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),r.rowComp.addOrRemoveCssClass("ag-row-highlight-below",i)})},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(r){return r.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),r=this.rowNode.expanded==!0;this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",e),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&r),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!r),Pt(o.element,e&&r)})},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},t.prototype.getRowPosition=function(){return{rowPinned:ct(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var r=this.allRowGuis.find(function(u){return u.element.contains(e.target)}),o=r?r.element:null,i=o===e.target;if(i){var s=this.rowNode,a=this.beans.focusService.getFocusedCell(),l={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:a&&a.column};this.beans.navigationService.navigateToNextCell(e,e.key,l,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!(e.defaultPrevented||nt(e))){var r=this.allRowGuis.find(function(a){return a.element.contains(e.target)}),o=r?r.element:null,i=o===e.target,s=null;i||(s=this.beans.focusService.findNextFocusableElement(o,!1,e.shiftKey)),(this.isFullWidth()&&i||!s)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var r,o=this.rowNode,i=e?this.isFullWidth()&&e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned:!1,s=this.fullWidthGui?this.fullWidthGui.element:(r=this.centerGui)===null||r===void 0?void 0:r.element;s&&(s.classList.toggle("ag-full-width-focus",i),i&&s.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,r){var o={list:[],map:{}};return e.list.forEach(function(i){i!==r&&(o.list.push(i),o.map[i.getInstanceId()]=i)}),o},t.prototype.onMouseEvent=function(e,r){switch(e){case"dblclick":this.onRowDblClick(r);break;case"click":this.onRowClick(r);break;case"touchstart":case"mousedown":this.onRowMouseDown(r);break}},t.prototype.createRowEvent=function(e,r){return this.gridOptionsService.addGridCommonParams({type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,event:r})},t.prototype.createRowEventWithSource=function(e,r){var o=this.createRowEvent(e,r);return o.source=this,o},t.prototype.onRowDblClick=function(e){if(!nt(e)){var r=this.createRowEventWithSource(g.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(r)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=or(e.target,"ag-row-drag",3),!!this.isFullWidth()){var r=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:r.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:r.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){var r=nt(e)||this.lastMouseDownOnDragger;if(!r){var o=this.createRowEventWithSource(g.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(o);var i=e.ctrlKey||e.metaKey,s=e.shiftKey,a=this.gridOptionsService.get("groupSelectsChildren");if(!(a&&this.rowNode.group||this.isRowSelectionBlocked()||this.gridOptionsService.get("suppressRowClickSelection"))){var l=this.gridOptionsService.get("rowMultiSelectWithClick"),u=!this.gridOptionsService.get("suppressRowDeselection"),c="rowClicked";if(this.rowNode.isSelected())l?this.rowNode.setSelectedParams({newValue:!1,event:e,source:c}):i?u&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:c}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!s,rangeSelect:s,event:e,source:c});else{var p=l?!1:!i;this.rowNode.setSelectedParams({newValue:!0,clearSelection:p,rangeSelect:s,event:e,source:c})}}}},t.prototype.isRowSelectionBlocked=function(){return!this.rowNode.selectable||!!this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()},t.prototype.setupDetailRowAutoHeight=function(e){var r=this;if(this.rowType===Ae.FullWidthDetail&&this.gridOptionsService.get("detailRowAutoHeight")){var o=function(){var s=e.clientHeight;if(s!=null&&s>0){var a=function(){r.rowNode.setRowHeight(s),r.beans.clientSideRowModel?r.beans.clientSideRowModel.onRowHeightChanged():r.beans.serverSideRowModel&&r.beans.serverSideRowModel.onRowHeightChanged()};window.setTimeout(a,0)}},i=this.beans.resizeObserverService.observeResize(e,o);this.addDestroyFunc(i),o()}},t.prototype.createFullWidthParams=function(e,r){var o=this,i=this.gridOptionsService.addGridCommonParams({fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,eGridCell:e,eParentOfValue:e,pinned:r,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(s,a,l,u){return o.addFullWidthRowDragging(s,a,l,u)}});return i},t.prototype.addFullWidthRowDragging=function(e,r,o,i){if(o===void 0&&(o=""),!!this.isFullWidth()){var s=new ai(function(){return o},this.rowNode,void 0,e,r,i);this.createManagedBean(s,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var r="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass(r,!0),i.rowComp.addOrRemoveCssClass(o,!1)})}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),r=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==r&&(this.lastRowOnPage=r,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-last",r)}))},t.prototype.stopEditing=function(e){var r,o;if(e===void 0&&(e=!1),!this.stoppingRowEdit){var i=this.getAllCellCtrls(),s=this.editingRow;this.stoppingRowEdit=!0;var a=!1;try{for(var l=cv(i),u=l.next();!u.done;u=l.next()){var c=u.value,p=c.stopEditing(e);s&&!e&&!a&&p&&(a=!0)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}if(a){var d=this.createRowEvent(g.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(d)}s&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(r){r.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),r.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var r=e?this.createRowEvent(g.EVENT_ROW_EDITING_STARTED):this.createRowEvent(g.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(r)},t.prototype.startRowEditing=function(e,r,o){if(e===void 0&&(e=null),r===void 0&&(r=null),o===void 0&&(o=null),!this.editingRow){var i=this.getAllCellCtrls().reduce(function(s,a){var l=a===r;return l?a.startEditing(e,l,o):a.startEditing(null,l,o),s?!0:a.isEditing()},!1);i&&this.setEditingRow(!0)}},t.prototype.getAllCellCtrls=function(){if(this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0)return this.centerCellCtrls.list;var e=Ss(Ss(Ss([],ms(this.centerCellCtrls.list),!1),ms(this.leftCellCtrls.list),!1),ms(this.rightCellCtrls.list),!1);return e},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,r=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);!r||!r.length||r.forEach(function(o){e.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass(o,!0)})})},t.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,function(r){e.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass(r,!0)})},function(r){e.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass(r,!1)})})},t.prototype.setStylesFromGridOptions=function(e,r){var o=this;e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(r,function(i){return i.rowComp.setUserStyles(o.rowStyles)})},t.prototype.getPinnedForContainer=function(e){var r=e===fe.LEFT?"left":e===fe.RIGHT?"right":null;return r},t.prototype.getInitialRowClasses=function(e){var r=this.getPinnedForContainer(e),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:r};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},t.prototype.processStylesFromGridOptions=function(){var e=this.gridOptionsService.get("rowStyle");if(e&&typeof e=="function"){console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");return}var r=this.gridOptionsService.getCallback("getRowStyle"),o;if(r){var i={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex};o=r(i)}return o||e?Object.assign({},e,o):this.emptyStyle},t.prototype.onRowSelected=function(e){var r=this,o=this.beans.gridOptionsService.getDocument(),i=!!this.rowNode.isSelected();this.forEachGui(e,function(s){s.rowComp.addOrRemoveCssClass("ag-row-selected",i),Rr(s.element,i);var a=s.element.contains(o.activeElement);a&&(s===r.centerGui||s===r.fullWidthGui)&&r.announceDescription()})},t.prototype.announceDescription=function(){if(!this.isRowSelectionBlocked()){var e=this.rowNode.isSelected();if(!(e&&this.beans.gridOptionsService.get("suppressRowDeselection"))){var r=this.beans.localeService.getLocaleTextFunc(),o=r(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to ".concat(e?"deselect":"select"," this row."));this.beans.ariaAnnouncementService.announceValue(o)}}},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.prototype.addHoverFunctionality=function(e){var r=this;this.active&&(this.addManagedListener(e,"mouseenter",function(){return r.rowNode.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return r.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,U.EVENT_MOUSE_ENTER,function(){!r.beans.dragService.isDragging()&&!r.gridOptionsService.get("suppressRowHoverHighlight")&&(e.classList.add("ag-row-hover"),r.rowNode.setHovered(!0))}),this.addManagedListener(this.rowNode,U.EVENT_MOUSE_LEAVE,function(){e.classList.remove("ag-row-hover"),r.rowNode.setHovered(!1)}))},t.prototype.roundRowTopToBounds=function(e){var r=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getApproximateVScollPosition(),o=this.applyPaginationOffset(r.top,!0)-100,i=this.applyPaginationOffset(r.bottom,!0)+100;return Math.min(Math.max(o,e),i)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.forEachGui=function(e,r){e?r(e):this.allRowGuis.forEach(r)},t.prototype.onRowHeightChanged=function(e){if(this.rowNode.rowHeight!=null){var r=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),i=this.gridOptionsService.isGetRowHeightFunction(),s=i?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,a=s?"".concat(Math.min(o,s)-2,"px"):void 0;this.forEachGui(e,function(l){l.element.style.height="".concat(r,"px"),a&&l.element.style.setProperty("--ag-line-height",a)})}},t.prototype.addEventListener=function(e,r){n.prototype.addEventListener.call(this,e,r)},t.prototype.removeEventListener=function(e,r){n.prototype.removeEventListener.call(this,e,r)},t.prototype.destroyFirstPass=function(e){if(e===void 0&&(e=!1),this.active=!1,!e&&this.gridOptionsService.isAnimateRows()&&!this.isSticky()){var r=this.rowNode.rowTop!=null;if(r){var o=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(o)}else this.allRowGuis.forEach(function(s){return s.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)})}this.rowNode.setHovered(!1);var i=this.createRowEvent(g.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(i),this.beans.eventService.dispatchEvent(i),n.prototype.destroy.call(this)},t.prototype.destroySecondPass=function(){this.allRowGuis.length=0,this.stopEditing();var e=function(r){return r.list.forEach(function(o){return o.destroy()}),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},t.prototype.setFocusedClasses=function(e){var r=this;this.forEachGui(e,function(o){o.rowComp.addOrRemoveCssClass("ag-row-focus",r.rowFocused),o.rowComp.addOrRemoveCssClass("ag-row-no-focus",!r.rowFocused)})},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,r){if(r===void 0&&(r=!1),this.rowNode.isRowPinned()||this.rowNode.sticky)return e;var o=this.beans.paginationProxy.getPixelOffset(),i=r?1:-1;return e+o*i},t.prototype.setRowTop=function(e){if(!this.printLayout&&P(e)){var r=this.applyPaginationOffset(e),o=this.rowNode.isRowPinned()||this.rowNode.sticky,i=o?r:this.beans.rowContainerHeightService.getRealPixelPosition(r),s="".concat(i,"px");this.setRowTopStyle(s)}},t.prototype.getInitialRowTop=function(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0},t.prototype.getInitialTransform=function(e){return this.suppressRowTransform?void 0:"translateY(".concat(this.getInitialRowTopShared(e),")")},t.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var r;if(this.isSticky())r=this.rowNode.stickyRowTop;else{var o=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,i=this.applyPaginationOffset(o);r=this.rowNode.isRowPinned()?i:this.beans.rowContainerHeightService.getRealPixelPosition(i)}return r+"px"},t.prototype.setRowTopStyle=function(e){var r=this;this.allRowGuis.forEach(function(o){return r.suppressRowTransform?o.rowComp.setTop(e):o.rowComp.setTransform("translateY(".concat(e,")"))})},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var r=null;return this.getAllCellCtrls().forEach(function(o){o.getColumn()==e&&(r=o)}),r!=null||this.getAllCellCtrls().forEach(function(o){o.getColSpanningList().indexOf(e)>=0&&(r=o)}),r},t.prototype.onRowIndexChanged=function(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.getRowIndex=function(){return this.rowNode.getRowIndexString()},t.prototype.updateRowIndexes=function(e){var r=this.rowNode.getRowIndexString(),o=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),i=this.rowNode.rowIndex%2===0,s=o+this.rowNode.rowIndex+1;this.forEachGui(e,function(a){a.rowComp.setRowIndex(r),a.rowComp.addOrRemoveCssClass("ag-row-even",i),a.rowComp.addOrRemoveCssClass("ag-row-odd",!i),yn(a.element,s)})},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(D),dv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ze=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},hv=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},fv=function(n){dv(t,n);function t(e){var r=n.call(this)||this;return r.element=e,r}return t.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},t.prototype.addKeyboardListeners=function(){var e="keydown",r=this.processKeyboardEvent.bind(this,e);this.addManagedListener(this.element,e,r)},t.prototype.addMouseListeners=function(){var e=this,r=an("touchstart")?"touchstart":"mousedown",o=["dblclick","contextmenu","mouseover","mouseout","click",r];o.forEach(function(i){var s=e.processMouseEvent.bind(e,i);e.addManagedListener(e.element,i,s)})},t.prototype.processMouseEvent=function(e,r){if(!(!this.mouseEventService.isEventFromThisGrid(r)||nt(r))){var o=this.getRowForEvent(r),i=this.mouseEventService.getRenderedCellForEvent(r);e==="contextmenu"?this.handleContextMenuMouseEvent(r,void 0,o,i):(i&&i.onMouseEvent(e,r),o&&o.onMouseEvent(e,r))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Dt()){var r=new Ce(this.element),o=function(i){var s=e.getRowForEvent(i.touchEvent),a=e.mouseEventService.getRenderedCellForEvent(i.touchEvent);e.handleContextMenuMouseEvent(void 0,i.touchEvent,s,a)};this.addManagedListener(r,Ce.EVENT_LONG_TAP,o),this.addDestroyFunc(function(){return r.destroy()})}},t.prototype.getRowForEvent=function(e){for(var r=e.target;r;){var o=this.gridOptionsService.getDomData(r,fr.DOM_DATA_KEY_ROW_CTRL);if(o)return o;r=r.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,r,o,i){var s=o?o.getRowNode():null,a=i?i.getColumn():null,l=null;if(a){var u=e||r;i.dispatchCellContextMenuEvent(u??null),l=this.valueService.getValue(a,s)}var c=this.ctrlsService.getGridBodyCtrl(),p=i?i.getGui():c.getGridBodyElement();this.menuService.showContextMenu({mouseEvent:e,touchEvent:r,rowNode:s,column:a,value:l,anchorToElement:p})},t.prototype.getControlsForEventTarget=function(e){return{cellCtrl:ko(this.gridOptionsService,e,hr.DOM_DATA_KEY_CELL_CTRL),rowCtrl:ko(this.gridOptionsService,e,fr.DOM_DATA_KEY_ROW_CTRL)}},t.prototype.processKeyboardEvent=function(e,r){var o=this.getControlsForEventTarget(r.target),i=o.cellCtrl,s=o.rowCtrl;r.defaultPrevented||(i?this.processCellKeyboardEvent(i,e,r):s&&s.isFullWidth()&&this.processFullWidthRowKeyboardEvent(s,e,r))},t.prototype.processCellKeyboardEvent=function(e,r,o){var i=e.getRowNode(),s=e.getColumn(),a=e.isEditing(),l=!Zo(this.gridOptionsService,o,i,s,a);if(l&&r==="keydown"){var u=!a&&this.navigationService.handlePageScrollingKey(o);u||e.onKeyDown(o),this.doGridOperations(o,e.isEditing()),Xo(o)&&e.processCharacter(o)}if(r==="keydown"){var c=e.createEvent(o,g.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(c)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,r,o){var i=e.getRowNode(),s=this.focusService.getFocusedCell(),a=s&&s.column,l=!Zo(this.gridOptionsService,o,i,a,!1);if(l){var u=o.key;if(r==="keydown")switch(u){case _.PAGE_HOME:case _.PAGE_END:case _.PAGE_UP:case _.PAGE_DOWN:this.navigationService.handlePageScrollingKey(o,!0);break;case _.UP:case _.DOWN:e.onKeyboardNavigate(o);break;case _.TAB:e.onTabKeyDown(o);break}}if(r==="keydown"){var c=e.createRowEvent(g.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(c)}},t.prototype.doGridOperations=function(e,r){if(!(!e.ctrlKey&&!e.metaKey)&&!r&&this.mouseEventService.isEventFromThisGrid(e)){var o=ul(e);if(o===_.A)return this.onCtrlAndA(e);if(o===_.C)return this.onCtrlAndC(e);if(o===_.D)return this.onCtrlAndD(e);if(o===_.V)return this.onCtrlAndV(e);if(o===_.X)return this.onCtrlAndX(e);if(o===_.Y)return this.onCtrlAndY();if(o===_.Z)return this.onCtrlAndZ(e)}},t.prototype.onCtrlAndA=function(e){var r=this,o=r.pinnedRowModel,i=r.paginationProxy,s=r.rangeService;if(s&&i.isRowsToRender()){var a=hv([o.isEmpty("top"),o.isEmpty("bottom")],2),l=a[0],u=a[1],c=l?null:"top",p=void 0,d=void 0;u?(p=null,d=this.paginationProxy.getRowCount()-1):(p="bottom",d=o.getPinnedBottomRowData().length-1);var h=this.columnModel.getAllDisplayedColumns();if(Ge(h))return;s.setCellRange({rowStartIndex:0,rowStartPinned:c,rowEndIndex:d,rowEndPinned:p,columnStart:h[0],columnEnd:q(h)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(!(!this.clipboardService||this.gridOptionsService.get("enableCellTextSelection"))){var r=this.getControlsForEventTarget(e.target),o=r.cellCtrl,i=r.rowCtrl;o!=null&&o.isEditing()||i!=null&&i.isEditing()||(e.preventDefault(),this.clipboardService.copyToClipboard())}},t.prototype.onCtrlAndX=function(e){if(!(!this.clipboardService||this.gridOptionsService.get("enableCellTextSelection")||this.gridOptionsService.get("suppressCutToClipboard"))){var r=this.getControlsForEventTarget(e.target),o=r.cellCtrl,i=r.rowCtrl;o!=null&&o.isEditing()||i!=null&&i.isEditing()||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},t.prototype.onCtrlAndV=function(e){var r=this.getControlsForEventTarget(e.target),o=r.cellCtrl,i=r.rowCtrl;o!=null&&o.isEditing()||i!=null&&i.isEditing()||this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.get("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},ze([v("mouseEventService")],t.prototype,"mouseEventService",void 0),ze([v("valueService")],t.prototype,"valueService",void 0),ze([v("menuService")],t.prototype,"menuService",void 0),ze([v("ctrlsService")],t.prototype,"ctrlsService",void 0),ze([v("navigationService")],t.prototype,"navigationService",void 0),ze([v("focusService")],t.prototype,"focusService",void 0),ze([v("undoRedoService")],t.prototype,"undoRedoService",void 0),ze([v("columnModel")],t.prototype,"columnModel",void 0),ze([v("paginationProxy")],t.prototype,"paginationProxy",void 0),ze([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ze([Y("rangeService")],t.prototype,"rangeService",void 0),ze([Y("clipboardService")],t.prototype,"clipboardService",void 0),ze([F],t.prototype,"postConstruct",null),t}(D),vv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),co=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ru=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},ou=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0;){if(l0){var h=s[u++];d-=h.getActualWidth(),p.push(h)}}return p},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=this.gridBodyCtrl.getBodyViewportElement(),r=qr(e);if(this.bodyHeight!==r){this.bodyHeight=r;var o={type:g.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)},t.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),r=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,r)},co([v("ctrlsService")],t.prototype,"ctrlsService",void 0),co([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),co([v("columnModel")],t.prototype,"columnModel",void 0),co([v("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),co([F],t.prototype,"postConstruct",null),t}(D),yv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),iu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Cv=function(n){yv(t,n);function t(e){var r=n.call(this)||this;return r.element=e,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),r=e>0;$(this.element,r),Ze(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},iu([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),iu([F],t.prototype,"postConstruct",null),t}(D),mv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),nu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Sv=function(n){mv(t,n);function t(e){var r=n.call(this)||this;return r.element=e,r}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),r=e>0;$(this.element,r),Ze(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},nu([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),nu([F],t.prototype,"postConstruct",null),t}(D),wv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),su=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},au=function(n){wv(t,n);function t(e,r){var o=n.call(this)||this;return o.eContainer=e,o.eViewport=r,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),r=e!=null?"".concat(e,"px"):"";this.eContainer.style.height=r,this.eViewport&&(this.eViewport.style.height=r)},su([v("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),su([F],t.prototype,"postConstruct",null),t}(D),Ev=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ws=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_v=function(n){Ev(t,n);function t(e){var r=n.call(this)||this;return r.eContainer=e,r}return t.prototype.postConstruct=function(){var e=this;if(!H(this.rangeService)){this.params={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)},this.addManagedPropertyListener("enableRangeSelection",function(o){var i=o.currentValue;if(i){e.enableFeature();return}e.disableFeature()}),this.addDestroyFunc(function(){return e.disableFeature()});var r=this.gridOptionsService.get("enableRangeSelection");r&&this.enableFeature()}},t.prototype.enableFeature=function(){this.dragService.addDragSource(this.params)},t.prototype.disableFeature=function(){this.dragService.removeDragSource(this.params)},ws([Y("rangeService")],t.prototype,"rangeService",void 0),ws([v("dragService")],t.prototype,"dragService",void 0),ws([F],t.prototype,"postConstruct",null),t}(D),Rv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Es=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_s=function(n){Rv(t,n);function t(e,r){r===void 0&&(r=!1);var o=n.call(this)||this;return o.callback=e,o.addSpacer=r,o}return t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,g.EVENT_COLUMN_CONTAINER_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,g.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,r=this.gridOptionsService.isDomLayout("print"),o=e.getBodyContainerWidth(),i=e.getDisplayedColumnsLeftWidth(),s=e.getDisplayedColumnsRightWidth(),a;if(r)a=o+i+s;else if(a=o,this.addSpacer){var l=this.gridOptionsService.get("enableRtl")?i:s;l===0&&this.scrollVisibleService.isVerticalScrollShowing()&&(a+=this.gridOptionsService.getScrollbarWidth())}this.callback(a)},Es([v("columnModel")],t.prototype,"columnModel",void 0),Es([v("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Es([F],t.prototype,"postConstruct",null),t}(D),Ov=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vi=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},gi=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0&&r()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,r,o){var i=this;this.comp=e,this.eContainer=r,this.eViewport=o,this.createManagedBean(new fv(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var s=[T.TOP_CENTER,T.TOP_LEFT,T.TOP_RIGHT],a=[T.STICKY_TOP_CENTER,T.STICKY_TOP_LEFT,T.STICKY_TOP_RIGHT],l=[T.BOTTOM_CENTER,T.BOTTOM_LEFT,T.BOTTOM_RIGHT],u=[T.CENTER,T.LEFT,T.RIGHT],c=gi(gi(gi(gi([],vi(s),!1),vi(l),!1),vi(u),!1),vi(a),!1),p=[T.CENTER,T.LEFT,T.RIGHT,T.FULL_WIDTH],d=[T.CENTER,T.TOP_CENTER,T.STICKY_TOP_CENTER,T.BOTTOM_CENTER],h=[T.LEFT,T.BOTTOM_LEFT,T.TOP_LEFT,T.STICKY_TOP_LEFT],f=[T.RIGHT,T.BOTTOM_RIGHT,T.TOP_RIGHT,T.STICKY_TOP_RIGHT];this.forContainers(h,function(){i.pinnedWidthFeature=i.createManagedBean(new Cv(i.eContainer)),i.addManagedListener(i.eventService,g.EVENT_LEFT_PINNED_WIDTH_CHANGED,function(){return i.onPinnedWidthChanged()})}),this.forContainers(f,function(){i.pinnedWidthFeature=i.createManagedBean(new Sv(i.eContainer)),i.addManagedListener(i.eventService,g.EVENT_RIGHT_PINNED_WIDTH_CHANGED,function(){return i.onPinnedWidthChanged()})}),this.forContainers(p,function(){return i.createManagedBean(new au(i.eContainer,i.name===T.CENTER?o:void 0))}),this.forContainers(c,function(){return i.createManagedBean(new _v(i.eContainer))}),this.forContainers(d,function(){return i.createManagedBean(new _s(function(y){return i.comp.setContainerWidth("".concat(y,"px"))}))}),this.addListeners(),this.registerWithCtrlsService()},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.onDisplayedColumnsChanged()}),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){return e.onDisplayedColumnsWidthChanged()}),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_ROWS_CHANGED,function(r){return e.onDisplayedRowsChanged(r.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this,r=[T.STICKY_TOP_CENTER,T.STICKY_TOP_LEFT,T.STICKY_TOP_RIGHT,T.STICKY_TOP_FULL_WIDTH],o=r.indexOf(this.name)>=0;if(o){this.comp.setDomOrder(!0);return}var i=function(){var s=e.gridOptionsService.get("ensureDomOrder"),a=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(s||a)};this.addManagedPropertyListener("domLayout",i),i()},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([T.TOP_CENTER,T.STICKY_TOP_CENTER,T.BOTTOM_CENTER],function(){var r=function(){return e.eViewport.scrollLeft=0};e.addManagedListener(e.eViewport,"scroll",r)})},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([T.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([T.CENTER],function(){return e.onHorizontalViewportChanged()})},t.prototype.addPreventScrollWhileDragging=function(){var e=this,r=function(o){e.dragService.isDragging()&&o.cancelable&&o.preventDefault()};this.eContainer.addEventListener("touchmove",r,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",r)})},t.prototype.onHorizontalViewportChanged=function(e){e===void 0&&(e=!1);var r=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(r,o,e)},t.prototype.getCenterWidth=function(){return ir(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return Zr(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var r=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return r()})},t.prototype.isViewportInTheDOMTree=function(){return kn(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return Zr(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){var e=this.gridOptionsService.get("alwaysShowHorizontalScroll");return e||rl(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX(".concat(e,"px)")},t.prototype.getHScrollPosition=function(){var e={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return e},t.prototype.setCenterViewportScrollLeft=function(e){Jr(this.eViewport,e,this.enableRtl)},t.prototype.isContainerVisible=function(){var e=t.getPinned(this.name);return!e||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},t.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())},t.prototype.onDisplayedRowsChanged=function(e){var r=this;if(e===void 0&&(e=!1),!this.visible){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}var o=this.gridOptionsService.isDomLayout("print"),i=this.gridOptionsService.get("embedFullWidthRows"),s=i||o,a=this.getRowCtrls().filter(function(l){var u=l.isFullWidth(),c=r.isFullWithContainer?!s&&u:s||!u;return c});this.comp.setRowCtrls({rowCtrls:a,useFlushSync:e})},t.prototype.getRowCtrls=function(){switch(this.name){case T.TOP_CENTER:case T.TOP_LEFT:case T.TOP_RIGHT:case T.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case T.STICKY_TOP_CENTER:case T.STICKY_TOP_LEFT:case T.STICKY_TOP_RIGHT:case T.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case T.BOTTOM_CENTER:case T.BOTTOM_LEFT:case T.BOTTOM_RIGHT:case T.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},xr([v("dragService")],t.prototype,"dragService",void 0),xr([v("ctrlsService")],t.prototype,"ctrlsService",void 0),xr([v("columnModel")],t.prototype,"columnModel",void 0),xr([v("resizeObserverService")],t.prototype,"resizeObserverService",void 0),xr([v("rowRenderer")],t.prototype,"rowRenderer",void 0),xr([F],t.prototype,"postConstruct",null),t}(D),Av=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),At=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},bv=`
-
`),bv=function(n){Dv(t,n);function t(){return n.call(this,Av)||this}return t.prototype.init=function(){var e=this,r=function(i,s){var a="".concat(i,"px");s.style.minHeight=a,s.style.height=a},o={setRowAnimationCssOnBodyViewport:function(i,s){return e.setRowAnimationCssOnBodyViewport(i,s)},setColumnCount:function(i){return ja(e.getGui(),i)},setRowCount:function(i){return Wa(e.getGui(),i)},setTopHeight:function(i){return r(i,e.eTop)},setBottomHeight:function(i){return r(i,e.eBottom)},setTopDisplay:function(i){return e.eTop.style.display=i},setBottomDisplay:function(i){return e.eBottom.style.display=i},setStickyTopHeight:function(i){return e.eStickyTop.style.height=i},setStickyTopTop:function(i){return e.eStickyTop.style.top=i},setStickyTopWidth:function(i){return e.eStickyTop.style.width=i},setColumnMovingCss:function(i,s){return e.addOrRemoveCssClass(i,s)},updateLayoutClasses:function(i,s){var a=[e.eBodyViewport.classList,e.eBody.classList];a.forEach(function(l){l.toggle(pe.AUTO_HEIGHT,s.autoHeight),l.toggle(pe.NORMAL,s.normal),l.toggle(pe.PRINT,s.print)}),e.addOrRemoveCssClass(pe.AUTO_HEIGHT,s.autoHeight),e.addOrRemoveCssClass(pe.NORMAL,s.normal),e.addOrRemoveCssClass(pe.PRINT,s.print)},setAlwaysVerticalScrollClass:function(i,s){return e.eBodyViewport.classList.toggle(eu,s)},registerBodyViewportResizeListener:function(i){var s=e.resizeObserverService.observeResize(e.eBodyViewport,i);e.addDestroyFunc(function(){return s()})},setPinnedTopBottomOverflowY:function(i){return e.eTop.style.overflowY=e.eBottom.style.overflowY=i},setCellSelectableCss:function(i,s){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(a){return a.classList.toggle(i,s)})},setBodyViewportWidth:function(i){return e.eBodyViewport.style.width=i}};this.ctrl=this.createManagedBean(new Of),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService&&this.gridOptionsService.get("enableRangeSelection")||this.gridOptionsService.get("rowSelection")==="multiple")&&ka(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,r){var o=this.eBodyViewport.classList;o.toggle(Mr.ANIMATION_ON,r),o.toggle(Mr.ANIMATION_OFF,!r)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},At([v("resizeObserverService")],t.prototype,"resizeObserverService",void 0),At([Y("rangeService")],t.prototype,"rangeService",void 0),At([L("eBodyViewport")],t.prototype,"eBodyViewport",void 0),At([L("eStickyTop")],t.prototype,"eStickyTop",void 0),At([L("eTop")],t.prototype,"eTop",void 0),At([L("eBottom")],t.prototype,"eBottom",void 0),At([L("gridHeader")],t.prototype,"headerRootComp",void 0),At([L("eBody")],t.prototype,"eBody",void 0),At([F],t.prototype,"init",null),t}(k),Fv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Lv=function(n){Fv(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){var e=this;this.columnAnimationService.isActive()?this.columnAnimationService.executeLaterVMTurn(function(){e.columnAnimationService.executeLaterVMTurn(function(){return e.updateImpl()})}):this.updateImpl()},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(!(!e||this.columnAnimationService.isActive())){var r={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(r)}},t.prototype.setScrollsVisible=function(e){var r=this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing;if(r){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var o={type:g.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},yi([v("ctrlsService")],t.prototype,"ctrlsService",void 0),yi([v("columnAnimationService")],t.prototype,"columnAnimationService",void 0),yi([F],t.prototype,"postConstruct",null),t=yi([x("scrollVisibleService")],t),t}(D),Mv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),uu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Iv=function(n){Mv(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.gridInstanceId=e.gridInstanceSequence.next(),r}e=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(r){r[e.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(r){return ko(this.gridOptionsService,r.target,hr.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(r){var o=this.isElementInThisGrid(r.target);return o},t.prototype.isElementInThisGrid=function(r){for(var o=r;o;){var i=o[e.GRID_DOM_KEY];if(P(i)){var s=i===this.gridInstanceId;return s}o=o.parentElement}return!1},t.prototype.getCellPositionForEvent=function(r){var o=this.getRenderedCellForEvent(r);return o?o.getCellPosition():null},t.prototype.getNormalisedPosition=function(r){var o=this.gridOptionsService.isDomLayout("normal"),i=r,s,a;if(i.clientX!=null||i.clientY!=null?(s=i.clientX,a=i.clientY):(s=i.x,a=i.y),o){var l=this.ctrlsService.getGridBodyCtrl(),u=l.getScrollFeature().getVScrollPosition(),c=l.getScrollFeature().getHScrollPosition();s+=c.left,a+=u.top}return{x:s,y:a}};var e;return t.gridInstanceSequence=new Dr,t.GRID_DOM_KEY="__ag_grid_instance",uu([v("ctrlsService")],t.prototype,"ctrlsService",void 0),t=e=uu([x("mouseEventService")],t),t}(D),xv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),mi=function(){return mi=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Nv=function(n){xv(t,n);function t(){var e=n.call(this)||this;return e.onPageDown=Zi(e.onPageDown,100),e.onPageUp=Zi(e.onPageUp,100),e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.gridBodyCon=r.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e,r){r===void 0&&(r=!1);var o=e.key,i=e.altKey,s=e.ctrlKey||e.metaKey,a=!!this.rangeService&&e.shiftKey,l=this.mouseEventService.getCellPositionForEvent(e),u=!1;switch(o){case _.PAGE_HOME:case _.PAGE_END:!s&&!i&&(this.onHomeOrEndKey(o),u=!0);break;case _.LEFT:case _.RIGHT:case _.UP:case _.DOWN:if(!l)return!1;s&&!i&&!a&&(this.onCtrlUpDownLeftRight(o,l),u=!0);break;case _.PAGE_DOWN:case _.PAGE_UP:!s&&!i&&(u=this.handlePageUpDown(o,l,r));break}return u&&e.preventDefault(),u},t.prototype.handlePageUpDown=function(e,r,o){return o&&(r=this.focusService.getFocusedCell()),r?(e===_.PAGE_UP?this.onPageUp(r):this.onPageDown(r),!0):!1},t.prototype.navigateTo=function(e){var r=e.scrollIndex,o=e.scrollType,i=e.scrollColumn,s=e.focusIndex,a=e.focusColumn;if(P(i)&&!i.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(i),P(r)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(r,o),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(s),this.focusService.setFocusedCell({rowIndex:s,column:a,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:s,rowPinned:null,column:a};this.rangeService.setRangeToCell(l)}},t.prototype.onPageDown=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition(),i=this.getViewportHeight(),s=this.paginationProxy.getPixelOffset(),a=o.top+i,l=this.paginationProxy.getRowIndexAtPixel(a+s);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l):this.navigateToNextPage(e,l)},t.prototype.onPageUp=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition(),i=this.paginationProxy.getPixelOffset(),s=o.top,a=this.paginationProxy.getRowIndexAtPixel(s+i);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,a,!0):this.navigateToNextPage(e,a,!0)},t.prototype.navigateToNextPage=function(e,r,o){o===void 0&&(o=!1);var i=this.getViewportHeight(),s=this.paginationProxy.getPageFirstRow(),a=this.paginationProxy.getPageLastRow(),l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getRow(e.rowIndex),c=o?(u==null?void 0:u.rowHeight)-i-l:i-l,p=(u==null?void 0:u.rowTop)+c,d=this.paginationProxy.getRowIndexAtPixel(p+l);if(d===e.rowIndex){var h=o?-1:1;r=d=e.rowIndex+h}var f;o?(f="bottom",da&&(d=a),r>a&&(r=a)),this.isRowTallerThanView(d)&&(r=d,f="top"),this.navigateTo({scrollIndex:r,scrollType:f,scrollColumn:null,focusIndex:d,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,r,o){var i=this;o===void 0&&(o=!1),this.navigateTo({scrollIndex:r,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column}),setTimeout(function(){var s=i.getNextFocusIndexForAutoHeight(e,o);i.navigateTo({scrollIndex:r,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:s,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,r){var o;r===void 0&&(r=!1);for(var i=r?-1:1,s=this.getViewportHeight(),a=this.paginationProxy.getPageLastRow(),l=0,u=e.rowIndex;u>=0&&u<=a;){var c=this.paginationProxy.getRow(u);if(c){var p=(o=c.rowHeight)!==null&&o!==void 0?o:0;if(l+p>s)break;l+=p}u+=i}return Math.max(0,Math.min(u,a))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),r=e.getScrollFeature().getVScrollPosition(),o=this.gridOptionsService.getScrollbarWidth(),i=r.bottom-r.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(i-=o),i},t.prototype.isRowTallerThanView=function(e){var r=this.paginationProxy.getRow(e);if(!r)return!1;var o=r.rowHeight;return typeof o!="number"?!1:o>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,r){var o=this.cellNavigationService.getNextCellToFocus(e,r,!0),i=o.rowIndex,s=o.column;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:s,focusIndex:i,focusColumn:s})},t.prototype.onHomeOrEndKey=function(e){var r=e===_.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),i=r?o[0]:q(o),s=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:i,focusIndex:s,focusColumn:i})},t.prototype.onTabKeyDown=function(e,r){var o=r.shiftKey,i=this.tabToNextCellCommon(e,o,r);if(i){r.preventDefault();return}if(o){var s=e.getRowPosition(),a=s.rowIndex,l=s.rowPinned,u=l?a===0:a===this.paginationProxy.getPageFirstRow();u&&(this.gridOptionsService.get("headerHeight")===0||this.gridOptionsService.get("suppressHeaderFocus")?this.focusService.focusNextGridCoreContainer(!0,!0):(r.preventDefault(),this.focusService.focusPreviousFromFirstCell(r)))}else e instanceof hr&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&r.preventDefault()},t.prototype.tabToNextCell=function(e,r){var o=this.focusService.getFocusedCell();if(!o)return!1;var i=this.getCellByPosition(o);return!i&&(i=this.rowRenderer.getRowByPosition(o),!i||!i.isFullWidth())?!1:this.tabToNextCellCommon(i,e,r)},t.prototype.tabToNextCellCommon=function(e,r,o){var i=e.isEditing();if(!i&&e instanceof hr){var s=e,a=s.getRowCtrl();a&&(i=a.isEditing())}var l;return i?this.gridOptionsService.get("editType")==="fullRow"?l=this.moveToNextEditingRow(e,r,o):l=this.moveToNextEditingCell(e,r,o):l=this.moveToNextCellNotEditing(e,r),l||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,r,o){o===void 0&&(o=null);var i=e.getCellPosition();e.getGui().focus(),e.stopEditing();var s=this.findNextCellToFocusOn(i,r,!0);return s==null?!1:(s.startEditing(null,!0,o),s.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,r,o){o===void 0&&(o=null);var i=e.getCellPosition(),s=this.findNextCellToFocusOn(i,r,!0);if(s==null)return!1;var a=s.getCellPosition(),l=this.isCellEditable(i),u=this.isCellEditable(a),c=a&&i.rowIndex===a.rowIndex&&i.rowPinned===a.rowPinned;if(l&&e.setFocusOutOnEditor(),!c){var p=e.getRowCtrl();p.stopEditing();var d=s.getRowCtrl();d.startRowEditing(void 0,void 0,o)}return u?(s.setFocusInOnEditor(),s.focusCell()):s.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,r){var o=this.columnModel.getAllDisplayedColumns(),i;e instanceof fr?i=mi(mi({},e.getRowPosition()),{column:r?o[0]:q(o)}):i=e.getCellPosition();var s=this.findNextCellToFocusOn(i,r,!1);if(s instanceof hr)s.focusCell(!0);else if(s)return this.tryToFocusFullWidthRow(s.getRowPosition(),r);return P(s)},t.prototype.findNextCellToFocusOn=function(e,r,o){for(var i=e;;){e!==i&&(e=i),r||(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextTabbedCell(i,r);var s=this.gridOptionsService.getCallback("tabToNextCell");if(P(s)){var a={backwards:r,editing:o,previousCellPosition:e,nextCellPosition:i||null},l=s(a);P(l)?(l.floating&&(V("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),l.rowPinned=l.floating),i={rowIndex:l.rowIndex,column:l.column,rowPinned:l.rowPinned}):i=null}if(!i)return null;if(i.rowIndex<0){var u=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u+i.rowIndex,column:i.column},fromCell:!0}),null}var c=this.gridOptionsService.get("editType")==="fullRow";if(o&&!c){var p=this.isCellEditable(i);if(!p)continue}this.ensureCellVisible(i);var d=this.getCellByPosition(i);if(!d){var h=this.rowRenderer.getRowByPosition(i);if(!h||!h.isFullWidth()||o)continue;return h}if(!d.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(i),d}},t.prototype.isCellEditable=function(e){var r=this.lookupRowNodeForCell(e);return r?e.column.isCellEditable(r):!1},t.prototype.getCellByPosition=function(e){var r=this.rowRenderer.getRowByPosition(e);return r?r.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned==="top"?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned==="bottom"?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,r,o,i){for(var s=o,a=!1;s&&(s===o||!this.isValidNavigateCell(s));)this.gridOptionsService.get("enableRtl")?r===_.LEFT&&(s=this.getLastCellOfColSpan(s)):r===_.RIGHT&&(s=this.getLastCellOfColSpan(s)),s=this.cellNavigationService.getNextCellToFocus(r,s),a=H(s);if(a&&e&&e.key===_.UP&&(s={rowIndex:-1,rowPinned:null,column:o.column}),i){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(P(l)){var u={key:r,previousCellPosition:o,nextCellPosition:s||null,event:e},c=l(u);P(c)?(c.floating&&(V("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),c.rowPinned=c.floating),s={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}):s=null}}if(s){if(s.rowIndex<0){var p=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:p+s.rowIndex,column:o.column},event:e||void 0,fromCell:!0});return}var d=this.getNormalisedPosition(s);d?this.focusPosition(d):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var r=this.getCellByPosition(e);return r?(e=r.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,r){r===void 0&&(r=!1);var o=this.columnModel.getAllDisplayedColumns(),i=this.rowRenderer.getRowByPosition(e);if(!i||!i.isFullWidth())return!1;var s=this.focusService.getFocusedCell(),a={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(r?q(o):o[0])};this.focusPosition(a);var l=s!=null?this.rowPositionUtils.before(a,s):!1,u={type:g.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:a.column,isFullWidthCell:!0,floating:a.rowPinned,fromBelow:l};return this.eventService.dispatchEvent(u),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){var r=this.rowPositionUtils.getRowNode(e);return!!r},t.prototype.getLastCellOfColSpan=function(e){var r=this.getCellByPosition(e);if(!r)return e;var o=r.getColSpanningList();return o.length===1?e:{rowIndex:e.rowIndex,column:q(o),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var r=this.gridOptionsService.isGroupRowsSticky(),o=this.rowModel.getRow(e.rowIndex),i=r&&(o==null?void 0:o.sticky);!i&&H(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},Ae([v("mouseEventService")],t.prototype,"mouseEventService",void 0),Ae([v("paginationProxy")],t.prototype,"paginationProxy",void 0),Ae([v("focusService")],t.prototype,"focusService",void 0),Ae([Y("rangeService")],t.prototype,"rangeService",void 0),Ae([v("columnModel")],t.prototype,"columnModel",void 0),Ae([v("rowModel")],t.prototype,"rowModel",void 0),Ae([v("ctrlsService")],t.prototype,"ctrlsService",void 0),Ae([v("rowRenderer")],t.prototype,"rowRenderer",void 0),Ae([v("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Ae([v("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Ae([v("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Ae([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ae([F],t.prototype,"postConstruct",null),t=Ae([x("navigationService")],t),t}(D),Gv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Vv=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Hv=function(n){Gv(t,n);function t(e){var r=n.call(this,'
')||this;return r.params=e,r}return t.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,r=this.getGui(),o=this.params,i=function(s){Jo(e.gridOptionsService,s,o.node,o.column,!0)||o.onKeyDown(s)};this.addManagedListener(r,"keydown",i)},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",Vv([F],t.prototype,"postConstruct",null),t}(cr),Bv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),kv=function(n){Bv(t,n);function t(e,r,o,i,s){var a=n.call(this)||this;a.rendererVersion=0,a.editorVersion=0,a.beans=e,a.column=r.getColumn(),a.rowNode=r.getRowNode(),a.rowCtrl=r.getRowCtrl(),a.eRow=i,a.cellCtrl=r;var l=document.createElement("div");l.setAttribute("comp-id","".concat(a.getCompId())),a.setTemplateFromElement(l);var u=a.getGui();a.forceWrapper=r.isForceWrapper(),a.refreshWrapper(!1);var c=function(h,f){f!=null&&f!=""?u.setAttribute(h,f):u.removeAttribute(h)};le(u,r.getCellAriaRole()),c("col-id",r.getColumnIdSanitised());var p=r.getTabIndex();p!==void 0&&c("tabindex",p.toString());var d={addOrRemoveCssClass:function(h,f){return a.addOrRemoveCssClass(h,f)},setUserStyles:function(h){return Un(u,h)},getFocusableElement:function(){return a.getFocusableElement()},setIncludeSelection:function(h){return a.includeSelection=h},setIncludeRowDrag:function(h){return a.includeRowDrag=h},setIncludeDndSource:function(h){return a.includeDndSource=h},setRenderDetails:function(h,f,y){return a.setRenderDetails(h,f,y)},setEditDetails:function(h,f,y){return a.setEditDetails(h,f,y)},getCellEditor:function(){return a.cellEditor||null},getCellRenderer:function(){return a.cellRenderer||null},getParentOfValue:function(){return a.getParentOfValue()}};return r.setComp(d,a.getGui(),a.eCellWrapper,o,s),a}return t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,r,o){var i=this.cellEditor&&!this.cellEditorPopupWrapper;if(!i){this.firstRender=this.firstRender==null;var s=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e){var a=o||s,l=a?!1:this.refreshCellRenderer(e);l||(this.destroyRenderer(),this.createCellRendererInstance(e))}else this.destroyRenderer(),this.insertValueWithoutCellRenderer(r)}},t.prototype.setEditDetails=function(e,r,o){e?this.createCellEditorInstance(e,r,o):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var r=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=r||this.forceWrapper,i=o&&this.eCellWrapper==null;if(i){var s=document.createElement("div");s.setAttribute("role","presentation"),s.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=s,this.getGui().appendChild(this.eCellWrapper)}var a=!o&&this.eCellWrapper!=null;a&&(ft(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var l=!e&&o,u=l&&this.eCellValue==null;if(u){var c=document.createElement("span");c.setAttribute("role","presentation"),c.setAttribute("class","ag-cell-value"),this.eCellValue=c,this.eCellWrapper.appendChild(this.eCellValue)}var p=!l&&this.eCellValue!=null;p&&(ft(this.eCellValue),this.eCellValue=void 0);var d=i||a||u||p;return d&&this.removeControls(),e||r&&this.addControls(),d},t.prototype.addControls=function(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},t.prototype.createCellEditorInstance=function(e,r,o){var i=this,s=this.editorVersion,a=e.newAgStackInstance();if(a){var l=e.params;a.then(function(c){return i.afterCellEditorCreated(s,c,l,r,o)});var u=H(this.cellEditor);u&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var r=this.getParentOfValue();de(r);var o=e!=null?ae(e,!0):null;o!=null&&(r.textContent=o)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),ft(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),ft(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==e.componentClass)return!1;var r=this.cellRenderer.refresh(e.params);return r===!0||r===void 0},t.prototype.createCellRendererInstance=function(e){var r=this,o=this.beans.gridOptionsService.get("suppressAnimationFrame"),i=!o,s=this.rendererVersion,a=e.componentClass,l=function(){var u=r.rendererVersion!==s||!r.isAlive();if(!u){var c=e.newAgStackInstance(),p=r.afterCellRendererCreated.bind(r,s,a);c&&c.then(p)}};i&&this.firstRender?this.beans.animationFrameService.createTask(l,this.rowNode.rowIndex,"createTasksP2"):l()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,r,o){var i=!this.isAlive()||e!==this.rendererVersion;if(i){this.beans.context.destroyBean(o);return}if(this.cellRenderer=o,this.cellRendererClass=r,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){var s=this.getParentOfValue();de(s),s.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,r,o,i,s){var a=e!==this.editorVersion;if(a){this.beans.context.destroyBean(r);return}var l=r.isCancelBeforeStart&&r.isCancelBeforeStart();if(l){this.beans.context.destroyBean(r),this.cellCtrl.stopEditing(!0);return}if(!r.getGui){console.warn("AG Grid: cellEditor for column ".concat(this.column.getId()," is missing getGui() method")),this.beans.context.destroyBean(r);return}this.cellEditor=r,this.cellEditorGui=r.getGui();var u=i||r.isPopup!==void 0&&r.isPopup();u?this.addPopupCellEditor(o,s):this.addInCellEditor(),this.refreshEditStyles(!0,u),r.afterGuiAttached&&r.afterGuiAttached()},t.prototype.refreshEditStyles=function(e,r){var o;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!r),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!r),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!r),(o=this.rowCtrl)===null||o===void 0||o.setInlineEditingCss(e)},t.prototype.addInCellEditor=function(){var e=this.getGui(),r=this.beans.gridOptionsService.getDocument();if(e.contains(r.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui){var o=this.getParentOfValue();o.appendChild(this.cellEditorGui)}},t.prototype.addPopupCellEditor=function(e,r){var o=this;this.beans.gridOptionsService.get("editType")==="fullRow"&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var i=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Hv(e));var s=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&s.appendChild(this.cellEditorGui);var a=this.beans.popupService,l=this.beans.gridOptionsService.get("stopEditingWhenCellsLoseFocus"),u=r??(i.getPopupPosition?i.getPopupPosition():"over"),c=this.beans.gridOptionsService.get("enableRtl"),p={ePopup:s,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:u,alignSide:c?"right":"left",keepWithinBounds:!0},d=a.positionPopupByComponent.bind(a,p),h=this.beans.localeService.getLocaleTextFunc(),f=a.addPopup({modal:l,eChild:s,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:d,ariaLabel:h("ariaLabelCellEditor","Cell Editor")});f&&(this.hideEditorPopup=f.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),n.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),r=this.beans.gridOptionsService.getDocument();e.contains(r.activeElement)&&Fn()&&e.focus({preventScroll:!0}),de(this.getParentOfValue())},t}(k),Wv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),jv=function(n){Wv(t,n);function t(e,r,o){var i=n.call(this)||this;i.cellComps={},i.beans=r,i.rowCtrl=e;var s=document.createElement("div");s.setAttribute("comp-id","".concat(i.getCompId())),s.setAttribute("style",i.getInitialStyle(o)),i.setTemplateFromElement(s);var a=i.getGui(),l=a.style;i.domOrder=i.rowCtrl.getDomOrder(),le(a,"row");var u=i.rowCtrl.getTabIndex();u!=null&&a.setAttribute("tabindex",u.toString());var c={setDomOrder:function(p){return i.domOrder=p},setCellCtrls:function(p){return i.setCellCtrls(p)},showFullWidth:function(p){return i.showFullWidth(p)},getFullWidthCellRenderer:function(){return i.getFullWidthCellRenderer()},addOrRemoveCssClass:function(p,d){return i.addOrRemoveCssClass(p,d)},setUserStyles:function(p){return Un(a,p)},setTop:function(p){return l.top=p},setTransform:function(p){return l.transform=p},setRowIndex:function(p){return a.setAttribute("row-index",p)},setRowId:function(p){return a.setAttribute("row-id",p)},setRowBusinessKey:function(p){return a.setAttribute("row-business-key",p)},refreshFullWidth:function(p){return i.refreshFullWidth(p)}};return e.setComp(c,i.getGui(),o),i.addDestroyFunc(function(){e.unsetComp(o)}),i}return t.prototype.getInitialStyle=function(e){var r=this.rowCtrl.getInitialTransform(e);return r?"transform: ".concat(r):"top: ".concat(this.rowCtrl.getInitialRowTop(e))},t.prototype.showFullWidth=function(e){var r=this,o=function(s){if(r.isAlive()){var a=s.getGui();r.getGui().appendChild(a),r.rowCtrl.setupDetailRowAutoHeight(a),r.setFullWidthRowComp(s)}else r.beans.context.destroyBean(s)},i=e.newAgStackInstance();i&&i.then(o)},t.prototype.setCellCtrls=function(e){var r=this,o=Object.assign({},this.cellComps);e.forEach(function(s){var a=s.getInstanceId(),l=r.cellComps[a];l==null?r.newCellComp(s):o[a]=null});var i=It(o).filter(function(s){return s!=null});this.destroyCells(i),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var r=this;if(this.domOrder){var o=[];e.forEach(function(i){var s=r.cellComps[i.getInstanceId()];s&&o.push(s.getGui())}),jn(this.getGui(),o)}},t.prototype.newCellComp=function(e){var r=new kv(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=r,this.getGui().appendChild(r.getGui())},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=It(this.cellComps).filter(function(r){return r!=null});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var r=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){r.fullWidthCellRenderer=r.beans.context.destroyBean(r.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var r=this;e.forEach(function(o){if(o){var i=o.getCtrl().getInstanceId();r.cellComps[i]===o&&(o.detach(),o.destroy(),r.cellComps[i]=null)}})},t.prototype.refreshFullWidth=function(e){var r=this.fullWidthCellRenderer;if(!r||!r.refresh)return!1;var o=e();return r.refresh(o)},t}(k),Uv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rs=function(){return Rs=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};function zv(){var n=k.elementGettingCreated.getAttribute("name"),t=lu.getRowContainerCssClasses(n),e,r=n===T.CENTER||n===T.TOP_CENTER||n===T.STICKY_TOP_CENTER||n===T.BOTTOM_CENTER;return r?e='`),Fv=function(n){Av(t,n);function t(){return n.call(this,bv)||this}return t.prototype.init=function(){var e=this,r=function(i,s){var a="".concat(i,"px");s.style.minHeight=a,s.style.height=a},o={setRowAnimationCssOnBodyViewport:function(i,s){return e.setRowAnimationCssOnBodyViewport(i,s)},setColumnCount:function(i){return ja(e.getGui(),i)},setRowCount:function(i){return Wa(e.getGui(),i)},setTopHeight:function(i){return r(i,e.eTop)},setBottomHeight:function(i){return r(i,e.eBottom)},setTopDisplay:function(i){return e.eTop.style.display=i},setBottomDisplay:function(i){return e.eBottom.style.display=i},setStickyTopHeight:function(i){return e.eStickyTop.style.height=i},setStickyTopTop:function(i){return e.eStickyTop.style.top=i},setStickyTopWidth:function(i){return e.eStickyTop.style.width=i},setColumnMovingCss:function(i,s){return e.addOrRemoveCssClass(i,s)},updateLayoutClasses:function(i,s){var a=[e.eBodyViewport.classList,e.eBody.classList];a.forEach(function(l){l.toggle(pe.AUTO_HEIGHT,s.autoHeight),l.toggle(pe.NORMAL,s.normal),l.toggle(pe.PRINT,s.print)}),e.addOrRemoveCssClass(pe.AUTO_HEIGHT,s.autoHeight),e.addOrRemoveCssClass(pe.NORMAL,s.normal),e.addOrRemoveCssClass(pe.PRINT,s.print)},setAlwaysVerticalScrollClass:function(i,s){return e.eBodyViewport.classList.toggle(eu,s)},registerBodyViewportResizeListener:function(i){var s=e.resizeObserverService.observeResize(e.eBodyViewport,i);e.addDestroyFunc(function(){return s()})},setPinnedTopBottomOverflowY:function(i){return e.eTop.style.overflowY=e.eBottom.style.overflowY=i},setCellSelectableCss:function(i,s){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(a){return a.classList.toggle(i,s)})},setBodyViewportWidth:function(i){return e.eBodyViewport.style.width=i}};this.ctrl=this.createManagedBean(new Tf),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService&&this.gridOptionsService.get("enableRangeSelection")||this.gridOptionsService.get("rowSelection")==="multiple")&&ka(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,r){var o=this.eBodyViewport.classList;o.toggle(Mr.ANIMATION_ON,r),o.toggle(Mr.ANIMATION_OFF,!r)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},At([v("resizeObserverService")],t.prototype,"resizeObserverService",void 0),At([Y("rangeService")],t.prototype,"rangeService",void 0),At([L("eBodyViewport")],t.prototype,"eBodyViewport",void 0),At([L("eStickyTop")],t.prototype,"eStickyTop",void 0),At([L("eTop")],t.prototype,"eTop",void 0),At([L("eBottom")],t.prototype,"eBottom",void 0),At([L("gridHeader")],t.prototype,"headerRootComp",void 0),At([L("eBody")],t.prototype,"eBody",void 0),At([F],t.prototype,"init",null),t}(k),Lv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Mv=function(n){Lv(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){var e=this;this.columnAnimationService.isActive()?this.columnAnimationService.executeLaterVMTurn(function(){e.columnAnimationService.executeLaterVMTurn(function(){return e.updateImpl()})}):this.updateImpl()},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(!(!e||this.columnAnimationService.isActive())){var r={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(r)}},t.prototype.setScrollsVisible=function(e){var r=this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing;if(r){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var o={type:g.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},yi([v("ctrlsService")],t.prototype,"ctrlsService",void 0),yi([v("columnAnimationService")],t.prototype,"columnAnimationService",void 0),yi([F],t.prototype,"postConstruct",null),t=yi([x("scrollVisibleService")],t),t}(D),Iv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),uu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},xv=function(n){Iv(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.gridInstanceId=e.gridInstanceSequence.next(),r}e=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(r){r[e.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(r){return ko(this.gridOptionsService,r.target,hr.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(r){var o=this.isElementInThisGrid(r.target);return o},t.prototype.isElementInThisGrid=function(r){for(var o=r;o;){var i=o[e.GRID_DOM_KEY];if(P(i)){var s=i===this.gridInstanceId;return s}o=o.parentElement}return!1},t.prototype.getCellPositionForEvent=function(r){var o=this.getRenderedCellForEvent(r);return o?o.getCellPosition():null},t.prototype.getNormalisedPosition=function(r){var o=this.gridOptionsService.isDomLayout("normal"),i=r,s,a;if(i.clientX!=null||i.clientY!=null?(s=i.clientX,a=i.clientY):(s=i.x,a=i.y),o){var l=this.ctrlsService.getGridBodyCtrl(),u=l.getScrollFeature().getVScrollPosition(),c=l.getScrollFeature().getHScrollPosition();s+=c.left,a+=u.top}return{x:s,y:a}};var e;return t.gridInstanceSequence=new Dr,t.GRID_DOM_KEY="__ag_grid_instance",uu([v("ctrlsService")],t.prototype,"ctrlsService",void 0),t=e=uu([x("mouseEventService")],t),t}(D),Nv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ci=function(){return Ci=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Gv=function(n){Nv(t,n);function t(){var e=n.call(this)||this;return e.onPageDown=Ji(e.onPageDown,100),e.onPageUp=Ji(e.onPageUp,100),e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){e.gridBodyCon=r.gridBodyCtrl})},t.prototype.handlePageScrollingKey=function(e,r){r===void 0&&(r=!1);var o=e.key,i=e.altKey,s=e.ctrlKey||e.metaKey,a=!!this.rangeService&&e.shiftKey,l=this.mouseEventService.getCellPositionForEvent(e),u=!1;switch(o){case _.PAGE_HOME:case _.PAGE_END:!s&&!i&&(this.onHomeOrEndKey(o),u=!0);break;case _.LEFT:case _.RIGHT:case _.UP:case _.DOWN:if(!l)return!1;s&&!i&&!a&&(this.onCtrlUpDownLeftRight(o,l),u=!0);break;case _.PAGE_DOWN:case _.PAGE_UP:!s&&!i&&(u=this.handlePageUpDown(o,l,r));break}return u&&e.preventDefault(),u},t.prototype.handlePageUpDown=function(e,r,o){return o&&(r=this.focusService.getFocusedCell()),r?(e===_.PAGE_UP?this.onPageUp(r):this.onPageDown(r),!0):!1},t.prototype.navigateTo=function(e){var r=e.scrollIndex,o=e.scrollType,i=e.scrollColumn,s=e.focusIndex,a=e.focusColumn;if(P(i)&&!i.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(i),P(r)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(r,o),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(s),this.focusService.setFocusedCell({rowIndex:s,column:a,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:s,rowPinned:null,column:a};this.rangeService.setRangeToCell(l)}},t.prototype.onPageDown=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition(),i=this.getViewportHeight(),s=this.paginationProxy.getPixelOffset(),a=o.top+i,l=this.paginationProxy.getRowIndexAtPixel(a+s);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l):this.navigateToNextPage(e,l)},t.prototype.onPageUp=function(e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition(),i=this.paginationProxy.getPixelOffset(),s=o.top,a=this.paginationProxy.getRowIndexAtPixel(s+i);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,a,!0):this.navigateToNextPage(e,a,!0)},t.prototype.navigateToNextPage=function(e,r,o){o===void 0&&(o=!1);var i=this.getViewportHeight(),s=this.paginationProxy.getPageFirstRow(),a=this.paginationProxy.getPageLastRow(),l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getRow(e.rowIndex),c=o?(u==null?void 0:u.rowHeight)-i-l:i-l,p=(u==null?void 0:u.rowTop)+c,d=this.paginationProxy.getRowIndexAtPixel(p+l);if(d===e.rowIndex){var h=o?-1:1;r=d=e.rowIndex+h}var f;o?(f="bottom",da&&(d=a),r>a&&(r=a)),this.isRowTallerThanView(d)&&(r=d,f="top"),this.navigateTo({scrollIndex:r,scrollType:f,scrollColumn:null,focusIndex:d,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,r,o){var i=this;o===void 0&&(o=!1),this.navigateTo({scrollIndex:r,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column}),setTimeout(function(){var s=i.getNextFocusIndexForAutoHeight(e,o);i.navigateTo({scrollIndex:r,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:s,focusColumn:e.column,isAsync:!0})},50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,r){var o;r===void 0&&(r=!1);for(var i=r?-1:1,s=this.getViewportHeight(),a=this.paginationProxy.getPageLastRow(),l=0,u=e.rowIndex;u>=0&&u<=a;){var c=this.paginationProxy.getRow(u);if(c){var p=(o=c.rowHeight)!==null&&o!==void 0?o:0;if(l+p>s)break;l+=p}u+=i}return Math.max(0,Math.min(u,a))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),r=e.getScrollFeature().getVScrollPosition(),o=this.gridOptionsService.getScrollbarWidth(),i=r.bottom-r.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(i-=o),i},t.prototype.isRowTallerThanView=function(e){var r=this.paginationProxy.getRow(e);if(!r)return!1;var o=r.rowHeight;return typeof o!="number"?!1:o>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,r){var o=this.cellNavigationService.getNextCellToFocus(e,r,!0),i=o.rowIndex,s=o.column;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:s,focusIndex:i,focusColumn:s})},t.prototype.onHomeOrEndKey=function(e){var r=e===_.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),i=r?o[0]:q(o),s=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:i,focusIndex:s,focusColumn:i})},t.prototype.onTabKeyDown=function(e,r){var o=r.shiftKey,i=this.tabToNextCellCommon(e,o,r);if(i){r.preventDefault();return}if(o){var s=e.getRowPosition(),a=s.rowIndex,l=s.rowPinned,u=l?a===0:a===this.paginationProxy.getPageFirstRow();u&&(this.gridOptionsService.get("headerHeight")===0||this.gridOptionsService.get("suppressHeaderFocus")?this.focusService.focusNextGridCoreContainer(!0,!0):(r.preventDefault(),this.focusService.focusPreviousFromFirstCell(r)))}else e instanceof hr&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&r.preventDefault()},t.prototype.tabToNextCell=function(e,r){var o=this.focusService.getFocusedCell();if(!o)return!1;var i=this.getCellByPosition(o);return!i&&(i=this.rowRenderer.getRowByPosition(o),!i||!i.isFullWidth())?!1:this.tabToNextCellCommon(i,e,r)},t.prototype.tabToNextCellCommon=function(e,r,o){var i=e.isEditing();if(!i&&e instanceof hr){var s=e,a=s.getRowCtrl();a&&(i=a.isEditing())}var l;return i?this.gridOptionsService.get("editType")==="fullRow"?l=this.moveToNextEditingRow(e,r,o):l=this.moveToNextEditingCell(e,r,o):l=this.moveToNextCellNotEditing(e,r),l||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,r,o){o===void 0&&(o=null);var i=e.getCellPosition();e.getGui().focus(),e.stopEditing();var s=this.findNextCellToFocusOn(i,r,!0);return s==null?!1:(s.startEditing(null,!0,o),s.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,r,o){o===void 0&&(o=null);var i=e.getCellPosition(),s=this.findNextCellToFocusOn(i,r,!0);if(s==null)return!1;var a=s.getCellPosition(),l=this.isCellEditable(i),u=this.isCellEditable(a),c=a&&i.rowIndex===a.rowIndex&&i.rowPinned===a.rowPinned;if(l&&e.setFocusOutOnEditor(),!c){var p=e.getRowCtrl();p.stopEditing();var d=s.getRowCtrl();d.startRowEditing(void 0,void 0,o)}return u?(s.setFocusInOnEditor(),s.focusCell()):s.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,r){var o=this.columnModel.getAllDisplayedColumns(),i;e instanceof fr?i=Ci(Ci({},e.getRowPosition()),{column:r?o[0]:q(o)}):i=e.getCellPosition();var s=this.findNextCellToFocusOn(i,r,!1);if(s instanceof hr)s.focusCell(!0);else if(s)return this.tryToFocusFullWidthRow(s.getRowPosition(),r);return P(s)},t.prototype.findNextCellToFocusOn=function(e,r,o){for(var i=e;;){e!==i&&(e=i),r||(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextTabbedCell(i,r);var s=this.gridOptionsService.getCallback("tabToNextCell");if(P(s)){var a={backwards:r,editing:o,previousCellPosition:e,nextCellPosition:i||null},l=s(a);P(l)?(l.floating&&(V("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),l.rowPinned=l.floating),i={rowIndex:l.rowIndex,column:l.column,rowPinned:l.rowPinned}):i=null}if(!i)return null;if(i.rowIndex<0){var u=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u+i.rowIndex,column:i.column},fromCell:!0}),null}var c=this.gridOptionsService.get("editType")==="fullRow";if(o&&!c){var p=this.isCellEditable(i);if(!p)continue}this.ensureCellVisible(i);var d=this.getCellByPosition(i);if(!d){var h=this.rowRenderer.getRowByPosition(i);if(!h||!h.isFullWidth()||o)continue;return h}if(!d.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(i),d}},t.prototype.isCellEditable=function(e){var r=this.lookupRowNodeForCell(e);return r?e.column.isCellEditable(r):!1},t.prototype.getCellByPosition=function(e){var r=this.rowRenderer.getRowByPosition(e);return r?r.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned==="top"?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned==="bottom"?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,r,o,i){for(var s=o,a=!1;s&&(s===o||!this.isValidNavigateCell(s));)this.gridOptionsService.get("enableRtl")?r===_.LEFT&&(s=this.getLastCellOfColSpan(s)):r===_.RIGHT&&(s=this.getLastCellOfColSpan(s)),s=this.cellNavigationService.getNextCellToFocus(r,s),a=H(s);if(a&&e&&e.key===_.UP&&(s={rowIndex:-1,rowPinned:null,column:o.column}),i){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(P(l)){var u={key:r,previousCellPosition:o,nextCellPosition:s||null,event:e},c=l(u);P(c)?(c.floating&&(V("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),c.rowPinned=c.floating),s={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}):s=null}}if(s){if(s.rowIndex<0){var p=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:p+s.rowIndex,column:o.column},event:e||void 0,fromCell:!0});return}var d=this.getNormalisedPosition(s);d?this.focusPosition(d):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var r=this.getCellByPosition(e);return r?(e=r.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,r){r===void 0&&(r=!1);var o=this.columnModel.getAllDisplayedColumns(),i=this.rowRenderer.getRowByPosition(e);if(!i||!i.isFullWidth())return!1;var s=this.focusService.getFocusedCell(),a={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(r?q(o):o[0])};this.focusPosition(a);var l=s!=null?this.rowPositionUtils.before(a,s):!1,u={type:g.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:a.column,isFullWidthCell:!0,floating:a.rowPinned,fromBelow:l};return this.eventService.dispatchEvent(u),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){var r=this.rowPositionUtils.getRowNode(e);return!!r},t.prototype.getLastCellOfColSpan=function(e){var r=this.getCellByPosition(e);if(!r)return e;var o=r.getColSpanningList();return o.length===1?e:{rowIndex:e.rowIndex,column:q(o),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var r=this.gridOptionsService.isGroupRowsSticky(),o=this.rowModel.getRow(e.rowIndex),i=r&&(o==null?void 0:o.sticky);!i&&H(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},be([v("mouseEventService")],t.prototype,"mouseEventService",void 0),be([v("paginationProxy")],t.prototype,"paginationProxy",void 0),be([v("focusService")],t.prototype,"focusService",void 0),be([Y("rangeService")],t.prototype,"rangeService",void 0),be([v("columnModel")],t.prototype,"columnModel",void 0),be([v("rowModel")],t.prototype,"rowModel",void 0),be([v("ctrlsService")],t.prototype,"ctrlsService",void 0),be([v("rowRenderer")],t.prototype,"rowRenderer",void 0),be([v("headerNavigationService")],t.prototype,"headerNavigationService",void 0),be([v("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),be([v("cellNavigationService")],t.prototype,"cellNavigationService",void 0),be([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),be([F],t.prototype,"postConstruct",null),t=be([x("navigationService")],t),t}(D),Vv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hv=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Bv=function(n){Vv(t,n);function t(e){var r=n.call(this,'
')||this;return r.params=e,r}return t.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,r=this.getGui(),o=this.params,i=function(s){Zo(e.gridOptionsService,s,o.node,o.column,!0)||o.onKeyDown(s)};this.addManagedListener(r,"keydown",i)},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",Hv([F],t.prototype,"postConstruct",null),t}(cr),kv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wv=function(n){kv(t,n);function t(e,r,o,i,s){var a=n.call(this)||this;a.rendererVersion=0,a.editorVersion=0,a.beans=e,a.column=r.getColumn(),a.rowNode=r.getRowNode(),a.rowCtrl=r.getRowCtrl(),a.eRow=i,a.cellCtrl=r;var l=document.createElement("div");l.setAttribute("comp-id","".concat(a.getCompId())),a.setTemplateFromElement(l);var u=a.getGui();a.forceWrapper=r.isForceWrapper(),a.refreshWrapper(!1);var c=function(h,f){f!=null&&f!=""?u.setAttribute(h,f):u.removeAttribute(h)};le(u,r.getCellAriaRole()),c("col-id",r.getColumnIdSanitised());var p=r.getTabIndex();p!==void 0&&c("tabindex",p.toString());var d={addOrRemoveCssClass:function(h,f){return a.addOrRemoveCssClass(h,f)},setUserStyles:function(h){return Un(u,h)},getFocusableElement:function(){return a.getFocusableElement()},setIncludeSelection:function(h){return a.includeSelection=h},setIncludeRowDrag:function(h){return a.includeRowDrag=h},setIncludeDndSource:function(h){return a.includeDndSource=h},setRenderDetails:function(h,f,y){return a.setRenderDetails(h,f,y)},setEditDetails:function(h,f,y){return a.setEditDetails(h,f,y)},getCellEditor:function(){return a.cellEditor||null},getCellRenderer:function(){return a.cellRenderer||null},getParentOfValue:function(){return a.getParentOfValue()}};return r.setComp(d,a.getGui(),a.eCellWrapper,o,s),a}return t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,r,o){var i=this.cellEditor&&!this.cellEditorPopupWrapper;if(!i){this.firstRender=this.firstRender==null;var s=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e){var a=o||s,l=a?!1:this.refreshCellRenderer(e);l||(this.destroyRenderer(),this.createCellRendererInstance(e))}else this.destroyRenderer(),this.insertValueWithoutCellRenderer(r)}},t.prototype.setEditDetails=function(e,r,o){e?this.createCellEditorInstance(e,r,o):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var r=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=r||this.forceWrapper,i=o&&this.eCellWrapper==null;if(i){var s=document.createElement("div");s.setAttribute("role","presentation"),s.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=s,this.getGui().appendChild(this.eCellWrapper)}var a=!o&&this.eCellWrapper!=null;a&&(ft(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var l=!e&&o,u=l&&this.eCellValue==null;if(u){var c=document.createElement("span");c.setAttribute("role","presentation"),c.setAttribute("class","ag-cell-value"),this.eCellValue=c,this.eCellWrapper.appendChild(this.eCellValue)}var p=!l&&this.eCellValue!=null;p&&(ft(this.eCellValue),this.eCellValue=void 0);var d=i||a||u||p;return d&&this.removeControls(),e||r&&this.addControls(),d},t.prototype.addControls=function(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},t.prototype.createCellEditorInstance=function(e,r,o){var i=this,s=this.editorVersion,a=e.newAgStackInstance();if(a){var l=e.params;a.then(function(c){return i.afterCellEditorCreated(s,c,l,r,o)});var u=H(this.cellEditor);u&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var r=this.getParentOfValue();de(r);var o=e!=null?ae(e,!0):null;o!=null&&(r.textContent=o)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),ft(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),ft(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==e.componentClass)return!1;var r=this.cellRenderer.refresh(e.params);return r===!0||r===void 0},t.prototype.createCellRendererInstance=function(e){var r=this,o=this.beans.gridOptionsService.get("suppressAnimationFrame"),i=!o,s=this.rendererVersion,a=e.componentClass,l=function(){var u=r.rendererVersion!==s||!r.isAlive();if(!u){var c=e.newAgStackInstance(),p=r.afterCellRendererCreated.bind(r,s,a);c&&c.then(p)}};i&&this.firstRender?this.beans.animationFrameService.createTask(l,this.rowNode.rowIndex,"createTasksP2"):l()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,r,o){var i=!this.isAlive()||e!==this.rendererVersion;if(i){this.beans.context.destroyBean(o);return}if(this.cellRenderer=o,this.cellRendererClass=r,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){var s=this.getParentOfValue();de(s),s.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,r,o,i,s){var a=e!==this.editorVersion;if(a){this.beans.context.destroyBean(r);return}var l=r.isCancelBeforeStart&&r.isCancelBeforeStart();if(l){this.beans.context.destroyBean(r),this.cellCtrl.stopEditing(!0);return}if(!r.getGui){console.warn("AG Grid: cellEditor for column ".concat(this.column.getId()," is missing getGui() method")),this.beans.context.destroyBean(r);return}this.cellEditor=r,this.cellEditorGui=r.getGui();var u=i||r.isPopup!==void 0&&r.isPopup();u?this.addPopupCellEditor(o,s):this.addInCellEditor(),this.refreshEditStyles(!0,u),r.afterGuiAttached&&r.afterGuiAttached()},t.prototype.refreshEditStyles=function(e,r){var o;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!r),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!r),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!r),(o=this.rowCtrl)===null||o===void 0||o.setInlineEditingCss(e)},t.prototype.addInCellEditor=function(){var e=this.getGui(),r=this.beans.gridOptionsService.getDocument();if(e.contains(r.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui){var o=this.getParentOfValue();o.appendChild(this.cellEditorGui)}},t.prototype.addPopupCellEditor=function(e,r){var o=this;this.beans.gridOptionsService.get("editType")==="fullRow"&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var i=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Bv(e));var s=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&s.appendChild(this.cellEditorGui);var a=this.beans.popupService,l=this.beans.gridOptionsService.get("stopEditingWhenCellsLoseFocus"),u=r??(i.getPopupPosition?i.getPopupPosition():"over"),c=this.beans.gridOptionsService.get("enableRtl"),p={ePopup:s,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:u,alignSide:c?"right":"left",keepWithinBounds:!0},d=a.positionPopupByComponent.bind(a,p),h=this.beans.localeService.getLocaleTextFunc(),f=a.addPopup({modal:l,eChild:s,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:d,ariaLabel:h("ariaLabelCellEditor","Cell Editor")});f&&(this.hideEditorPopup=f.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),n.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),r=this.beans.gridOptionsService.getDocument();e.contains(r.activeElement)&&Fn()&&e.focus({preventScroll:!0}),de(this.getParentOfValue())},t}(k),jv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Uv=function(n){jv(t,n);function t(e,r,o){var i=n.call(this)||this;i.cellComps={},i.beans=r,i.rowCtrl=e;var s=document.createElement("div");s.setAttribute("comp-id","".concat(i.getCompId())),s.setAttribute("style",i.getInitialStyle(o)),i.setTemplateFromElement(s);var a=i.getGui(),l=a.style;i.domOrder=i.rowCtrl.getDomOrder(),le(a,"row");var u=i.rowCtrl.getTabIndex();u!=null&&a.setAttribute("tabindex",u.toString());var c={setDomOrder:function(p){return i.domOrder=p},setCellCtrls:function(p){return i.setCellCtrls(p)},showFullWidth:function(p){return i.showFullWidth(p)},getFullWidthCellRenderer:function(){return i.getFullWidthCellRenderer()},addOrRemoveCssClass:function(p,d){return i.addOrRemoveCssClass(p,d)},setUserStyles:function(p){return Un(a,p)},setTop:function(p){return l.top=p},setTransform:function(p){return l.transform=p},setRowIndex:function(p){return a.setAttribute("row-index",p)},setRowId:function(p){return a.setAttribute("row-id",p)},setRowBusinessKey:function(p){return a.setAttribute("row-business-key",p)},refreshFullWidth:function(p){return i.refreshFullWidth(p)}};return e.setComp(c,i.getGui(),o),i.addDestroyFunc(function(){e.unsetComp(o)}),i}return t.prototype.getInitialStyle=function(e){var r=this.rowCtrl.getInitialTransform(e);return r?"transform: ".concat(r):"top: ".concat(this.rowCtrl.getInitialRowTop(e))},t.prototype.showFullWidth=function(e){var r=this,o=function(s){if(r.isAlive()){var a=s.getGui();r.getGui().appendChild(a),r.rowCtrl.setupDetailRowAutoHeight(a),r.setFullWidthRowComp(s)}else r.beans.context.destroyBean(s)},i=e.newAgStackInstance();i&&i.then(o)},t.prototype.setCellCtrls=function(e){var r=this,o=Object.assign({},this.cellComps);e.forEach(function(s){var a=s.getInstanceId(),l=r.cellComps[a];l==null?r.newCellComp(s):o[a]=null});var i=It(o).filter(function(s){return s!=null});this.destroyCells(i),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var r=this;if(this.domOrder){var o=[];e.forEach(function(i){var s=r.cellComps[i.getInstanceId()];s&&o.push(s.getGui())}),jn(this.getGui(),o)}},t.prototype.newCellComp=function(e){var r=new Wv(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=r,this.getGui().appendChild(r.getGui())},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=It(this.cellComps).filter(function(r){return r!=null});this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var r=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){r.fullWidthCellRenderer=r.beans.context.destroyBean(r.fullWidthCellRenderer)})},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var r=this;e.forEach(function(o){if(o){var i=o.getCtrl().getInstanceId();r.cellComps[i]===o&&(o.detach(),o.destroy(),r.cellComps[i]=null)}})},t.prototype.refreshFullWidth=function(e){var r=this.fullWidthCellRenderer;if(!r||!r.refresh)return!1;var o=e();return r.refresh(o)},t}(k),zv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Rs=function(){return Rs=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};function Kv(){var n=k.elementGettingCreated.getAttribute("name"),t=lu.getRowContainerCssClasses(n),e,r=n===T.CENTER||n===T.TOP_CENTER||n===T.STICKY_TOP_CENTER||n===T.BOTTOM_CENTER;return r?e='`):e='
'),e}var Kv=function(n){Uv(t,n);function t(){var e=n.call(this,zv())||this;return e.rowComps={},e.name=k.elementGettingCreated.getAttribute("name"),e.type=Ov(e.name),e}return t.prototype.postConstruct=function(){var e=this,r={setViewportHeight:function(i){return e.eViewport.style.height=i},setRowCtrls:function(i){var s=i.rowCtrls;return e.setRowCtrls(s)},setDomOrder:function(i){e.domOrder=i},setContainerWidth:function(i){return e.eContainer.style.width=i}},o=this.createManagedBean(new lu(this.name));o.setComp(r,this.eContainer,this.eViewport)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var r=this,o=Rs({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;var i=function(s){var a=s.getInstanceId(),l=o[a];if(l)r.rowComps[a]=l,delete o[a],r.ensureDomOrder(l.getGui());else{if(!s.getRowNode().displayed)return;var u=new jv(s,r.beans,r.type);r.rowComps[a]=u,r.appendRow(u.getGui())}};e.forEach(i),It(o).forEach(function(s){r.eContainer.removeChild(s.getGui()),s.destroy()}),le(this.eContainer,"rowgroup")},t.prototype.appendRow=function(e){this.domOrder?tl(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(Wn(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},po([v("beans")],t.prototype,"beans",void 0),po([L("eViewport")],t.prototype,"eViewport",void 0),po([L("eContainer")],t.prototype,"eContainer",void 0),po([F],t.prototype,"postConstruct",null),po([Se],t.prototype,"preDestroy",null),t}(k),cu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$v=function(){function n(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return n.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsService.get("functionsReadOnly")){var r=t.dragItem.columns;r&&r.forEach(function(o){o.isPrimary()&&(o.isAnyFunctionActive()||(o.isAllowValue()?e.columnsToAggregate.push(o):o.isAllowRowGroup()?e.columnsToGroup.push(o):o.isAllowPivot()&&e.columnsToPivot.push(o)))})}},n.prototype.getIconName=function(){var t=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return t>0?this.pinned?he.ICON_PINNED:he.ICON_MOVE:null},n.prototype.onDragLeave=function(t){this.clearColumnsList()},n.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},n.prototype.onDragging=function(t){},n.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},cu([v("columnModel")],n.prototype,"columnModel",void 0),cu([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n}(),Yv=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},vr=function(){function n(){}return n.attemptMoveColumns=function(t){var e=t.isFromHeader,r=t.hDirection,o=t.xPosition,i=t.fromEnter,s=t.fakeEvent,a=t.pinned,l=t.gridOptionsService,u=t.columnModel,c=r===Ue.Left,p=r===Ue.Right,d=t.allMovingColumns;if(e){var h=[];d.forEach(function(I){for(var W,ee=null,oe=I.getParent();oe!=null&&oe.getDisplayedLeafColumns().length===1;)ee=oe,oe=oe.getParent();if(ee!=null){var Z=!!(!((W=ee.getColGroupDef())===null||W===void 0)&&W.marryChildren),te=Z?ee.getProvidedColumnGroup().getLeafColumns():ee.getLeafColumns();te.forEach(function(Q){h.includes(Q)||h.push(Q)})}else h.includes(I)||h.push(I)}),d=h}var f=d.slice();u.sortColumnsLikeGridColumns(f);var y=this.calculateValidMoves({movingCols:f,draggingRight:p,xPosition:o,pinned:a,gridOptionsService:l,columnModel:u}),m=this.calculateOldIndex(f,u);if(y.length!==0){var C=y[0],w=m!==null&&!i;if(e&&(w=m!==null),!(w&&!s&&(c&&C>=m||p&&C<=m))){for(var E=u.getAllDisplayedColumns(),S=[],R=null,O=0;Ou.length?[l,u]:[u,l],2),l=a[0],u=a[1],l.forEach(function(c){u.indexOf(c)===-1&&r++})},i=0;i0){for(var C=0;C0){var S=d[f-1];E=h.indexOf(S)+1}else E=h.indexOf(d[0]),E===-1&&(E=0);var R=[E],O=function(I,W){return I-W};if(r){for(var b=E+1,A=c.length-1;b<=A;)R.push(b),b++;R.sort(O)}else{for(var b=E,A=c.length-1,M=c[b];b<=A&&u.indexOf(M)<0;)b++,R.push(b),M=c[b];b=E-1;for(var N=0;b>=N;)R.push(b),b--;R.sort(O).reverse()}return R},n.normaliseX=function(t,e,r,o,i){var s=i.getHeaderRowContainerCtrl(e).getViewport();if(r&&(t-=s.getBoundingClientRect().left),o.get("enableRtl")){var a=s.clientWidth;t=a-t}return e==null&&(t+=i.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},n}(),ho=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},qv=function(){function n(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=t,this.eContainer=e,this.centerContainer=!P(t)}return n.prototype.init=function(){var t=this;this.ctrlsService.whenReady(function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()})},n.prototype.getIconName=function(){return this.pinned?he.ICON_PINNED:he.ICON_MOVE},n.prototype.onDragEnter=function(t){var e=t.dragItem.columns,r=t.dragSource.type===Te.ToolPanel;if(r)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=t.dragItem.visibleState,i=(e||[]).filter(function(s){return o[s.getId()]});this.setColumnsVisible(i,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},n.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},n.prototype.setColumnsVisible=function(t,e,r){if(t){var o=t.filter(function(i){return!i.getColDef().lockVisible});this.columnModel.setColumnsVisible(o,e,r)}},n.prototype.setColumnsPinned=function(t,e,r){if(t){var o=t.filter(function(i){return!i.getColDef().lockPinned});this.columnModel.setColumnsPinned(o,e,r)}},n.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},n.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),r=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.get("enableRtl")?(this.needToMoveRight=tr-50):(this.needToMoveLeft=tr-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},n.prototype.onDragging=function(t,e,r,o){var i=this,s;if(t===void 0&&(t=this.lastDraggingEvent),e===void 0&&(e=!1),r===void 0&&(r=!1),o===void 0&&(o=!1),o){if(this.lastMovedInfo){var a=this.lastMovedInfo,l=a.columns,u=a.toIndex;vr.moveColumns(l,u,"uiColumnMoved",!0,this.columnModel)}return}if(this.lastDraggingEvent=t,!H(t.hDirection)){var c=vr.normaliseX(t.x,this.pinned,!1,this.gridOptionsService,this.ctrlsService);e||this.checkCenterForScrolling(c);var p=this.normaliseDirection(t.hDirection),d=t.dragSource.type,h=((s=t.dragSource.getDragItem().columns)===null||s===void 0?void 0:s.filter(function(y){return y.getColDef().lockPinned?y.getPinned()==i.pinned:!0}))||[],f=vr.attemptMoveColumns({allMovingColumns:h,isFromHeader:d===Te.HeaderCell,hDirection:p,xPosition:c,pinned:this.pinned,fromEnter:e,fakeEvent:r,gridOptionsService:this.gridOptionsService,columnModel:this.columnModel});f&&(this.lastMovedInfo=f)}},n.prototype.normaliseDirection=function(t){if(this.gridOptionsService.get("enableRtl"))switch(t){case Ue.Left:return Ue.Right;case Ue.Right:return Ue.Left;default:console.error("AG Grid: Unknown direction ".concat(t))}else return t},n.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(he.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(he.ICON_RIGHT,!0))},n.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(he.ICON_MOVE))},n.prototype.moveInterval=function(){var t;this.intervalCount++,t=10+this.intervalCount*5,t>100&&(t=100);var e=null,r=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=r.scrollHorizontally(-t):this.needToMoveRight&&(e=r.scrollHorizontally(t)),e!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns,i=o.filter(function(a){return!a.getColDef().lockPinned});if(i.length>0&&(this.dragAndDropService.setGhostIcon(he.ICON_PINNED),this.failedMoveAttempts>7)){var s=this.needToMoveLeft?"left":"right";this.setColumnsPinned(i,s,"uiColumnDragged"),this.dragAndDropService.nudge()}}},ho([v("columnModel")],n.prototype,"columnModel",void 0),ho([v("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ho([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),ho([v("ctrlsService")],n.prototype,"ctrlsService",void 0),ho([F],n.prototype,"init",null),n}(),Qv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xv=function(n){Qv(t,n);function t(e,r){var o=n.call(this)||this;return o.pinned=e,o.eContainer=r,o}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){switch(e.pinned){case"left":e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.leftRowContainerCtrl.getContainerElement()],[r.bottomLeftRowContainerCtrl.getContainerElement()],[r.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.rightRowContainerCtrl.getContainerElement()],[r.bottomRightRowContainerCtrl.getContainerElement()],[r.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.centerRowContainerCtrl.getViewportElement()],[r.bottomCenterRowContainerCtrl.getViewportElement()],[r.topCenterRowContainerCtrl.getViewportElement()]];break}})},t.prototype.isInterestedIn=function(e){return e===Te.HeaderCell||e===Te.ToolPanel&&this.gridOptionsService.get("allowDragFromColumnsToolPanel")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new qv(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new $v(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===Te.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},fo([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),fo([v("columnModel")],t.prototype,"columnModel",void 0),fo([v("ctrlsService")],t.prototype,"ctrlsService",void 0),fo([F],t.prototype,"postConstruct",null),fo([F],t.prototype,"init",null),t}(D),Jv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ci=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zv=function(n){Jv(t,n);function t(e){var r=n.call(this,t.TEMPLATE,e)||this;return r.headerCompVersion=0,r.column=e.getColumnGroupChild(),r.pinned=e.getPinned(),r}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=function(a,l){l!=null&&l!=""?r.setAttribute(a,l):r.removeAttribute(a)};o("col-id",this.column.getColId());var i={setWidth:function(a){return r.style.width=a},addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},setAriaSort:function(a){return a?za(r,a):Ka(r)},setUserCompDetails:function(a){return e.setUserCompDetails(a)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);var s=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",s)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var r=this;this.headerCompVersion++;var o=this.headerCompVersion;e.newAgStackInstance().then(function(i){return r.afterCompCreated(o,i)})},t.prototype.afterCompCreated=function(e,r){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(r);return}this.destroyHeaderComp(),this.headerComp=r,this.headerCompGui=r.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())},t.TEMPLATE=`
+
`):e='
'),e}var $v=function(n){zv(t,n);function t(){var e=n.call(this,Kv())||this;return e.rowComps={},e.name=k.elementGettingCreated.getAttribute("name"),e.type=Tv(e.name),e}return t.prototype.postConstruct=function(){var e=this,r={setViewportHeight:function(i){return e.eViewport.style.height=i},setRowCtrls:function(i){var s=i.rowCtrls;return e.setRowCtrls(s)},setDomOrder:function(i){e.domOrder=i},setContainerWidth:function(i){return e.eContainer.style.width=i}},o=this.createManagedBean(new lu(this.name));o.setComp(r,this.eContainer,this.eViewport)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var r=this,o=Rs({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;var i=function(s){var a=s.getInstanceId(),l=o[a];if(l)r.rowComps[a]=l,delete o[a],r.ensureDomOrder(l.getGui());else{if(!s.getRowNode().displayed)return;var u=new Uv(s,r.beans,r.type);r.rowComps[a]=u,r.appendRow(u.getGui())}};e.forEach(i),It(o).forEach(function(s){r.eContainer.removeChild(s.getGui()),s.destroy()}),le(this.eContainer,"rowgroup")},t.prototype.appendRow=function(e){this.domOrder?tl(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(Wn(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},po([v("beans")],t.prototype,"beans",void 0),po([L("eViewport")],t.prototype,"eViewport",void 0),po([L("eContainer")],t.prototype,"eContainer",void 0),po([F],t.prototype,"postConstruct",null),po([we],t.prototype,"preDestroy",null),t}(k),cu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Yv=function(){function n(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return n.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsService.get("functionsReadOnly")){var r=t.dragItem.columns;r&&r.forEach(function(o){o.isPrimary()&&(o.isAnyFunctionActive()||(o.isAllowValue()?e.columnsToAggregate.push(o):o.isAllowRowGroup()?e.columnsToGroup.push(o):o.isAllowPivot()&&e.columnsToPivot.push(o)))})}},n.prototype.getIconName=function(){var t=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return t>0?this.pinned?he.ICON_PINNED:he.ICON_MOVE:null},n.prototype.onDragLeave=function(t){this.clearColumnsList()},n.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},n.prototype.onDragging=function(t){},n.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},cu([v("columnModel")],n.prototype,"columnModel",void 0),cu([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n}(),qv=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},vr=function(){function n(){}return n.attemptMoveColumns=function(t){var e=t.isFromHeader,r=t.hDirection,o=t.xPosition,i=t.fromEnter,s=t.fakeEvent,a=t.pinned,l=t.gridOptionsService,u=t.columnModel,c=r===Ue.Left,p=r===Ue.Right,d=t.allMovingColumns;if(e){var h=[];d.forEach(function(I){for(var W,ee=null,oe=I.getParent();oe!=null&&oe.getDisplayedLeafColumns().length===1;)ee=oe,oe=oe.getParent();if(ee!=null){var J=!!(!((W=ee.getColGroupDef())===null||W===void 0)&&W.marryChildren),te=J?ee.getProvidedColumnGroup().getLeafColumns():ee.getLeafColumns();te.forEach(function(Q){h.includes(Q)||h.push(Q)})}else h.includes(I)||h.push(I)}),d=h}var f=d.slice();u.sortColumnsLikeGridColumns(f);var y=this.calculateValidMoves({movingCols:f,draggingRight:p,xPosition:o,pinned:a,gridOptionsService:l,columnModel:u}),C=this.calculateOldIndex(f,u);if(y.length!==0){var m=y[0],w=C!==null&&!i;if(e&&(w=C!==null),!(w&&!s&&(c&&m>=C||p&&m<=C))){for(var E=u.getAllDisplayedColumns(),S=[],R=null,O=0;Ou.length?[l,u]:[u,l],2),l=a[0],u=a[1],l.forEach(function(c){u.indexOf(c)===-1&&r++})},i=0;i0){for(var m=0;m0){var S=d[f-1];E=h.indexOf(S)+1}else E=h.indexOf(d[0]),E===-1&&(E=0);var R=[E],O=function(I,W){return I-W};if(r){for(var b=E+1,A=c.length-1;b<=A;)R.push(b),b++;R.sort(O)}else{for(var b=E,A=c.length-1,M=c[b];b<=A&&u.indexOf(M)<0;)b++,R.push(b),M=c[b];b=E-1;for(var N=0;b>=N;)R.push(b),b--;R.sort(O).reverse()}return R},n.normaliseX=function(t,e,r,o,i){var s=i.getHeaderRowContainerCtrl(e).getViewport();if(r&&(t-=s.getBoundingClientRect().left),o.get("enableRtl")){var a=s.clientWidth;t=a-t}return e==null&&(t+=i.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},n}(),ho=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Qv=function(){function n(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=t,this.eContainer=e,this.centerContainer=!P(t)}return n.prototype.init=function(){var t=this;this.ctrlsService.whenReady(function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()})},n.prototype.getIconName=function(){return this.pinned?he.ICON_PINNED:he.ICON_MOVE},n.prototype.onDragEnter=function(t){var e=t.dragItem.columns,r=t.dragSource.type===Pe.ToolPanel;if(r)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=t.dragItem.visibleState,i=(e||[]).filter(function(s){return o[s.getId()]});this.setColumnsVisible(i,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},n.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},n.prototype.setColumnsVisible=function(t,e,r){if(t){var o=t.filter(function(i){return!i.getColDef().lockVisible});this.columnModel.setColumnsVisible(o,e,r)}},n.prototype.setColumnsPinned=function(t,e,r){if(t){var o=t.filter(function(i){return!i.getColDef().lockPinned});this.columnModel.setColumnsPinned(o,e,r)}},n.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},n.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),r=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.get("enableRtl")?(this.needToMoveRight=tr-50):(this.needToMoveLeft=tr-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},n.prototype.onDragging=function(t,e,r,o){var i=this,s;if(t===void 0&&(t=this.lastDraggingEvent),e===void 0&&(e=!1),r===void 0&&(r=!1),o===void 0&&(o=!1),o){if(this.lastMovedInfo){var a=this.lastMovedInfo,l=a.columns,u=a.toIndex;vr.moveColumns(l,u,"uiColumnMoved",!0,this.columnModel)}return}if(this.lastDraggingEvent=t,!H(t.hDirection)){var c=vr.normaliseX(t.x,this.pinned,!1,this.gridOptionsService,this.ctrlsService);e||this.checkCenterForScrolling(c);var p=this.normaliseDirection(t.hDirection),d=t.dragSource.type,h=((s=t.dragSource.getDragItem().columns)===null||s===void 0?void 0:s.filter(function(y){return y.getColDef().lockPinned?y.getPinned()==i.pinned:!0}))||[],f=vr.attemptMoveColumns({allMovingColumns:h,isFromHeader:d===Pe.HeaderCell,hDirection:p,xPosition:c,pinned:this.pinned,fromEnter:e,fakeEvent:r,gridOptionsService:this.gridOptionsService,columnModel:this.columnModel});f&&(this.lastMovedInfo=f)}},n.prototype.normaliseDirection=function(t){if(this.gridOptionsService.get("enableRtl"))switch(t){case Ue.Left:return Ue.Right;case Ue.Right:return Ue.Left;default:console.error("AG Grid: Unknown direction ".concat(t))}else return t},n.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(he.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(he.ICON_RIGHT,!0))},n.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(he.ICON_MOVE))},n.prototype.moveInterval=function(){var t;this.intervalCount++,t=10+this.intervalCount*5,t>100&&(t=100);var e=null,r=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=r.scrollHorizontally(-t):this.needToMoveRight&&(e=r.scrollHorizontally(t)),e!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns,i=o.filter(function(a){return!a.getColDef().lockPinned});if(i.length>0&&(this.dragAndDropService.setGhostIcon(he.ICON_PINNED),this.failedMoveAttempts>7)){var s=this.needToMoveLeft?"left":"right";this.setColumnsPinned(i,s,"uiColumnDragged"),this.dragAndDropService.nudge()}}},ho([v("columnModel")],n.prototype,"columnModel",void 0),ho([v("dragAndDropService")],n.prototype,"dragAndDropService",void 0),ho([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),ho([v("ctrlsService")],n.prototype,"ctrlsService",void 0),ho([F],n.prototype,"init",null),n}(),Xv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zv=function(n){Xv(t,n);function t(e,r){var o=n.call(this)||this;return o.pinned=e,o.eContainer=r,o}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(r){switch(e.pinned){case"left":e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.leftRowContainerCtrl.getContainerElement()],[r.bottomLeftRowContainerCtrl.getContainerElement()],[r.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.rightRowContainerCtrl.getContainerElement()],[r.bottomRightRowContainerCtrl.getContainerElement()],[r.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[r.gridBodyCtrl.getBodyViewportElement(),r.centerRowContainerCtrl.getViewportElement()],[r.bottomCenterRowContainerCtrl.getViewportElement()],[r.topCenterRowContainerCtrl.getViewportElement()]];break}})},t.prototype.isInterestedIn=function(e){return e===Pe.HeaderCell||e===Pe.ToolPanel&&this.gridOptionsService.get("allowDragFromColumnsToolPanel")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Qv(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Yv(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===Pe.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},fo([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),fo([v("columnModel")],t.prototype,"columnModel",void 0),fo([v("ctrlsService")],t.prototype,"ctrlsService",void 0),fo([F],t.prototype,"postConstruct",null),fo([F],t.prototype,"init",null),t}(D),Jv=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),mi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},eg=function(n){Jv(t,n);function t(e){var r=n.call(this,t.TEMPLATE,e)||this;return r.headerCompVersion=0,r.column=e.getColumnGroupChild(),r.pinned=e.getPinned(),r}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=function(a,l){l!=null&&l!=""?r.setAttribute(a,l):r.removeAttribute(a)};o("col-id",this.column.getColId());var i={setWidth:function(a){return r.style.width=a},addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},setAriaSort:function(a){return a?za(r,a):Ka(r)},setUserCompDetails:function(a){return e.setUserCompDetails(a)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);var s=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",s)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var r=this;this.headerCompVersion++;var o=this.headerCompVersion;e.newAgStackInstance().then(function(i){return r.afterCompCreated(o,i)})},t.prototype.afterCompCreated=function(e,r){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(r);return}this.destroyHeaderComp(),this.headerComp=r,this.headerCompGui=r.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())},t.TEMPLATE=`
-
`,Ci([L("eResize")],t.prototype,"eResize",void 0),Ci([L("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),Ci([F],t.prototype,"postConstruct",null),Ci([Se],t.prototype,"destroyHeaderComp",null),t}(gs),eg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tg=function(n){eg(t,n);function t(e){return n.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=function(s,a){return a!=null?r.setAttribute(s,a):r.removeAttribute(s)};r.setAttribute("col-id",this.ctrl.getColId());var i={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setResizableDisplayed:function(s){return $(e.eResize,s)},setWidth:function(s){return r.style.width=s},setAriaExpanded:function(s){return o("aria-expanded",s)},setUserCompDetails:function(s){return e.setUserCompDetails(s)},getUserCompInstance:function(){return e.headerGroupComp}};this.ctrl.setComp(i,r,this.eResize)},t.prototype.setUserCompDetails=function(e){var r=this;e.newAgStackInstance().then(function(o){return r.afterHeaderCompCreated(o)})},t.prototype.afterHeaderCompCreated=function(e){var r=this,o=function(){return r.destroyBean(e)};if(!this.isAlive()){o();return}var i=this.getGui(),s=e.getGui();i.appendChild(s),this.addDestroyFunc(o),this.headerGroupComp=e,this.ctrl.setDragSource(i)},t.TEMPLATE=`
+
`,mi([L("eResize")],t.prototype,"eResize",void 0),mi([L("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),mi([F],t.prototype,"postConstruct",null),mi([we],t.prototype,"destroyHeaderComp",null),t}(gs),tg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},rg=function(n){tg(t,n);function t(e){return n.call(this,t.TEMPLATE,e)||this}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=function(s,a){return a!=null?r.setAttribute(s,a):r.removeAttribute(s)};r.setAttribute("col-id",this.ctrl.getColId());var i={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setResizableDisplayed:function(s){return $(e.eResize,s)},setWidth:function(s){return r.style.width=s},setAriaExpanded:function(s){return o("aria-expanded",s)},setUserCompDetails:function(s){return e.setUserCompDetails(s)},getUserCompInstance:function(){return e.headerGroupComp}};this.ctrl.setComp(i,r,this.eResize)},t.prototype.setUserCompDetails=function(e){var r=this;e.newAgStackInstance().then(function(o){return r.afterHeaderCompCreated(o)})},t.prototype.afterHeaderCompCreated=function(e){var r=this,o=function(){return r.destroyBean(e)};if(!this.isAlive()){o();return}var i=this.getGui(),s=e.getGui();i.appendChild(s),this.addDestroyFunc(o),this.headerGroupComp=e,this.ctrl.setDragSource(i)},t.TEMPLATE=`
-
`,pu([L("eResize")],t.prototype,"eResize",void 0),pu([F],t.prototype,"postConstruct",null),t}(gs),rg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),du=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ge;(function(n){n.COLUMN_GROUP="group",n.COLUMN="column",n.FLOATING_FILTER="filter"})(ge||(ge={}));var og=function(n){rg(t,n);function t(e){var r=n.call(this)||this;return r.headerComps={},r.ctrl=e,r.setTemplate('
')),r}return t.prototype.init=function(){var e=this;yn(this.getGui(),this.ctrl.getAriaRowIndex());var r={setHeight:function(o){return e.getGui().style.height=o},setTop:function(o){return e.getGui().style.top=o},setHeaderCtrls:function(o,i){return e.setHeaderCtrls(o,i)},setWidth:function(o){return e.getGui().style.width=o}};this.ctrl.setComp(r)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},t.prototype.setHeaderCtrls=function(e,r){var o=this;if(this.isAlive()){var i=this.headerComps;if(this.headerComps={},e.forEach(function(l){var u=l.getInstanceId(),c=i[u];delete i[u],c==null&&(c=o.createHeaderComp(l),o.getGui().appendChild(c.getGui())),o.headerComps[u]=c}),ye(i,function(l,u){o.getGui().removeChild(u.getGui()),o.destroyBean(u)}),r){var s=It(this.headerComps);s.sort(function(l,u){var c=l.getCtrl().getColumnGroupChild().getLeft(),p=u.getCtrl().getColumnGroupChild().getLeft();return c-p});var a=s.map(function(l){return l.getGui()});jn(this.getGui(),a)}}},t.prototype.createHeaderComp=function(e){var r;switch(this.ctrl.getType()){case ge.COLUMN_GROUP:r=new tg(e);break;case ge.FLOATING_FILTER:r=new hf(e);break;default:r=new Zv(e);break}return this.createBean(r),r.setParentComponent(this),r},du([F],t.prototype,"init",null),du([Se],t.prototype,"destroyHeaderCtrls",null),t}(k),ig=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ng=0,Si=function(n){ig(t,n);function t(e,r,o){var i=n.call(this)||this;return i.resizeToggleTimeout=0,i.resizeMultiplier=1,i.resizeFeature=null,i.lastFocusEvent=null,i.dragSource=null,i.columnGroupChild=e,i.parentRowCtrl=o,i.beans=r,i.instanceId=e.getUniqueId()+"-"+ng++,i}return t.prototype.postConstruct=function(){var e=this;this.addManagedPropertyListeners(["suppressHeaderFocus"],function(){return e.refreshTabIndex()})},t.prototype.shouldStopEventPropagation=function(e){var r=this.focusService.getFocusedHeader(),o=r.headerRowIndex,i=r.column;return ll(this.gridOptionsService,e,o,i)},t.prototype.getWrapperHasFocus=function(){var e=this.gridOptionsService.getDocument(),r=e.activeElement;return r===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData(),this.addManagedListener(this.beans.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onDisplayedColumnsChanged(),this.refreshTabIndex()},t.prototype.onDisplayedColumnsChanged=function(){!this.comp||!this.column||(this.refreshFirstAndLastStyles(),this.refreshAriaColIndex())},t.prototype.refreshFirstAndLastStyles=function(){var e=this,r=e.comp,o=e.column,i=e.beans;hi.refreshFirstAndLastStyles(r,o,i.columnModel)},t.prototype.refreshAriaColIndex=function(){var e=this,r=e.beans,o=e.column,i=r.columnModel.getAriaColumnIndex(o);mn(this.eGui,i)},t.prototype.addResizeAndMoveKeyboardListeners=function(){this.resizeFeature&&(this.addManagedListener(this.eGui,"keydown",this.onGuiKeyDown.bind(this)),this.addManagedListener(this.eGui,"keyup",this.onGuiKeyUp.bind(this)))},t.prototype.refreshTabIndex=function(){var e=this.gridOptionsService.get("suppressHeaderFocus");e?this.eGui.removeAttribute("tabindex"):this.eGui.setAttribute("tabindex","-1")},t.prototype.onGuiKeyDown=function(e){var r,o=this.gridOptionsService.getDocument(),i=o.activeElement,s=e.key===_.LEFT||e.key===_.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),!(i!==this.eGui||!e.shiftKey&&!e.altKey)&&((this.isResizing||s)&&(e.preventDefault(),e.stopImmediatePropagation()),!!s)){var a=e.key===_.LEFT!==this.gridOptionsService.get("enableRtl"),l=Ue[a?"Left":"Right"];if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;var u=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(u,e.shiftKey),(r=this.resizeFeature)===null||r===void 0||r.toggleColumnResizing(!0)}else this.moveHeader(l)}},t.prototype.getViewportAdjustedResizeDiff=function(e){var r=this.getResizeDiff(e),o=this.column.getPinned();if(o){var i=this.pinnedWidthService.getPinnedLeftWidth(),s=this.pinnedWidthService.getPinnedRightWidth(),a=ir(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(i+s+r>a)if(a>i+s)r=a-i-s;else return 0}return r},t.prototype.getResizeDiff=function(e){var r=e.key===_.LEFT!==this.gridOptionsService.get("enableRtl"),o=this.column.getPinned(),i=this.gridOptionsService.get("enableRtl");return o&&i!==(o==="right")&&(r=!r),(r?-1:1)*this.resizeMultiplier},t.prototype.onGuiKeyUp=function(){var e=this;this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=setTimeout(function(){var r;(r=e.resizeFeature)===null||r===void 0||r.toggleColumnResizing(!1)},150))},t.prototype.handleKeyDown=function(e){var r=this.getWrapperHasFocus();switch(e.key){case _.PAGE_DOWN:case _.PAGE_UP:case _.PAGE_HOME:case _.PAGE_END:r&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,r=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,r,this),this.addDestroyFunc(function(){return e.gridOptionsService.setDomData(e.eGui,r,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return this.eGui?(this.lastFocusEvent=e||null,this.eGui.focus(),!0):!1},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.prototype.removeDragSource=function(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)},t.prototype.handleContextMenuMouseEvent=function(e,r,o){var i=e??r;this.gridOptionsService.get("preventDefaultOnContextMenu")&&i.preventDefault();var s=o instanceof J?o:void 0;this.menuService.isHeaderContextMenuEnabled(s)&&this.menuService.showHeaderContextMenu(s,e,r),this.dispatchColumnMouseEvent(g.EVENT_COLUMN_HEADER_CONTEXT_MENU,o)},t.prototype.dispatchColumnMouseEvent=function(e,r){var o={type:e,column:r};this.eventService.dispatchEvent(o)},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.removeDragSource(),this.comp=null,this.column=null,this.resizeFeature=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null,this.eGui=null},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",gr([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),gr([v("focusService")],t.prototype,"focusService",void 0),gr([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),gr([v("ctrlsService")],t.prototype,"ctrlsService",void 0),gr([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),gr([v("menuService")],t.prototype,"menuService",void 0),gr([F],t.prototype,"postConstruct",null),t}(D),sg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ag=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Os=function(n){sg(t,n);function t(e,r,o,i){var s=n.call(this)||this;return s.columnOrGroup=e,s.eCell=r,s.ariaEl=s.eCell.querySelector("[role=columnheader]")||s.eCell,s.colsSpanning=i,s.beans=o,s}return t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.get("enableRtl")&&this.colsSpanning?q(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,J.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.get("suppressColumnMoveAnimation"),r=P(this.columnOrGroup.getOldLeft()),o=this.beans.columnAnimationService.isActive()&&r&&!e;o?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,r=this.getColumnOrGroup(),o=r.getLeft(),i=r.getOldLeft(),s=this.modifyLeftForPrintLayout(r,i),a=this.modifyLeftForPrintLayout(r,o);this.setLeft(s),this.actualLeft=a,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===a&&e.setLeft(a)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),r=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,r),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,r){var o=this.beans.gridOptionsService.isDomLayout("print");if(!o||e.getPinned()==="left")return r;var i=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(e.getPinned()==="right"){var s=this.beans.columnModel.getBodyContainerWidth();return i+s+r}return i+r},t.prototype.setLeft=function(e){if(P(e)&&(this.eCell.style.left="".concat(e,"px")),this.columnOrGroup instanceof J)this.columnOrGroup;else{var r=this.columnOrGroup,o=r.getLeafColumns();if(!o.length)return;o.length>1&&Ua(this.ariaEl,o.length),o[0]}},ag([F],t.prototype,"postConstruct",null),t}(D),lg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ts=function(n){lg(t,n);function t(e,r){var o=n.call(this)||this;return o.columns=e,o.element=r,o}return t.prototype.postConstruct=function(){this.gridOptionsService.get("columnHoverHighlight")&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},hu([v("columnHoverService")],t.prototype,"columnHoverService",void 0),hu([F],t.prototype,"postConstruct",null),t}(D),ug=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),cg=function(n){ug(t,n);function t(e,r,o){var i=n.call(this,e,r,o)||this;return i.iconCreated=!1,i.column=e,i}return t.prototype.setComp=function(e,r,o,i){this.comp=e,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=i,this.setGui(r),this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,J.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},t.prototype.resizeHeader=function(){},t.prototype.moveHeader=function(){},t.prototype.setupActive=function(){var e=this.column.getColDef(),r=!!e.filter,o=!!e.floatingFilter;this.active=r&&o},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!(!this.active||this.iconCreated)){var e=ne("filter",this.gridOptionsService,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}},t.prototype.setupFocus=function(){this.createManagedBean(new ar(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.setupAria=function(){var e=this.localeService.getLocaleTextFunc();Ht(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))},t.prototype.onTabKeyDown=function(e){var r=this.gridOptionsService.getDocument(),o=r.activeElement,i=o===this.eGui;if(!i){var s=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(s){this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),s.focus();return}var a=this.findNextColumnWithFloatingFilter(e.shiftKey);a&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:a},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var r=this.beans.columnModel,o=this.column;do if(o=e?r.getDisplayedColBefore(o):r.getDisplayedColAfter(o),!o)break;while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},t.prototype.handleKeyDown=function(e){n.prototype.handleKeyDown.call(this,e);var r=this.getWrapperHasFocus();switch(e.key){case _.UP:case _.DOWN:r||e.preventDefault();case _.LEFT:case _.RIGHT:if(r)return;e.stopPropagation();case _.ENTER:r&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case _.ESCAPE:r||this.eGui.focus()}},t.prototype.onFocusIn=function(e){var r=this.eGui.contains(e.relatedTarget);if(!r){var o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&or(e.relatedTarget,"ag-floating-filter");if(o&&i&&e.target===this.eGui){var s=this.lastFocusEvent,a=!!(s&&s.key===_.TAB);if(s&&a){var l=s.shiftKey;this.focusService.focusInto(this.eGui,l)}}var u=this.getRowIndex();this.beans.focusService.setFocusedHeader(u,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Ts([this.column],this.eGui));var r=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var o=e.beans.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,g.EVENT_COLUMN_HOVER_CHANGED,r),r()},t.prototype.setupLeft=function(){var e=new Os(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupFilterButton=function(){this.suppressFilterButton=!this.menuService.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!this.menuService.isLegacyMenuEnabled()},t.prototype.setupUserComp=function(){var e=this;if(this.active){var r=this.beans.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()});r&&this.setCompDetails(r)}},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setCompDetails(e)},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var r=this.beans.filterManager,o=function(i){var s=e.comp.getFloatingFilterComp();s&&s.then(function(a){if(a){var l=r.getCurrentFloatingFilterParentModel(e.column);a.onParentModelChanged(l,i)}})};this.destroySyncListener=this.addManagedListener(this.column,J.EVENT_FILTER_CHANGED,o),r.isFilterActive(this.column)&&o(null)}},t.prototype.setupWidth=function(){var e=this,r=function(){var o="".concat(e.column.getActualWidth(),"px");e.comp.setWidth(o)};this.addManagedListener(this.column,J.EVENT_WIDTH_CHANGED,r),r()},t.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,J.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)),this.updateFilterButton())},t.prototype.updateFilterButton=function(){if(!this.suppressFilterButton&&this.comp){var e=this.beans.filterManager.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}},t.prototype.onColDefChanged=function(){var e=this,r,o,i=this.active;this.setupActive();var s=!i&&this.active;i&&!this.active&&((r=this.destroySyncListener)===null||r===void 0||r.call(this),(o=this.destroyFilterChangedListener)===null||o===void 0||o.call(this));var a=this.active?this.beans.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()}):null,l=this.comp.getFloatingFilterComp();!l||!a?this.updateCompDetails(a,s):l.then(function(u){var c;!u||e.beans.filterManager.areFilterCompsDifferent((c=e.userCompDetails)!==null&&c!==void 0?c:null,a)?e.updateCompDetails(a,s):e.updateFloatingFilterParams(a)})},t.prototype.updateCompDetails=function(e,r){this.isAlive()&&(this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),r&&(this.setupSyncWithFilter(),this.setupFilterChangedListener()))},t.prototype.updateFloatingFilterParams=function(e){var r;if(e){var o=e.params;(r=this.comp.getFloatingFilterComp())===null||r===void 0||r.then(function(i){var s=!1;if(i!=null&&i.refresh&&typeof i.refresh=="function"){var a=i.refresh(o);a!==null&&(s=!0)}if(!s&&(i!=null&&i.onParamsUpdated)&&typeof i.onParamsUpdated=="function"){var a=i.onParamsUpdated(o);a!==null&&V("Custom floating filter method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}})}},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.destroySyncListener=null,this.destroyFilterChangedListener=null},t}(Si),pg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dg=function(n){pg(t,n);function t(e,r,o,i,s){var a=n.call(this)||this;return a.pinned=e,a.column=r,a.eResize=o,a.comp=i,a.ctrl=s,a}return t.prototype.postConstruct=function(){var e=this,r=[],o,i,s=function(){if($(e.eResize,o),!!o){var u=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(r.push(u),i){var c=e.gridOptionsService.get("skipHeaderOnAutoSize"),p=function(){e.columnModel.autoSizeColumn(e.column,"uiColumnResized",c)};e.eResize.addEventListener("dblclick",p);var d=new me(e.eResize);d.addEventListener(me.EVENT_DOUBLE_TAP,p),r.push(function(){e.eResize.removeEventListener("dblclick",p),d.removeEventListener(me.EVENT_DOUBLE_TAP,p),d.destroy()})}}},a=function(){r.forEach(function(u){return u()}),r.length=0},l=function(){var u=e.column.isResizable(),c=!e.gridOptionsService.get("suppressAutoSize")&&!e.column.getColDef().suppressAutoSize,p=u!==o||c!==i;p&&(o=u,i=c,a(),s())};l(),this.addDestroyFunc(a),this.ctrl.addRefreshFunction(l)},t.prototype.onResizing=function(e,r){var o=this,i=o.column,s=o.lastResizeAmount,a=o.resizeStartWidth,l=this.normaliseResizeAmount(r),u=a+l,c=[{key:i,newWidth:u}];if(this.column.getPinned()){var p=this.pinnedWidthService.getPinnedLeftWidth(),d=this.pinnedWidthService.getPinnedRightWidth(),h=ir(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(p+d+(l-s)>h)return}this.lastResizeAmount=l,this.columnModel.setColumnWidths(c,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)},t.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},t.prototype.normaliseResizeAmount=function(e){var r=e,o=this.pinned!=="left",i=this.pinned==="right";return this.gridOptionsService.get("enableRtl")?o&&(r*=-1):i&&(r*=-1),r},vo([v("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),vo([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),vo([v("ctrlsService")],t.prototype,"ctrlsService",void 0),vo([v("columnModel")],t.prototype,"columnModel",void 0),vo([F],t.prototype,"postConstruct",null),t}(D),hg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},fg=function(n){hg(t,n);function t(e){var r=n.call(this)||this;return r.cbSelectAllVisible=!1,r.processingEventFromCheckbox=!1,r.column=e,r}return t.prototype.onSpaceKeyDown=function(e){var r=this.cbSelectAll,o=this.gridOptionsService.getDocument();r.isDisplayed()&&!r.getGui().contains(o.activeElement)&&(e.preventDefault(),r.setValue(!r.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new ti),this.cbSelectAll.addCssClass("ag-header-select-all"),le(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,g.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),zo(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.onNewColumnsLoaded=function(){this.showOrHideSelectAll()},t.prototype.onDisplayedColumnsChanged=function(){this.isAlive()&&this.showOrHideSelectAll()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e);var r=this.selectionService.hasNodesToSelect(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setDisabled(!r),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){var e=this.localeService.getLocaleTextFunc(),r=this.cbSelectAll.getValue(),o=r?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),i=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll","".concat(i," (").concat(o,")")):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel("".concat(i," (").concat(o,")")),this.headerCellCtrl.announceAriaDescription()},t.prototype.checkSelectionType=function(e){var r=this.gridOptionsService.get("rowSelection")==="multiple";return r?!0:(console.warn("AG Grid: ".concat(e," is only available if using 'multiple' rowSelection.")),!1)},t.prototype.checkRightRowModelType=function(e){var r=this.rowModel.getType(),o=r==="clientSide"||r==="serverSide";return o?!0:(console.warn("AG Grid: ".concat(e," is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ").concat(r,".")),!1)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),r=this.isFilteredOnly(),o=this.isCurrentPageOnly(),i="uiSelectAll";o?i="uiSelectAllCurrentPage":r&&(i="uiSelectAllFiltered");var s={source:i,justFiltered:r,justCurrentPage:o};e?this.selectionService.selectAllRowNodes(s):this.selectionService.deselectAllRowNodes(s)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;if(typeof e=="function"){var r=e,o=this.gridOptionsService.addGridCommonParams({column:this.column,colDef:this.column.getColDef()});e=r(o)}return e?this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection"):!1},t.prototype.isFilteredOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionFilteredOnly},t.prototype.isCurrentPageOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly},fu([v("rowModel")],t.prototype,"rowModel",void 0),fu([v("selectionService")],t.prototype,"selectionService",void 0),t}(D),vg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gg=function(n){vg(t,n);function t(e,r,o){var i=n.call(this,e,r,o)||this;return i.refreshFunctions=[],i.userHeaderClasses=new Set,i.ariaDescriptionProperties=new Map,i.column=e,i}return t.prototype.setComp=function(e,r,o,i){var s=this;this.comp=e,this.setGui(r),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(i),this.addColumnHoverListener(),this.setupFilterClass(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.resizeFeature=this.createManagedBean(new dg(this.getPinned(),this.column,o,e,this)),this.createManagedBean(new Ts([this.column],r)),this.createManagedBean(new Os(this.column,r,this.beans)),this.createManagedBean(new ar(r,{shouldStopEventPropagation:function(a){return s.shouldStopEventPropagation(a)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(),this.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],this.refresh.bind(this)),this.addManagedListener(this.column,J.EVENT_COL_DEF_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.resizeHeader=function(e,r){var o,i;if(this.column.isResizable()){var s=this.column.getActualWidth(),a=(o=this.column.getMinWidth())!==null&&o!==void 0?o:0,l=(i=this.column.getMaxWidth())!==null&&i!==void 0?i:Number.MAX_SAFE_INTEGER,u=Math.min(Math.max(s+e,a),l);this.beans.columnModel.setColumnWidths([{key:this.column,newWidth:u}],r,!0,"uiColumnResized")}},t.prototype.moveHeader=function(e){var r=this,o=r.eGui,i=r.column,s=r.gridOptionsService,a=r.ctrlsService,l=this.getPinned(),u=o.getBoundingClientRect().left,c=i.getActualWidth(),p=s.get("enableRtl"),d=e===Ue.Left!==p,h=vr.normaliseX(d?u-20:u+c+20,l,!0,s,a);vr.attemptMoveColumns({allMovingColumns:[i],isFromHeader:!0,hDirection:e,xPosition:h,pinned:l,fromEnter:!1,fakeEvent:!1,gridOptionsService:s,columnModel:this.beans.columnModel}),a.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(i,"auto")},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),r=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(r,e)},t.prototype.createParams=function(){var e=this,r=this.gridOptionsService.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&this.menuService.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!this.openFilterEnabled||this.menuService.isLegacyMenuEnabled(),showColumnMenu:function(o){e.menuService.showColumnMenu({column:e.column,buttonElement:o,positionBy:"button"})},showColumnMenuAfterMouseClick:function(o){e.menuService.showColumnMenu({column:e.column,mouseEvent:o,positionBy:"mouse"})},showFilter:function(o){e.menuService.showFilterMenu({column:e.column,buttonElement:o,containerType:"columnFilter",positionBy:"button"})},progressSort:function(o){e.beans.sortController.progressSort(e.column,!!o,"uiColumnSorted")},setSort:function(o,i){e.beans.sortController.setSortForColumn(e.column,o,!!i,"uiColumnSorted")},eGridHeader:this.getGui()});return r},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new fg(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(e){n.prototype.handleKeyDown.call(this,e),e.key===_.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===_.ENTER&&this.onEnterKeyDown(e),e.key===_.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)},t.prototype.onEnterKeyDown=function(e){if(e.ctrlKey||e.metaKey)this.showMenuOnKeyPress(e,!0);else if(this.sortable){var r=e.shiftKey;this.beans.sortController.progressSort(this.column,r,"uiColumnSorted")}},t.prototype.showMenuOnKeyPress=function(e,r){var o=this.comp.getUserCompInstance();!o||!(o instanceof cs)||o.onMenuKeyboardShortcut(r)&&e.preventDefault()},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var r=this.getRowIndex();this.focusService.setFocusedHeader(r,this.column),this.announceAriaDescription()}this.focusService.isKeyboardMode()&&this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,r={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){var i=e.column.getColDef().headerTooltip;return i}},o=this.createManagedBean(new di(r,this.beans));o.setComp(this.eGui),this.refreshFunctions.push(function(){return o.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,r=function(){var o=e.column.getColDef(),i=hi.getHeaderClassesFromColDef(o,e.gridOptionsService,e.column,null),s=e.userHeaderClasses;e.userHeaderClasses=new Set(i),i.forEach(function(a){s.has(a)?s.delete(a):e.comp.addOrRemoveCssClass(a,!0)}),s.forEach(function(a){return e.comp.addOrRemoveCssClass(a,!1)})};this.refreshFunctions.push(r),r()},t.prototype.setDragSource=function(e){var r=this;if(this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)){var o=this,i=o.column,s=o.beans,a=o.displayName,l=o.dragAndDropService,u=o.gridOptionsService,c=s.columnModel,p=!this.gridOptionsService.get("suppressDragLeaveHidesColumns"),d=this.dragSource={type:Te.HeaderCell,eElement:e,getDefaultIconName:function(){return p?he.ICON_HIDE:he.ICON_NOT_ALLOWED},getDragItem:function(){return r.createDragItem(i)},dragItemName:a,onDragStarted:function(){p=!u.get("suppressDragLeaveHidesColumns"),i.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.setMoving(!1,"uiColumnMoved")},onGridEnter:function(h){var f;if(p){var y=((f=h==null?void 0:h.columns)===null||f===void 0?void 0:f.filter(function(m){return!m.getColDef().lockVisible}))||[];c.setColumnsVisible(y,!0,"uiColumnMoved")}},onGridExit:function(h){var f;if(p){var y=((f=h==null?void 0:h.columns)===null||f===void 0?void 0:f.filter(function(m){return!m.getColDef().lockVisible}))||[];c.setColumnsVisible(y,!1,"uiColumnMoved")}}};l.addDragSource(d,!0)}},t.prototype.createDragItem=function(e){var r={};return r[e.getId()]=e.isVisible(),{columns:[e],visibleState:r}},t.prototype.updateState=function(){this.menuEnabled=this.menuService.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=this.menuService.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails(),r=this.comp.getUserCompInstance(),o=r!=null&&this.userCompDetails.componentClass==e.componentClass,i=o?this.attemptHeaderCompRefresh(e.params):!1;i?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var r=this.comp.getUserCompInstance();if(!r||!r.refresh)return!1;var o=r.refresh(e);return o},t.prototype.calculateDisplayName=function(){return this.beans.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef(),r=this.gridOptionsService.get("suppressMovableColumns"),o=!r&&!e.suppressMovable&&!e.lockPosition;return!!o||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,r=function(){var o=e.column.getActualWidth();e.comp.setWidth("".concat(o,"px"))};this.addManagedListener(this.column,J.EVENT_WIDTH_CHANGED,r),r()},t.prototype.setupMovingCss=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,J.EVENT_MOVING_CHANGED,r),r()},t.prototype.setupMenuClass=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,J.EVENT_MENU_VISIBLE_CHANGED,r),r()},t.prototype.setupSortableClass=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};r(),this.addRefreshFunction(r),this.addManagedListener(this.eventService,J.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupFilterClass=function(){var e=this,r=function(){var o=e.column.isFilterActive();e.comp.addOrRemoveCssClass("ag-header-cell-filtered",o),e.refreshAria()};this.addManagedListener(this.column,J.EVENT_FILTER_ACTIVE_CHANGED,r),r()},t.prototype.setupWrapTextClass=function(){var e=this,r=function(){var o=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",o)};r(),this.addRefreshFunction(r)},t.prototype.onDisplayedColumnsChanged=function(){n.prototype.onDisplayedColumnsChanged.call(this),this.isAlive()&&this.onHeaderHeightChanged()},t.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},t.prototype.refreshSpanHeaderHeight=function(){var e=this,r=e.eGui,o=e.column,i=e.comp,s=e.beans;if(!o.isSpanHeaderHeight()){r.style.removeProperty("top"),r.style.removeProperty("height"),i.addOrRemoveCssClass("ag-header-span-height",!1),i.addOrRemoveCssClass("ag-header-span-total",!1);return}var a=this.column.getColumnGroupPaddingInfo(),l=a.numberOfParents,u=a.isSpanningTotal;i.addOrRemoveCssClass("ag-header-span-height",l>0);var c=s.columnModel,p=c.getColumnHeaderRowHeight();if(l===0){i.addOrRemoveCssClass("ag-header-span-total",!1),r.style.setProperty("top","0px"),r.style.setProperty("height","".concat(p,"px"));return}i.addOrRemoveCssClass("ag-header-span-total",u);var d=c.isPivotMode(),h=d?c.getPivotGroupHeaderHeight():c.getGroupHeaderHeight(),f=l*h;r.style.setProperty("top","".concat(-f,"px")),r.style.setProperty("height","".concat(p+f,"px"))},t.prototype.setupAutoHeight=function(e){var r=this,o=this.beans,i=o.columnModel,s=o.resizeObserverService,a=function(h){if(r.isAlive()){var f=Bt(r.getGui()),y=f.paddingTop,m=f.paddingBottom,C=f.borderBottomWidth,w=f.borderTopWidth,E=y+m+C+w,S=e.offsetHeight,R=S+E;if(h<5){var O=r.beans.gridOptionsService.getDocument(),b=!O||!O.contains(e),A=R==0;if(b||A){window.setTimeout(function(){return a(h+1)},0);return}}i.setColumnHeaderHeight(r.column,R)}},l=!1,u,c=function(){var h=r.column.isAutoHeaderHeight();h&&!l&&p(),!h&&l&&d()},p=function(){l=!0,a(0),r.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),u=s.observeResize(e,function(){return a(0)})},d=function(){l=!1,u&&u(),r.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),u=void 0};c(),this.addDestroyFunc(function(){return d()}),this.addManagedListener(this.column,J.EVENT_WIDTH_CHANGED,function(){return l&&a(0)}),this.addManagedListener(this.eventService,J.EVENT_SORT_CHANGED,function(){l&&window.setTimeout(function(){return a(0)})}),this.addRefreshFunction(c)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),r=this.beans.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(Ia(r)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.refreshAriaFilterButton=function(){if(this.openFilterEnabled&&!this.menuService.isLegacyMenuEnabled()){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)},t.prototype.refreshAriaFiltered=function(){var e=this.localeService.getLocaleTextFunc(),r=this.column.isFilterActive();r?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)},t.prototype.setAriaDescriptionProperty=function(e,r){r!=null?this.ariaDescriptionProperties.set(e,r):this.ariaDescriptionProperties.delete(e)},t.prototype.announceAriaDescription=function(){var e=this,r=this.beans.gridOptionsService.getDocument();if(this.eGui.contains(r.activeElement)){var o=Array.from(this.ariaDescriptionProperties.keys()).sort(function(i,s){return i==="filter"?-1:s.charCodeAt(0)-i.charCodeAt(0)}).map(function(i){return e.ariaDescriptionProperties.get(i)}).join(". ");this.beans.ariaAnnouncementService.announceValue(o)}},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()},t.prototype.addColumnHoverListener=function(){var e=this,r=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var o=e.beans.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,g.EVENT_COLUMN_HOVER_CHANGED,r),r()},t.prototype.getColId=function(){return this.column.getColId()},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,r=function(s){return e.handleMouseOverChange(s.type==="mouseenter")},o=function(){return e.dispatchColumnMouseEvent(g.EVENT_COLUMN_HEADER_CLICKED,e.column)},i=function(s){return e.handleContextMenuMouseEvent(s,void 0,e.column)};this.addManagedListener(this.getGui(),"mouseenter",r),this.addManagedListener(this.getGui(),"mouseleave",r),this.addManagedListener(this.getGui(),"click",o),this.addManagedListener(this.getGui(),"contextmenu",i)},t.prototype.handleMouseOverChange=function(e){this.setActiveHeader(e);var r=e?g.EVENT_COLUMN_HEADER_MOUSE_OVER:g.EVENT_COLUMN_HEADER_MOUSE_LEAVE,o={type:r,column:this.column};this.eventService.dispatchEvent(o)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},t.prototype.getAnchorElementForMenu=function(e){var r=this.comp.getUserCompInstance();return r instanceof cs?r.getAnchorElementForMenu(e):this.getGui()},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.refreshFunctions=null,this.selectAllFeature=null,this.dragSourceElement=null,this.userCompDetails=null,this.userHeaderClasses=null,this.ariaDescriptionProperties=null},t}(Si),yg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},mg=function(n){yg(t,n);function t(e,r,o,i){var s=n.call(this)||this;return s.eResize=r,s.comp=e,s.pinned=o,s.columnGroup=i,s}return t.prototype.postConstruct=function(){var e=this;if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}var r=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(r),!this.gridOptionsService.get("suppressAutoSize")){var o=this.gridOptionsService.get("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",function(){var i=[],s=e.columnGroup.getDisplayedLeafColumns();s.forEach(function(a){a.getColDef().suppressAutoSize||i.push(a.getColId())}),i.length>0&&e.columnModel.autoSizeColumns({columns:i,skipHeader:o,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit("uiColumnResized")})}},t.prototype.onResizeStart=function(e){var r=this.getInitialValues(e);this.storeLocalValues(r),this.toggleColumnResizing(!0)},t.prototype.onResizing=function(e,r,o){o===void 0&&(o="uiColumnResized");var i=this.normaliseDragChange(r),s=this.resizeStartWidth+i;this.resizeColumnsFromLocalValues(s,o,e)},t.prototype.getInitialValues=function(e){var r=this.getColumnsToResize(),o=this.getInitialSizeOfColumns(r),i=this.getSizeRatiosOfColumns(r,o),s={columnsToResize:r,resizeStartWidth:o,resizeRatios:i},a=null;if(e&&(a=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),a){var l=a.getDisplayedLeafColumns(),u=s.groupAfterColumns=l.filter(function(p){return p.isResizable()}),c=s.groupAfterStartWidth=this.getInitialSizeOfColumns(u);s.groupAfterRatios=this.getSizeRatiosOfColumns(u,c)}else s.groupAfterColumns=void 0,s.groupAfterStartWidth=void 0,s.groupAfterRatios=void 0;return s},t.prototype.storeLocalValues=function(e){var r=e.columnsToResize,o=e.resizeStartWidth,i=e.resizeRatios,s=e.groupAfterColumns,a=e.groupAfterStartWidth,l=e.groupAfterRatios;this.resizeCols=r,this.resizeStartWidth=o,this.resizeRatios=i,this.resizeTakeFromCols=s,this.resizeTakeFromStartWidth=a,this.resizeTakeFromRatios=l},t.prototype.clearLocalValues=function(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0},t.prototype.resizeLeafColumnsToFit=function(e){var r=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),o=this.getInitialValues();r>o.resizeStartWidth&&this.resizeColumns(o,r,e,!0)},t.prototype.resizeColumnsFromLocalValues=function(e,r,o){var i,s,a;if(o===void 0&&(o=!0),!(!this.resizeCols||!this.resizeRatios)){var l={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:(i=this.resizeTakeFromCols)!==null&&i!==void 0?i:void 0,groupAfterStartWidth:(s=this.resizeTakeFromStartWidth)!==null&&s!==void 0?s:void 0,groupAfterRatios:(a=this.resizeTakeFromRatios)!==null&&a!==void 0?a:void 0};this.resizeColumns(l,e,r,o)}},t.prototype.resizeColumns=function(e,r,o,i){i===void 0&&(i=!0);var s=e.columnsToResize,a=e.resizeStartWidth,l=e.resizeRatios,u=e.groupAfterColumns,c=e.groupAfterStartWidth,p=e.groupAfterRatios,d=[];if(d.push({columns:s,ratios:l,width:r}),u){var h=r-a;d.push({columns:u,ratios:p,width:c-h})}this.columnModel.resizeColumnSets({resizeSets:d,finished:i,source:o}),i&&this.toggleColumnResizing(!1)},t.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},t.prototype.getColumnsToResize=function(){var e=this.columnGroup.getDisplayedLeafColumns();return e.filter(function(r){return r.isResizable()})},t.prototype.getInitialSizeOfColumns=function(e){return e.reduce(function(r,o){return r+o.getActualWidth()},0)},t.prototype.getSizeRatiosOfColumns=function(e,r){return e.map(function(o){return o.getActualWidth()/r})},t.prototype.normaliseDragChange=function(e){var r=e;return this.gridOptionsService.get("enableRtl")?this.pinned!=="left"&&(r*=-1):this.pinned==="right"&&(r*=-1),r},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.clearLocalValues()},wi([v("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),wi([v("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),wi([v("columnModel")],t.prototype,"columnModel",void 0),wi([F],t.prototype,"postConstruct",null),t}(D),Cg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Sg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},wg=function(n){Cg(t,n);function t(e,r){var o=n.call(this)||this;return o.removeChildListenersFuncs=[],o.columnGroup=r,o.comp=e,o}return t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,se.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var r=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(o){o.addEventListener("widthChanged",r),o.addEventListener("visibleChanged",r),e.removeChildListenersFuncs.push(function(){o.removeEventListener("widthChanged",r),o.removeEventListener("visibleChanged",r)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){var e=this.columnGroup.getActualWidth();this.comp.setWidth("".concat(e,"px")),this.comp.addOrRemoveCssClass("ag-hidden",e===0)},Sg([F],t.prototype,"postConstruct",null),t}(D),Eg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ei=function(){return Ei=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0&&(i.push(s),Ee(r,s))}),r.forEach(function(s){return i.push(s)}),{columns:i,visibleState:o}},t.prototype.isSuppressMoving=function(){var e=!1;this.column.getLeafColumns().forEach(function(o){(o.getColDef().suppressMovable||o.getColDef().lockPosition)&&(e=!0)});var r=e||this.gridOptionsService.get("suppressMovableColumns");return r},t}(Si),Rg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},gu=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Og=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Tg=0,Ps=function(n){Rg(t,n);function t(e,r,o){var i=n.call(this)||this;i.instanceId=Tg++,i.rowIndex=e,i.pinned=r,i.type=o;var s=o==ge.COLUMN_GROUP?"ag-header-row-column-group":o==ge.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.headerRowClass="ag-header-row ".concat(s),i}return t.prototype.postConstruct=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.isEnsureDomOrder=this.gridOptionsService.get("ensureDomOrder")},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,r){r===void 0&&(r=!0),this.comp=e,r&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()},t.prototype.getHeaderRowClass=function(){return this.headerRowClass},t.prototype.getAriaRowIndex=function(){return this.rowIndex+1},t.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_VIRTUAL_COLUMNS_CHANGED,function(r){return e.onVirtualColumnsChanged(r.afterScroll)}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",function(r){return e.isEnsureDomOrder=r.currentValue}),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){if(this.headerCellCtrls)return Zt(this.headerCellCtrls).find(function(r){return r.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth("".concat(e,"px"))},t.prototype.getWidthForRow=function(){var e=this.beans.columnModel;if(this.isPrintLayout){var r=this.pinned!=null;return r?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null)}return e.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.getTopAndHeight(),r=e.topOffset,o=e.rowHeight;this.comp.setTop(r+"px"),this.comp.setHeight(o+"px")},t.prototype.getTopAndHeight=function(){var e=this.beans,r=e.columnModel,o=e.filterManager,i=r.getHeaderRowCount(),s=[],a=0;o.hasFloatingFilters()&&(i++,a=1);for(var l=r.getColumnGroupHeaderRowHeight(),u=r.getColumnHeaderRowHeight(),c=1+a,p=i-c,d=0;d=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Dg=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Ag=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},As=function(n){Fg(t,n);function t(e){var r=n.call(this)||this;return r.headerRowComps={},r.rowCompsList=[],r.pinned=e,r}return t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var r={setDisplayed:function(i){return e.setDisplayed(i)},setCtrls:function(i){return e.setCtrls(i)},setCenterWidth:function(i){return e.eCenterContainer.style.width=i},setViewportScrollLeft:function(i){return e.getGui().scrollLeft=i},setPinnedContainerWidth:function(i){var s=e.getGui();s.style.width=i,s.style.maxWidth=i,s.style.minWidth=i}},o=this.createManagedBean(new bg(this.pinned));o.setComp(r,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned=="left",r=this.pinned=="right",o=e?t.PINNED_LEFT_TEMPLATE:r?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(o),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var r=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];var i,s=function(a){var l=a.getGui(),u=l.parentElement!=r.eRowContainer;u&&r.eRowContainer.appendChild(l),i&&Wn(r.eRowContainer,l,i),i=l};e.forEach(function(a){var l=a.getInstanceId(),u=o[l];delete o[l];var c=u||r.createBean(new og(a));r.headerRowComps[l]=c,r.rowCompsList.push(c),s(c)}),It(o).forEach(function(a){return r.destroyRowComp(a)})},t.PINNED_LEFT_TEMPLATE='
',t.PINNED_RIGHT_TEMPLATE='
',t.CENTER_TEMPLATE=``,pu([L("eResize")],t.prototype,"eResize",void 0),pu([F],t.prototype,"postConstruct",null),t}(gs),og=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),du=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ge;(function(n){n.COLUMN_GROUP="group",n.COLUMN="column",n.FLOATING_FILTER="filter"})(ge||(ge={}));var ig=function(n){og(t,n);function t(e){var r=n.call(this)||this;return r.headerComps={},r.ctrl=e,r.setTemplate('
')),r}return t.prototype.init=function(){var e=this;yn(this.getGui(),this.ctrl.getAriaRowIndex());var r={setHeight:function(o){return e.getGui().style.height=o},setTop:function(o){return e.getGui().style.top=o},setHeaderCtrls:function(o,i){return e.setHeaderCtrls(o,i)},setWidth:function(o){return e.getGui().style.width=o}};this.ctrl.setComp(r)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},t.prototype.setHeaderCtrls=function(e,r){var o=this;if(this.isAlive()){var i=this.headerComps;if(this.headerComps={},e.forEach(function(l){var u=l.getInstanceId(),c=i[u];delete i[u],c==null&&(c=o.createHeaderComp(l),o.getGui().appendChild(c.getGui())),o.headerComps[u]=c}),ye(i,function(l,u){o.getGui().removeChild(u.getGui()),o.destroyBean(u)}),r){var s=It(this.headerComps);s.sort(function(l,u){var c=l.getCtrl().getColumnGroupChild().getLeft(),p=u.getCtrl().getColumnGroupChild().getLeft();return c-p});var a=s.map(function(l){return l.getGui()});jn(this.getGui(),a)}}},t.prototype.createHeaderComp=function(e){var r;switch(this.ctrl.getType()){case ge.COLUMN_GROUP:r=new rg(e);break;case ge.FLOATING_FILTER:r=new ff(e);break;default:r=new eg(e);break}return this.createBean(r),r.setParentComponent(this),r},du([F],t.prototype,"init",null),du([we],t.prototype,"destroyHeaderCtrls",null),t}(k),ng=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),gr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},sg=0,Si=function(n){ng(t,n);function t(e,r,o){var i=n.call(this)||this;return i.resizeToggleTimeout=0,i.resizeMultiplier=1,i.resizeFeature=null,i.lastFocusEvent=null,i.dragSource=null,i.columnGroupChild=e,i.parentRowCtrl=o,i.beans=r,i.instanceId=e.getUniqueId()+"-"+sg++,i}return t.prototype.postConstruct=function(){var e=this;this.addManagedPropertyListeners(["suppressHeaderFocus"],function(){return e.refreshTabIndex()})},t.prototype.shouldStopEventPropagation=function(e){var r=this.focusService.getFocusedHeader(),o=r.headerRowIndex,i=r.column;return ll(this.gridOptionsService,e,o,i)},t.prototype.getWrapperHasFocus=function(){var e=this.gridOptionsService.getDocument(),r=e.activeElement;return r===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData(),this.addManagedListener(this.beans.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onDisplayedColumnsChanged(),this.refreshTabIndex()},t.prototype.onDisplayedColumnsChanged=function(){!this.comp||!this.column||(this.refreshFirstAndLastStyles(),this.refreshAriaColIndex())},t.prototype.refreshFirstAndLastStyles=function(){var e=this,r=e.comp,o=e.column,i=e.beans;hi.refreshFirstAndLastStyles(r,o,i.columnModel)},t.prototype.refreshAriaColIndex=function(){var e=this,r=e.beans,o=e.column,i=r.columnModel.getAriaColumnIndex(o);Cn(this.eGui,i)},t.prototype.addResizeAndMoveKeyboardListeners=function(){this.resizeFeature&&(this.addManagedListener(this.eGui,"keydown",this.onGuiKeyDown.bind(this)),this.addManagedListener(this.eGui,"keyup",this.onGuiKeyUp.bind(this)))},t.prototype.refreshTabIndex=function(){var e=this.gridOptionsService.get("suppressHeaderFocus");e?this.eGui.removeAttribute("tabindex"):this.eGui.setAttribute("tabindex","-1")},t.prototype.onGuiKeyDown=function(e){var r,o=this.gridOptionsService.getDocument(),i=o.activeElement,s=e.key===_.LEFT||e.key===_.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),!(i!==this.eGui||!e.shiftKey&&!e.altKey)&&((this.isResizing||s)&&(e.preventDefault(),e.stopImmediatePropagation()),!!s)){var a=e.key===_.LEFT!==this.gridOptionsService.get("enableRtl"),l=Ue[a?"Left":"Right"];if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;var u=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(u,e.shiftKey),(r=this.resizeFeature)===null||r===void 0||r.toggleColumnResizing(!0)}else this.moveHeader(l)}},t.prototype.getViewportAdjustedResizeDiff=function(e){var r=this.getResizeDiff(e),o=this.column.getPinned();if(o){var i=this.pinnedWidthService.getPinnedLeftWidth(),s=this.pinnedWidthService.getPinnedRightWidth(),a=ir(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(i+s+r>a)if(a>i+s)r=a-i-s;else return 0}return r},t.prototype.getResizeDiff=function(e){var r=e.key===_.LEFT!==this.gridOptionsService.get("enableRtl"),o=this.column.getPinned(),i=this.gridOptionsService.get("enableRtl");return o&&i!==(o==="right")&&(r=!r),(r?-1:1)*this.resizeMultiplier},t.prototype.onGuiKeyUp=function(){var e=this;this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=setTimeout(function(){var r;(r=e.resizeFeature)===null||r===void 0||r.toggleColumnResizing(!1)},150))},t.prototype.handleKeyDown=function(e){var r=this.getWrapperHasFocus();switch(e.key){case _.PAGE_DOWN:case _.PAGE_UP:case _.PAGE_HOME:case _.PAGE_END:r&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,r=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,r,this),this.addDestroyFunc(function(){return e.gridOptionsService.setDomData(e.eGui,r,null)})},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return this.eGui?(this.lastFocusEvent=e||null,this.eGui.focus(),!0):!1},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.prototype.removeDragSource=function(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)},t.prototype.handleContextMenuMouseEvent=function(e,r,o){var i=e??r;this.gridOptionsService.get("preventDefaultOnContextMenu")&&i.preventDefault();var s=o instanceof Z?o:void 0;this.menuService.isHeaderContextMenuEnabled(s)&&this.menuService.showHeaderContextMenu(s,e,r),this.dispatchColumnMouseEvent(g.EVENT_COLUMN_HEADER_CONTEXT_MENU,o)},t.prototype.dispatchColumnMouseEvent=function(e,r){var o={type:e,column:r};this.eventService.dispatchEvent(o)},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.removeDragSource(),this.comp=null,this.column=null,this.resizeFeature=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null,this.eGui=null},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",gr([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),gr([v("focusService")],t.prototype,"focusService",void 0),gr([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),gr([v("ctrlsService")],t.prototype,"ctrlsService",void 0),gr([v("dragAndDropService")],t.prototype,"dragAndDropService",void 0),gr([v("menuService")],t.prototype,"menuService",void 0),gr([F],t.prototype,"postConstruct",null),t}(D),ag=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),lg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Os=function(n){ag(t,n);function t(e,r,o,i){var s=n.call(this)||this;return s.columnOrGroup=e,s.eCell=r,s.ariaEl=s.eCell.querySelector("[role=columnheader]")||s.eCell,s.colsSpanning=i,s.beans=o,s}return t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.get("enableRtl")&&this.colsSpanning?q(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,Z.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.get("suppressColumnMoveAnimation"),r=P(this.columnOrGroup.getOldLeft()),o=this.beans.columnAnimationService.isActive()&&r&&!e;o?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,r=this.getColumnOrGroup(),o=r.getLeft(),i=r.getOldLeft(),s=this.modifyLeftForPrintLayout(r,i),a=this.modifyLeftForPrintLayout(r,o);this.setLeft(s),this.actualLeft=a,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===a&&e.setLeft(a)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),r=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,r),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,r){var o=this.beans.gridOptionsService.isDomLayout("print");if(!o||e.getPinned()==="left")return r;var i=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(e.getPinned()==="right"){var s=this.beans.columnModel.getBodyContainerWidth();return i+s+r}return i+r},t.prototype.setLeft=function(e){if(P(e)&&(this.eCell.style.left="".concat(e,"px")),this.columnOrGroup instanceof Z)this.columnOrGroup;else{var r=this.columnOrGroup,o=r.getLeafColumns();if(!o.length)return;o.length>1&&Ua(this.ariaEl,o.length),o[0]}},lg([F],t.prototype,"postConstruct",null),t}(D),ug=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),hu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ts=function(n){ug(t,n);function t(e,r){var o=n.call(this)||this;return o.columns=e,o.element=r,o}return t.prototype.postConstruct=function(){this.gridOptionsService.get("columnHoverHighlight")&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},hu([v("columnHoverService")],t.prototype,"columnHoverService",void 0),hu([F],t.prototype,"postConstruct",null),t}(D),cg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),pg=function(n){cg(t,n);function t(e,r,o){var i=n.call(this,e,r,o)||this;return i.iconCreated=!1,i.column=e,i}return t.prototype.setComp=function(e,r,o,i){this.comp=e,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=i,this.setGui(r),this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,Z.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},t.prototype.resizeHeader=function(){},t.prototype.moveHeader=function(){},t.prototype.setupActive=function(){var e=this.column.getColDef(),r=!!e.filter,o=!!e.floatingFilter;this.active=r&&o},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!(!this.active||this.iconCreated)){var e=ne("filter",this.gridOptionsService,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}},t.prototype.setupFocus=function(){this.createManagedBean(new ar(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.setupAria=function(){var e=this.localeService.getLocaleTextFunc();Ht(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))},t.prototype.onTabKeyDown=function(e){var r=this.gridOptionsService.getDocument(),o=r.activeElement,i=o===this.eGui;if(!i){var s=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(s){this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),s.focus();return}var a=this.findNextColumnWithFloatingFilter(e.shiftKey);a&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:a},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var r=this.beans.columnModel,o=this.column;do if(o=e?r.getDisplayedColBefore(o):r.getDisplayedColAfter(o),!o)break;while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},t.prototype.handleKeyDown=function(e){n.prototype.handleKeyDown.call(this,e);var r=this.getWrapperHasFocus();switch(e.key){case _.UP:case _.DOWN:r||e.preventDefault();case _.LEFT:case _.RIGHT:if(r)return;e.stopPropagation();case _.ENTER:r&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case _.ESCAPE:r||this.eGui.focus()}},t.prototype.onFocusIn=function(e){var r=this.eGui.contains(e.relatedTarget);if(!r){var o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&or(e.relatedTarget,"ag-floating-filter");if(o&&i&&e.target===this.eGui){var s=this.lastFocusEvent,a=!!(s&&s.key===_.TAB);if(s&&a){var l=s.shiftKey;this.focusService.focusInto(this.eGui,l)}}var u=this.getRowIndex();this.beans.focusService.setFocusedHeader(u,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Ts([this.column],this.eGui));var r=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var o=e.beans.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,g.EVENT_COLUMN_HOVER_CHANGED,r),r()},t.prototype.setupLeft=function(){var e=new Os(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupFilterButton=function(){this.suppressFilterButton=!this.menuService.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!this.menuService.isLegacyMenuEnabled()},t.prototype.setupUserComp=function(){var e=this;if(this.active){var r=this.beans.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()});r&&this.setCompDetails(r)}},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setCompDetails(e)},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var r=this.beans.filterManager,o=function(i){var s=e.comp.getFloatingFilterComp();s&&s.then(function(a){if(a){var l=r.getCurrentFloatingFilterParentModel(e.column);a.onParentModelChanged(l,i)}})};this.destroySyncListener=this.addManagedListener(this.column,Z.EVENT_FILTER_CHANGED,o),r.isFilterActive(this.column)&&o(null)}},t.prototype.setupWidth=function(){var e=this,r=function(){var o="".concat(e.column.getActualWidth(),"px");e.comp.setWidth(o)};this.addManagedListener(this.column,Z.EVENT_WIDTH_CHANGED,r),r()},t.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,Z.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)),this.updateFilterButton())},t.prototype.updateFilterButton=function(){if(!this.suppressFilterButton&&this.comp){var e=this.beans.filterManager.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}},t.prototype.onColDefChanged=function(){var e=this,r,o,i=this.active;this.setupActive();var s=!i&&this.active;i&&!this.active&&((r=this.destroySyncListener)===null||r===void 0||r.call(this),(o=this.destroyFilterChangedListener)===null||o===void 0||o.call(this));var a=this.active?this.beans.filterManager.getFloatingFilterCompDetails(this.column,function(){return e.showParentFilter()}):null,l=this.comp.getFloatingFilterComp();!l||!a?this.updateCompDetails(a,s):l.then(function(u){var c;!u||e.beans.filterManager.areFilterCompsDifferent((c=e.userCompDetails)!==null&&c!==void 0?c:null,a)?e.updateCompDetails(a,s):e.updateFloatingFilterParams(a)})},t.prototype.updateCompDetails=function(e,r){this.isAlive()&&(this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),r&&(this.setupSyncWithFilter(),this.setupFilterChangedListener()))},t.prototype.updateFloatingFilterParams=function(e){var r;if(e){var o=e.params;(r=this.comp.getFloatingFilterComp())===null||r===void 0||r.then(function(i){var s=!1;if(i!=null&&i.refresh&&typeof i.refresh=="function"){var a=i.refresh(o);a!==null&&(s=!0)}if(!s&&(i!=null&&i.onParamsUpdated)&&typeof i.onParamsUpdated=="function"){var a=i.onParamsUpdated(o);a!==null&&V("Custom floating filter method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}})}},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.destroySyncListener=null,this.destroyFilterChangedListener=null},t}(Si),dg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vo=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},hg=function(n){dg(t,n);function t(e,r,o,i,s){var a=n.call(this)||this;return a.pinned=e,a.column=r,a.eResize=o,a.comp=i,a.ctrl=s,a}return t.prototype.postConstruct=function(){var e=this,r=[],o,i,s=function(){if($(e.eResize,o),!!o){var u=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(r.push(u),i){var c=e.gridOptionsService.get("skipHeaderOnAutoSize"),p=function(){e.columnModel.autoSizeColumn(e.column,"uiColumnResized",c)};e.eResize.addEventListener("dblclick",p);var d=new Ce(e.eResize);d.addEventListener(Ce.EVENT_DOUBLE_TAP,p),r.push(function(){e.eResize.removeEventListener("dblclick",p),d.removeEventListener(Ce.EVENT_DOUBLE_TAP,p),d.destroy()})}}},a=function(){r.forEach(function(u){return u()}),r.length=0},l=function(){var u=e.column.isResizable(),c=!e.gridOptionsService.get("suppressAutoSize")&&!e.column.getColDef().suppressAutoSize,p=u!==o||c!==i;p&&(o=u,i=c,a(),s())};l(),this.addDestroyFunc(a),this.ctrl.addRefreshFunction(l)},t.prototype.onResizing=function(e,r){var o=this,i=o.column,s=o.lastResizeAmount,a=o.resizeStartWidth,l=this.normaliseResizeAmount(r),u=a+l,c=[{key:i,newWidth:u}];if(this.column.getPinned()){var p=this.pinnedWidthService.getPinnedLeftWidth(),d=this.pinnedWidthService.getPinnedRightWidth(),h=ir(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(p+d+(l-s)>h)return}this.lastResizeAmount=l,this.columnModel.setColumnWidths(c,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)},t.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},t.prototype.normaliseResizeAmount=function(e){var r=e,o=this.pinned!=="left",i=this.pinned==="right";return this.gridOptionsService.get("enableRtl")?o&&(r*=-1):i&&(r*=-1),r},vo([v("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),vo([v("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),vo([v("ctrlsService")],t.prototype,"ctrlsService",void 0),vo([v("columnModel")],t.prototype,"columnModel",void 0),vo([F],t.prototype,"postConstruct",null),t}(D),fg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),fu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vg=function(n){fg(t,n);function t(e){var r=n.call(this)||this;return r.cbSelectAllVisible=!1,r.processingEventFromCheckbox=!1,r.column=e,r}return t.prototype.onSpaceKeyDown=function(e){var r=this.cbSelectAll,o=this.gridOptionsService.getDocument();r.isDisplayed()&&!r.getGui().contains(o.activeElement)&&(e.preventDefault(),r.setValue(!r.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new ti),this.cbSelectAll.addCssClass("ag-header-select-all"),le(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,g.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),zo(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.onNewColumnsLoaded=function(){this.showOrHideSelectAll()},t.prototype.onDisplayedColumnsChanged=function(){this.isAlive()&&this.showOrHideSelectAll()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e);var r=this.selectionService.hasNodesToSelect(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setDisabled(!r),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){var e=this.localeService.getLocaleTextFunc(),r=this.cbSelectAll.getValue(),o=r?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),i=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll","".concat(i," (").concat(o,")")):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel("".concat(i," (").concat(o,")")),this.headerCellCtrl.announceAriaDescription()},t.prototype.checkSelectionType=function(e){var r=this.gridOptionsService.get("rowSelection")==="multiple";return r?!0:(console.warn("AG Grid: ".concat(e," is only available if using 'multiple' rowSelection.")),!1)},t.prototype.checkRightRowModelType=function(e){var r=this.rowModel.getType(),o=r==="clientSide"||r==="serverSide";return o?!0:(console.warn("AG Grid: ".concat(e," is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ").concat(r,".")),!1)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),r=this.isFilteredOnly(),o=this.isCurrentPageOnly(),i="uiSelectAll";o?i="uiSelectAllCurrentPage":r&&(i="uiSelectAllFiltered");var s={source:i,justFiltered:r,justCurrentPage:o};e?this.selectionService.selectAllRowNodes(s):this.selectionService.deselectAllRowNodes(s)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;if(typeof e=="function"){var r=e,o=this.gridOptionsService.addGridCommonParams({column:this.column,colDef:this.column.getColDef()});e=r(o)}return e?this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection"):!1},t.prototype.isFilteredOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionFilteredOnly},t.prototype.isCurrentPageOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly},fu([v("rowModel")],t.prototype,"rowModel",void 0),fu([v("selectionService")],t.prototype,"selectionService",void 0),t}(D),gg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),yg=function(n){gg(t,n);function t(e,r,o){var i=n.call(this,e,r,o)||this;return i.refreshFunctions=[],i.userHeaderClasses=new Set,i.ariaDescriptionProperties=new Map,i.column=e,i}return t.prototype.setComp=function(e,r,o,i){var s=this;this.comp=e,this.setGui(r),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(i),this.addColumnHoverListener(),this.setupFilterClass(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.resizeFeature=this.createManagedBean(new hg(this.getPinned(),this.column,o,e,this)),this.createManagedBean(new Ts([this.column],r)),this.createManagedBean(new Os(this.column,r,this.beans)),this.createManagedBean(new ar(r,{shouldStopEventPropagation:function(a){return s.shouldStopEventPropagation(a)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(),this.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],this.refresh.bind(this)),this.addManagedListener(this.column,Z.EVENT_COL_DEF_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.resizeHeader=function(e,r){var o,i;if(this.column.isResizable()){var s=this.column.getActualWidth(),a=(o=this.column.getMinWidth())!==null&&o!==void 0?o:0,l=(i=this.column.getMaxWidth())!==null&&i!==void 0?i:Number.MAX_SAFE_INTEGER,u=Math.min(Math.max(s+e,a),l);this.beans.columnModel.setColumnWidths([{key:this.column,newWidth:u}],r,!0,"uiColumnResized")}},t.prototype.moveHeader=function(e){var r=this,o=r.eGui,i=r.column,s=r.gridOptionsService,a=r.ctrlsService,l=this.getPinned(),u=o.getBoundingClientRect().left,c=i.getActualWidth(),p=s.get("enableRtl"),d=e===Ue.Left!==p,h=vr.normaliseX(d?u-20:u+c+20,l,!0,s,a);vr.attemptMoveColumns({allMovingColumns:[i],isFromHeader:!0,hDirection:e,xPosition:h,pinned:l,fromEnter:!1,fakeEvent:!1,gridOptionsService:s,columnModel:this.beans.columnModel}),a.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(i,"auto")},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),r=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(r,e)},t.prototype.createParams=function(){var e=this,r=this.gridOptionsService.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&this.menuService.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!this.openFilterEnabled||this.menuService.isLegacyMenuEnabled(),showColumnMenu:function(o){e.menuService.showColumnMenu({column:e.column,buttonElement:o,positionBy:"button"})},showColumnMenuAfterMouseClick:function(o){e.menuService.showColumnMenu({column:e.column,mouseEvent:o,positionBy:"mouse"})},showFilter:function(o){e.menuService.showFilterMenu({column:e.column,buttonElement:o,containerType:"columnFilter",positionBy:"button"})},progressSort:function(o){e.beans.sortController.progressSort(e.column,!!o,"uiColumnSorted")},setSort:function(o,i){e.beans.sortController.setSortForColumn(e.column,o,!!i,"uiColumnSorted")},eGridHeader:this.getGui()});return r},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new vg(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(e){n.prototype.handleKeyDown.call(this,e),e.key===_.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===_.ENTER&&this.onEnterKeyDown(e),e.key===_.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)},t.prototype.onEnterKeyDown=function(e){if(e.ctrlKey||e.metaKey)this.showMenuOnKeyPress(e,!0);else if(this.sortable){var r=e.shiftKey;this.beans.sortController.progressSort(this.column,r,"uiColumnSorted")}},t.prototype.showMenuOnKeyPress=function(e,r){var o=this.comp.getUserCompInstance();!o||!(o instanceof cs)||o.onMenuKeyboardShortcut(r)&&e.preventDefault()},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var r=this.getRowIndex();this.focusService.setFocusedHeader(r,this.column),this.announceAriaDescription()}this.focusService.isKeyboardMode()&&this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,r={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){var i=e.column.getColDef().headerTooltip;return i}},o=this.createManagedBean(new di(r,this.beans));o.setComp(this.eGui),this.refreshFunctions.push(function(){return o.refreshToolTip()})},t.prototype.setupClassesFromColDef=function(){var e=this,r=function(){var o=e.column.getColDef(),i=hi.getHeaderClassesFromColDef(o,e.gridOptionsService,e.column,null),s=e.userHeaderClasses;e.userHeaderClasses=new Set(i),i.forEach(function(a){s.has(a)?s.delete(a):e.comp.addOrRemoveCssClass(a,!0)}),s.forEach(function(a){return e.comp.addOrRemoveCssClass(a,!1)})};this.refreshFunctions.push(r),r()},t.prototype.setDragSource=function(e){var r=this;if(this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)){var o=this,i=o.column,s=o.beans,a=o.displayName,l=o.dragAndDropService,u=o.gridOptionsService,c=s.columnModel,p=!this.gridOptionsService.get("suppressDragLeaveHidesColumns"),d=this.dragSource={type:Pe.HeaderCell,eElement:e,getDefaultIconName:function(){return p?he.ICON_HIDE:he.ICON_NOT_ALLOWED},getDragItem:function(){return r.createDragItem(i)},dragItemName:a,onDragStarted:function(){p=!u.get("suppressDragLeaveHidesColumns"),i.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.setMoving(!1,"uiColumnMoved")},onGridEnter:function(h){var f;if(p){var y=((f=h==null?void 0:h.columns)===null||f===void 0?void 0:f.filter(function(C){return!C.getColDef().lockVisible}))||[];c.setColumnsVisible(y,!0,"uiColumnMoved")}},onGridExit:function(h){var f;if(p){var y=((f=h==null?void 0:h.columns)===null||f===void 0?void 0:f.filter(function(C){return!C.getColDef().lockVisible}))||[];c.setColumnsVisible(y,!1,"uiColumnMoved")}}};l.addDragSource(d,!0)}},t.prototype.createDragItem=function(e){var r={};return r[e.getId()]=e.isVisible(),{columns:[e],visibleState:r}},t.prototype.updateState=function(){this.menuEnabled=this.menuService.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=this.menuService.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails(),r=this.comp.getUserCompInstance(),o=r!=null&&this.userCompDetails.componentClass==e.componentClass,i=o?this.attemptHeaderCompRefresh(e.params):!1;i?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var r=this.comp.getUserCompInstance();if(!r||!r.refresh)return!1;var o=r.refresh(e);return o},t.prototype.calculateDisplayName=function(){return this.beans.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef(),r=this.gridOptionsService.get("suppressMovableColumns"),o=!r&&!e.suppressMovable&&!e.lockPosition;return!!o||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,r=function(){var o=e.column.getActualWidth();e.comp.setWidth("".concat(o,"px"))};this.addManagedListener(this.column,Z.EVENT_WIDTH_CHANGED,r),r()},t.prototype.setupMovingCss=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,Z.EVENT_MOVING_CHANGED,r),r()},t.prototype.setupMenuClass=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,Z.EVENT_MENU_VISIBLE_CHANGED,r),r()},t.prototype.setupSortableClass=function(){var e=this,r=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};r(),this.addRefreshFunction(r),this.addManagedListener(this.eventService,Z.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupFilterClass=function(){var e=this,r=function(){var o=e.column.isFilterActive();e.comp.addOrRemoveCssClass("ag-header-cell-filtered",o),e.refreshAria()};this.addManagedListener(this.column,Z.EVENT_FILTER_ACTIVE_CHANGED,r),r()},t.prototype.setupWrapTextClass=function(){var e=this,r=function(){var o=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",o)};r(),this.addRefreshFunction(r)},t.prototype.onDisplayedColumnsChanged=function(){n.prototype.onDisplayedColumnsChanged.call(this),this.isAlive()&&this.onHeaderHeightChanged()},t.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},t.prototype.refreshSpanHeaderHeight=function(){var e=this,r=e.eGui,o=e.column,i=e.comp,s=e.beans;if(!o.isSpanHeaderHeight()){r.style.removeProperty("top"),r.style.removeProperty("height"),i.addOrRemoveCssClass("ag-header-span-height",!1),i.addOrRemoveCssClass("ag-header-span-total",!1);return}var a=this.column.getColumnGroupPaddingInfo(),l=a.numberOfParents,u=a.isSpanningTotal;i.addOrRemoveCssClass("ag-header-span-height",l>0);var c=s.columnModel,p=c.getColumnHeaderRowHeight();if(l===0){i.addOrRemoveCssClass("ag-header-span-total",!1),r.style.setProperty("top","0px"),r.style.setProperty("height","".concat(p,"px"));return}i.addOrRemoveCssClass("ag-header-span-total",u);var d=c.isPivotMode(),h=d?c.getPivotGroupHeaderHeight():c.getGroupHeaderHeight(),f=l*h;r.style.setProperty("top","".concat(-f,"px")),r.style.setProperty("height","".concat(p+f,"px"))},t.prototype.setupAutoHeight=function(e){var r=this,o=this.beans,i=o.columnModel,s=o.resizeObserverService,a=function(h){if(r.isAlive()){var f=Bt(r.getGui()),y=f.paddingTop,C=f.paddingBottom,m=f.borderBottomWidth,w=f.borderTopWidth,E=y+C+m+w,S=e.offsetHeight,R=S+E;if(h<5){var O=r.beans.gridOptionsService.getDocument(),b=!O||!O.contains(e),A=R==0;if(b||A){window.setTimeout(function(){return a(h+1)},0);return}}i.setColumnHeaderHeight(r.column,R)}},l=!1,u,c=function(){var h=r.column.isAutoHeaderHeight();h&&!l&&p(),!h&&l&&d()},p=function(){l=!0,a(0),r.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),u=s.observeResize(e,function(){return a(0)})},d=function(){l=!1,u&&u(),r.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),u=void 0};c(),this.addDestroyFunc(function(){return d()}),this.addManagedListener(this.column,Z.EVENT_WIDTH_CHANGED,function(){return l&&a(0)}),this.addManagedListener(this.eventService,Z.EVENT_SORT_CHANGED,function(){l&&window.setTimeout(function(){return a(0)})}),this.addRefreshFunction(c)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),r=this.beans.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(Ia(r)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.refreshAriaFilterButton=function(){if(this.openFilterEnabled&&!this.menuService.isLegacyMenuEnabled()){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)},t.prototype.refreshAriaFiltered=function(){var e=this.localeService.getLocaleTextFunc(),r=this.column.isFilterActive();r?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)},t.prototype.setAriaDescriptionProperty=function(e,r){r!=null?this.ariaDescriptionProperties.set(e,r):this.ariaDescriptionProperties.delete(e)},t.prototype.announceAriaDescription=function(){var e=this,r=this.beans.gridOptionsService.getDocument();if(this.eGui.contains(r.activeElement)){var o=Array.from(this.ariaDescriptionProperties.keys()).sort(function(i,s){return i==="filter"?-1:s.charCodeAt(0)-i.charCodeAt(0)}).map(function(i){return e.ariaDescriptionProperties.get(i)}).join(". ");this.beans.ariaAnnouncementService.announceValue(o)}},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()},t.prototype.addColumnHoverListener=function(){var e=this,r=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var o=e.beans.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,g.EVENT_COLUMN_HOVER_CHANGED,r),r()},t.prototype.getColId=function(){return this.column.getColId()},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,r=function(s){return e.handleMouseOverChange(s.type==="mouseenter")},o=function(){return e.dispatchColumnMouseEvent(g.EVENT_COLUMN_HEADER_CLICKED,e.column)},i=function(s){return e.handleContextMenuMouseEvent(s,void 0,e.column)};this.addManagedListener(this.getGui(),"mouseenter",r),this.addManagedListener(this.getGui(),"mouseleave",r),this.addManagedListener(this.getGui(),"click",o),this.addManagedListener(this.getGui(),"contextmenu",i)},t.prototype.handleMouseOverChange=function(e){this.setActiveHeader(e);var r=e?g.EVENT_COLUMN_HEADER_MOUSE_OVER:g.EVENT_COLUMN_HEADER_MOUSE_LEAVE,o={type:r,column:this.column};this.eventService.dispatchEvent(o)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},t.prototype.getAnchorElementForMenu=function(e){var r=this.comp.getUserCompInstance();return r instanceof cs?r.getAnchorElementForMenu(e):this.getGui()},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.refreshFunctions=null,this.selectAllFeature=null,this.dragSourceElement=null,this.userCompDetails=null,this.userHeaderClasses=null,this.ariaDescriptionProperties=null},t}(Si),Cg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},mg=function(n){Cg(t,n);function t(e,r,o,i){var s=n.call(this)||this;return s.eResize=r,s.comp=e,s.pinned=o,s.columnGroup=i,s}return t.prototype.postConstruct=function(){var e=this;if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}var r=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(r),!this.gridOptionsService.get("suppressAutoSize")){var o=this.gridOptionsService.get("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",function(){var i=[],s=e.columnGroup.getDisplayedLeafColumns();s.forEach(function(a){a.getColDef().suppressAutoSize||i.push(a.getColId())}),i.length>0&&e.columnModel.autoSizeColumns({columns:i,skipHeader:o,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit("uiColumnResized")})}},t.prototype.onResizeStart=function(e){var r=this.getInitialValues(e);this.storeLocalValues(r),this.toggleColumnResizing(!0)},t.prototype.onResizing=function(e,r,o){o===void 0&&(o="uiColumnResized");var i=this.normaliseDragChange(r),s=this.resizeStartWidth+i;this.resizeColumnsFromLocalValues(s,o,e)},t.prototype.getInitialValues=function(e){var r=this.getColumnsToResize(),o=this.getInitialSizeOfColumns(r),i=this.getSizeRatiosOfColumns(r,o),s={columnsToResize:r,resizeStartWidth:o,resizeRatios:i},a=null;if(e&&(a=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),a){var l=a.getDisplayedLeafColumns(),u=s.groupAfterColumns=l.filter(function(p){return p.isResizable()}),c=s.groupAfterStartWidth=this.getInitialSizeOfColumns(u);s.groupAfterRatios=this.getSizeRatiosOfColumns(u,c)}else s.groupAfterColumns=void 0,s.groupAfterStartWidth=void 0,s.groupAfterRatios=void 0;return s},t.prototype.storeLocalValues=function(e){var r=e.columnsToResize,o=e.resizeStartWidth,i=e.resizeRatios,s=e.groupAfterColumns,a=e.groupAfterStartWidth,l=e.groupAfterRatios;this.resizeCols=r,this.resizeStartWidth=o,this.resizeRatios=i,this.resizeTakeFromCols=s,this.resizeTakeFromStartWidth=a,this.resizeTakeFromRatios=l},t.prototype.clearLocalValues=function(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0},t.prototype.resizeLeafColumnsToFit=function(e){var r=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),o=this.getInitialValues();r>o.resizeStartWidth&&this.resizeColumns(o,r,e,!0)},t.prototype.resizeColumnsFromLocalValues=function(e,r,o){var i,s,a;if(o===void 0&&(o=!0),!(!this.resizeCols||!this.resizeRatios)){var l={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:(i=this.resizeTakeFromCols)!==null&&i!==void 0?i:void 0,groupAfterStartWidth:(s=this.resizeTakeFromStartWidth)!==null&&s!==void 0?s:void 0,groupAfterRatios:(a=this.resizeTakeFromRatios)!==null&&a!==void 0?a:void 0};this.resizeColumns(l,e,r,o)}},t.prototype.resizeColumns=function(e,r,o,i){i===void 0&&(i=!0);var s=e.columnsToResize,a=e.resizeStartWidth,l=e.resizeRatios,u=e.groupAfterColumns,c=e.groupAfterStartWidth,p=e.groupAfterRatios,d=[];if(d.push({columns:s,ratios:l,width:r}),u){var h=r-a;d.push({columns:u,ratios:p,width:c-h})}this.columnModel.resizeColumnSets({resizeSets:d,finished:i,source:o}),i&&this.toggleColumnResizing(!1)},t.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},t.prototype.getColumnsToResize=function(){var e=this.columnGroup.getDisplayedLeafColumns();return e.filter(function(r){return r.isResizable()})},t.prototype.getInitialSizeOfColumns=function(e){return e.reduce(function(r,o){return r+o.getActualWidth()},0)},t.prototype.getSizeRatiosOfColumns=function(e,r){return e.map(function(o){return o.getActualWidth()/r})},t.prototype.normaliseDragChange=function(e){var r=e;return this.gridOptionsService.get("enableRtl")?this.pinned!=="left"&&(r*=-1):this.pinned==="right"&&(r*=-1),r},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.clearLocalValues()},wi([v("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),wi([v("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),wi([v("columnModel")],t.prototype,"columnModel",void 0),wi([F],t.prototype,"postConstruct",null),t}(D),Sg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),wg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Eg=function(n){Sg(t,n);function t(e,r){var o=n.call(this)||this;return o.removeChildListenersFuncs=[],o.columnGroup=r,o.comp=e,o}return t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,se.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var r=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(o){o.addEventListener("widthChanged",r),o.addEventListener("visibleChanged",r),e.removeChildListenersFuncs.push(function(){o.removeEventListener("widthChanged",r),o.removeEventListener("visibleChanged",r)})})},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){var e=this.columnGroup.getActualWidth();this.comp.setWidth("".concat(e,"px")),this.comp.addOrRemoveCssClass("ag-hidden",e===0)},wg([F],t.prototype,"postConstruct",null),t}(D),_g=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ei=function(){return Ei=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0&&(i.push(s),_e(r,s))}),r.forEach(function(s){return i.push(s)}),{columns:i,visibleState:o}},t.prototype.isSuppressMoving=function(){var e=!1;this.column.getLeafColumns().forEach(function(o){(o.getColDef().suppressMovable||o.getColDef().lockPosition)&&(e=!0)});var r=e||this.gridOptionsService.get("suppressMovableColumns");return r},t}(Si),Og=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},gu=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Tg=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Pg=0,Ps=function(n){Og(t,n);function t(e,r,o){var i=n.call(this)||this;i.instanceId=Pg++,i.rowIndex=e,i.pinned=r,i.type=o;var s=o==ge.COLUMN_GROUP?"ag-header-row-column-group":o==ge.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.headerRowClass="ag-header-row ".concat(s),i}return t.prototype.postConstruct=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.isEnsureDomOrder=this.gridOptionsService.get("ensureDomOrder")},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,r){r===void 0&&(r=!0),this.comp=e,r&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()},t.prototype.getHeaderRowClass=function(){return this.headerRowClass},t.prototype.getAriaRowIndex=function(){return this.rowIndex+1},t.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_VIRTUAL_COLUMNS_CHANGED,function(r){return e.onVirtualColumnsChanged(r.afterScroll)}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",function(r){return e.isEnsureDomOrder=r.currentValue}),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){if(this.headerCellCtrls)return Jt(this.headerCellCtrls).find(function(r){return r.getColumnGroupChild()===e})},t.prototype.onDisplayedColumnsChanged=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth("".concat(e,"px"))},t.prototype.getWidthForRow=function(){var e=this.beans.columnModel;if(this.isPrintLayout){var r=this.pinned!=null;return r?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null)}return e.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.getTopAndHeight(),r=e.topOffset,o=e.rowHeight;this.comp.setTop(r+"px"),this.comp.setHeight(o+"px")},t.prototype.getTopAndHeight=function(){var e=this.beans,r=e.columnModel,o=e.filterManager,i=r.getHeaderRowCount(),s=[],a=0;o.hasFloatingFilters()&&(i++,a=1);for(var l=r.getColumnGroupHeaderRowHeight(),u=r.getColumnHeaderRowHeight(),c=1+a,p=i-c,d=0;d=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ag=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},bg=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},As=function(n){Lg(t,n);function t(e){var r=n.call(this)||this;return r.headerRowComps={},r.rowCompsList=[],r.pinned=e,r}return t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var r={setDisplayed:function(i){return e.setDisplayed(i)},setCtrls:function(i){return e.setCtrls(i)},setCenterWidth:function(i){return e.eCenterContainer.style.width=i},setViewportScrollLeft:function(i){return e.getGui().scrollLeft=i},setPinnedContainerWidth:function(i){var s=e.getGui();s.style.width=i,s.style.maxWidth=i,s.style.minWidth=i}},o=this.createManagedBean(new Fg(this.pinned));o.setComp(r,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned=="left",r=this.pinned=="right",o=e?t.PINNED_LEFT_TEMPLATE:r?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(o),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var r=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];var i,s=function(a){var l=a.getGui(),u=l.parentElement!=r.eRowContainer;u&&r.eRowContainer.appendChild(l),i&&Wn(r.eRowContainer,l,i),i=l};e.forEach(function(a){var l=a.getInstanceId(),u=o[l];delete o[l];var c=u||r.createBean(new ig(a));r.headerRowComps[l]=c,r.rowCompsList.push(c),s(c)}),It(o).forEach(function(a){return r.destroyRowComp(a)})},t.PINNED_LEFT_TEMPLATE='
',t.PINNED_RIGHT_TEMPLATE='
',t.CENTER_TEMPLATE=``,Ds([L("eCenterContainer")],t.prototype,"eCenterContainer",void 0),Ds([F],t.prototype,"init",null),Ds([Se],t.prototype,"destroyRowComps",null),t}(k),Lg=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),go=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ct;(function(n){n[n.UP=0]="UP",n[n.DOWN=1]="DOWN",n[n.LEFT=2]="LEFT",n[n.RIGHT=3]="RIGHT"})(Ct||(Ct={}));var Mg=function(n){Lg(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.currentHeaderRowWithoutSpan=-1,e}return t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(o){e.gridBodyCon=o.gridBodyCtrl});var r=this.gridOptionsService.getDocument();this.addManagedListener(r,"mousedown",function(){return e.setCurrentHeaderRowWithoutSpan(-1)})},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.navigateVertically=function(e,r,o){if(r||(r=this.focusService.getFocusedHeader()),!r)return!1;var i=r.headerRowIndex,s=r.column,a=this.getHeaderRowCount(),l=e===Ct.UP,u=l?this.headerPositionUtils.getColumnVisibleParent(s,i):this.headerPositionUtils.getColumnVisibleChild(s,i),c=u.headerRowIndex,p=u.column,d=u.headerRowIndexWithoutSpan,h=!1;return c<0&&(c=0,p=s,h=!0),c>=a?(c=-1,this.setCurrentHeaderRowWithoutSpan(-1)):d!==void 0&&(this.currentHeaderRowWithoutSpan=d),!h&&!p?!1:this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c,column:p},allowUserOverride:!0,event:o})},t.prototype.setCurrentHeaderRowWithoutSpan=function(e){this.currentHeaderRowWithoutSpan=e},t.prototype.navigateHorizontally=function(e,r,o){r===void 0&&(r=!1);var i=this.focusService.getFocusedHeader(),s=e===Ct.LEFT,a=this.gridOptionsService.get("enableRtl"),l,u;return this.currentHeaderRowWithoutSpan!==-1?i.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=i.headerRowIndex,s!==a?(u="Before",l=this.headerPositionUtils.findHeader(i,u)):(u="After",l=this.headerPositionUtils.findHeader(i,u)),l||!r?this.focusService.focusHeaderPosition({headerPosition:l,direction:u,fromTab:r,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(i,u,o)},t.prototype.focusNextHeaderRow=function(e,r,o){var i=e.headerRowIndex,s=null,a;if(r==="Before"?i>0&&(a=i-1,this.currentHeaderRowWithoutSpan-=1,s=this.headerPositionUtils.findColAtEdgeForHeaderRow(a,"end")):(a=i+1,this.currentHeaderRowWithoutSpan=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},xg=function(n){Ig(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setComp=function(e,r,o){this.comp=e,this.eGui=r,this.createManagedBean(new ar(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight();var i=this.onHeaderContextMenu.bind(this);this.addManagedListener(this.eGui,"contextmenu",i),this.mockContextMenuForIPad(i),this.ctrlsService.registerGridHeaderCtrl(this)},t.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("pivotHeaderHeight",e),this.addManagedPropertyListener("groupHeaderHeight",e),this.addManagedPropertyListener("pivotGroupHeaderHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_GRID_STYLES_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,e)},t.prototype.getHeaderHeight=function(){return this.headerHeight},t.prototype.setHeaderHeight=function(){var e=this.columnModel,r=0,o=e.getHeaderRowCount(),i,s=this.filterManager.hasFloatingFilters();s&&(o++,r=1);var a=this.columnModel.getColumnGroupHeaderRowHeight(),l=this.columnModel.getColumnHeaderRowHeight(),u=1+r,c=o-u;if(i=r*e.getFloatingFiltersHeight(),i+=c*a,i+=l,this.headerHeight!==i){this.headerHeight=i;var p="".concat(i+1,"px");this.comp.setHeightAndMinHeight(p),this.eventService.dispatchEvent({type:g.EVENT_HEADER_HEIGHT_CHANGED})}},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns(),r=e.some(function(o){return o.isSpanHeaderHeight()});this.comp.addOrRemoveCssClass("ag-header-allow-overflow",r)},t.prototype.onTabKeyDown=function(e){var r=this.gridOptionsService.get("enableRtl"),o=e.shiftKey!==r?Ct.LEFT:Ct.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},t.prototype.handleKeyDown=function(e){var r=null;switch(e.key){case _.LEFT:r=Ct.LEFT;case _.RIGHT:P(r)||(r=Ct.RIGHT),this.headerNavigationService.navigateHorizontally(r,!1,e);break;case _.UP:r=Ct.UP;case _.DOWN:P(r)||(r=Ct.DOWN),this.headerNavigationService.navigateVertically(r,null,e)&&e.preventDefault();break;default:return}},t.prototype.onFocusOut=function(e){var r=this.gridOptionsService.getDocument(),o=e.relatedTarget;!o&&this.eGui.contains(r.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},t.prototype.onHeaderContextMenu=function(e,r,o){if(!(!e&&!o||!this.menuService.isHeaderContextMenuEnabled())){var i=(e??r).target;(i===this.eGui||i===this.ctrlsService.getHeaderRowContainerCtrl().getViewport())&&this.menuService.showHeaderContextMenu(void 0,e,o)}},t.prototype.mockContextMenuForIPad=function(e){if(Dt()){var r=new me(this.eGui),o=function(i){e(void 0,i.touchStart,i.touchEvent)};this.addManagedListener(r,me.EVENT_LONG_TAP,o),this.addDestroyFunc(function(){return r.destroy()})}},Gr([v("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Gr([v("focusService")],t.prototype,"focusService",void 0),Gr([v("columnModel")],t.prototype,"columnModel",void 0),Gr([v("ctrlsService")],t.prototype,"ctrlsService",void 0),Gr([v("filterManager")],t.prototype,"filterManager",void 0),Gr([v("menuService")],t.prototype,"menuService",void 0),t}(D),Ng=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Gg=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Vg=function(n){Ng(t,n);function t(){return n.call(this,t.TEMPLATE)||this}return t.prototype.postConstruct=function(){var e=this,r={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setHeightAndMinHeight:function(s){e.getGui().style.height=s,e.getGui().style.minHeight=s}},o=this.createManagedBean(new xg);o.setComp(r,this.getGui(),this.getFocusableElement());var i=function(s){e.createManagedBean(s),e.appendChild(s)};i(new As("left")),i(new As(null)),i(new As("right"))},t.TEMPLATE='`)},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var r=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(r("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Je("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Je("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(r){switch(r.key){case _.ENTER:case _.SPACE:r.preventDefault(),e.toggleGroupExpand();break;case _.RIGHT:case _.LEFT:r.preventDefault(),e.toggleGroupExpand(r.key===_.RIGHT);break}})},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Pt(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;$(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),$(this.eGroupOpenedIcon,e&&this.expanded),$(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-".concat(this.alignItems)),this.alignItems=e;var r="ag-group-item-alignment-".concat(this.alignItems);return this.addCssClass(r),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),$(this.eContainer,!0),this):(e=e??!this.expanded,this.expanded===e?this:(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),$(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED}),this))},t.prototype.addItems=function(e){var r=this;e.forEach(function(o){return r.addItem(o)})},t.prototype.prependItem=function(e){this.insertItem(e,this.eContainer.firstChild)},t.prototype.addItem=function(e){this.insertItem(e,null)},t.prototype.insertItem=function(e,r){var o=this.eContainer,i=e instanceof k?e.getGui():e;i.classList.add("ag-group-item","ag-".concat(this.cssIdentifier,"-group-item")),o.insertBefore(i,r),this.items.push(i)},t.prototype.hideItem=function(e,r){var o=this.items[r];$(o,!e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,r){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),r||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var r=this;return this.cbGroupEnabled.onValueChange(function(o){r.setEnabled(o,!0),e(o)}),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",zt([L("eTitleBar")],t.prototype,"eTitleBar",void 0),zt([L("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),zt([L("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),zt([L("eToolbar")],t.prototype,"eToolbar",void 0),zt([L("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),zt([L("eTitle")],t.prototype,"eTitle",void 0),zt([L("eContainer")],t.prototype,"eContainer",void 0),zt([F],t.prototype,"postConstruct",null),t}(k),$y=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ru=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Yy=function(n){$y(t,n);function t(e,r){e===void 0&&(e=0);var o=n.call(this,'
')||this;return o.level=e,o.menuItems=[],o.params=r??{column:null,node:null,value:null},o}return t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)},onFocusIn:function(r){return e.handleFocusIn(r)},onFocusOut:function(r){return e.handleFocusOut(r)}})},t.prototype.onTabKeyDown=function(e){var r=this.getParentComponent(),o=r&&r.getGui(),i=o&&o.classList.contains("ag-focus-managed");i||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case _.UP:case _.RIGHT:case _.DOWN:case _.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case _.ESCAPE:this.closeIfIsChild()&&it(e);break}},t.prototype.handleFocusIn=function(e){var r,o,i=e.relatedTarget;!this.tabGuardCtrl.isTabGuard(i)&&(this.getGui().contains(i)||!((o=(r=this.activeMenuItem)===null||r===void 0?void 0:r.getSubMenuGui())===null||o===void 0)&&o.contains(i))||(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())},t.prototype.handleFocusOut=function(e){var r,o=e.relatedTarget;!this.activeMenuItem||this.getGui().contains(o)||!((r=this.activeMenuItem.getSubMenuGui())===null||r===void 0)&&r.contains(o)||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var r=this;e!=null&&je.all(e.map(function(o){return o==="separator"?je.resolve({eGui:r.createSeparator()}):typeof o=="string"?(console.warn("AG Grid: unrecognised menu item ".concat(o)),je.resolve({eGui:null})):r.addItem(o)})).then(function(o){o.forEach(function(i){i!=null&&i.eGui&&(r.appendChild(i.eGui),i.comp&&r.menuItems.push(i.comp))})})},t.prototype.addItem=function(e){var r=this,o=this.createManagedBean(new Fi);return o.init({menuItemDef:e,isAnotherSubMenuOpen:function(){return r.menuItems.some(function(i){return i.isSubMenuOpen()})},level:this.level,contextParams:this.params}).then(function(){return o.setParentComponent(r),r.addManagedListener(o,Fi.EVENT_CLOSE_MENU,function(i){r.dispatchEvent(i)}),r.addManagedListener(o,Fi.EVENT_MENU_ITEM_ACTIVATED,function(i){r.activeMenuItem&&r.activeMenuItem!==i.menuItem&&r.activeMenuItem.deactivate(),r.activeMenuItem=i.menuItem}),{comp:o,eGui:o.getGui()}})},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter(function(r){return!r.isDisabled()})[0];e&&e.activate()},t.prototype.createSeparator=function(){var e=` `;return Re(e)},t.prototype.handleNavKey=function(e){switch(e){case _.UP:case _.DOWN:var r=this.findNextItem(e===_.UP);r&&r!==this.activeMenuItem&&r.activate();return}var o=this.gridOptionsService.get("enableRtl")?_.RIGHT:_.LEFT;e===o?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var r=this.getParentComponent();return r&&r instanceof Fi?(e&&e.preventDefault(),r.closeSubMenu(),r.getGui().focus(),!0):!1},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var r=this.menuItems.filter(function(l){return!l.isDisabled()});if(r.length){if(!this.activeMenuItem)return e?q(r):r[0];e&&r.reverse();for(var o,i=!1,s=0;s=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Qy=function(n){Yy(t,n);function t(e){var r=n.call(this)||this;return r.wrappedComponent=e,r.setTemplateFromElement(e.getGui()),r}return t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)}})},t.prototype.handleKeyDown=function(e){e.key===_.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},qy([F],t.prototype,"postConstruct",null),t}(yo),Xy=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Co=function(){return Co=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fi=function(n){Xy(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.isActive=!1,e.subMenuIsOpen=!1,e.subMenuIsOpening=!1,e.suppressRootStyles=!0,e.suppressAria=!0,e.suppressFocus=!0,e}return t.prototype.init=function(e){var r=this,o,i,s=e.menuItemDef,a=e.isAnotherSubMenuOpen,l=e.level,u=e.childComponent,c=e.contextParams;this.params=e.menuItemDef,this.level=l,this.isAnotherSubMenuOpen=a,this.childComponent=u,this.contextParams=c,this.cssClassPrefix=(i=(o=this.params.menuItemParams)===null||o===void 0?void 0:o.cssClassPrefix)!==null&&i!==void 0?i:"ag-menu-option";var p=this.userComponentFactory.getMenuItemCompDetails(this.params,Co(Co({},s),{level:l,isAnotherSubMenuOpen:a,openSubMenu:function(d){return r.openSubMenu(d)},closeSubMenu:function(){return r.closeSubMenu()},closeMenu:function(d){return r.closeMenu(d)},updateTooltip:function(d){return r.updateTooltip(d)},onItemActivated:function(){return r.onItemActivated()}}));return p.newAgStackInstance().then(function(d){var h;r.menuItemComp=d;var f=(h=d.configureDefaults)===null||h===void 0?void 0:h.call(d);f&&r.configureDefaults(f===!0?void 0:f)})},t.prototype.addListeners=function(e,r){var o=this;r!=null&&r.suppressClick||this.addManagedListener(e,"click",function(i){return o.onItemSelected(i)}),r!=null&&r.suppressKeyboardSelect||this.addManagedListener(e,"keydown",function(i){(i.key===_.ENTER||i.key===_.SPACE)&&(i.preventDefault(),o.onItemSelected(i))}),r!=null&&r.suppressMouseDown||this.addManagedListener(e,"mousedown",function(i){i.stopPropagation(),i.preventDefault()}),r!=null&&r.suppressMouseOver||(this.addManagedListener(e,"mouseenter",function(){return o.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return o.onMouseLeave()}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var r=this,o,i;if(e===void 0&&(e=!1),this.closeSubMenu(),!!this.params.subMenu){this.subMenuIsOpening=!0;var s=Re('');this.eSubMenuGui=s;var a,l=function(){r.subMenuIsOpening=!1};if(this.childComponent){var u=this.createBean(new Qy(this.childComponent));u.setParentComponent(this);var c=u.getGui(),p="mouseenter",d=function(){return r.cancelDeactivate()};c.addEventListener(p,d),a=function(){return c.removeEventListener(p,d)},s.appendChild(c),this.childComponent.afterGuiAttached&&(l=function(){r.childComponent.afterGuiAttached(),r.subMenuIsOpening=!1})}else if(this.params.subMenu){var h=this.createBean(new $y(this.level+1,this.contextParams));h.setParentComponent(this),h.addMenuItems(this.params.subMenu),s.appendChild(h.getGui()),this.addManagedListener(h,t.EVENT_CLOSE_MENU,function(C){return r.dispatchEvent(C)}),h.addGuiEventListener("mouseenter",function(){return r.cancelDeactivate()}),a=function(){return r.destroyBean(h)},e&&(l=function(){h.activateFirstItem(),r.subMenuIsOpening=!1})}var f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:this.eGui,ePopup:s}),y=this.localeService.getLocaleTextFunc(),m=this.popupService.addPopup({modal:!0,eChild:s,positionCallback:f,anchorToElement:this.eGui,ariaLabel:y("ariaLabelSubMenu","SubMenu"),afterGuiAttached:l});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=function(){var C,w;m&&m.hideFunc(),r.subMenuIsOpen=!1,r.setAriaExpanded(!1),a(),(w=(C=r.menuItemComp).setExpanded)===null||w===void 0||w.call(C,!1),r.eSubMenuGui=void 0},(i=(o=this.menuItemComp).setExpanded)===null||i===void 0||i.call(o,!0)}},t.prototype.setAriaExpanded=function(e){this.suppressAria||Pt(this.eGui,e)},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.isSubMenuOpening=function(){return this.subMenuIsOpening},t.prototype.activate=function(e){var r=this,o,i;this.cancelActivate(),!this.params.disabled&&(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add("".concat(this.cssClassPrefix,"-active")),(i=(o=this.menuItemComp).setActive)===null||i===void 0||i.call(o,!0),this.suppressFocus||this.eGui.focus({preventScroll:!0}),e&&this.params.subMenu&&window.setTimeout(function(){r.isAlive()&&r.isActive&&r.openSubMenu()},300),this.onItemActivated())},t.prototype.deactivate=function(){var e,r;this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove("".concat(this.cssClassPrefix,"-active")),(r=(e=this.menuItemComp).setActive)===null||r===void 0||r.call(e,!1),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.getGui=function(){return this.menuItemComp.getGui()},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getSubMenuGui=function(){return this.eSubMenuGui},t.prototype.onItemSelected=function(e){var r=this,o,i;(i=(o=this.menuItemComp).select)===null||i===void 0||i.call(o),this.params.action?this.getFrameworkOverrides().wrapOutgoing(function(){return r.params.action(r.gridOptionsService.addGridCommonParams(Co({},r.contextParams)))}):this.openSubMenu(e&&e.type==="keydown"),!(this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect)&&this.closeMenu(e)},t.prototype.closeMenu=function(e){var r={type:t.EVENT_CLOSE_MENU,event:e};this.dispatchEvent(r)},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(function(){return e.activate(!0)},t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(function(){return e.deactivate()},t.ACTIVATION_DELAY):this.deactivate()},t.prototype.configureDefaults=function(e){var r=this,o,i,s;if(this.tooltip=this.params.tooltip,!this.menuItemComp){setTimeout(function(){return r.configureDefaults(e)});return}var a=this.menuItemComp.getGui(),l=(i=(o=this.menuItemComp).getRootElement)===null||i===void 0?void 0:i.call(o);l&&(e!=null&&e.suppressRootStyles||a.classList.add("ag-menu-option-custom"),a=l),this.eGui=a,this.suppressRootStyles=!!(e!=null&&e.suppressRootStyles),this.suppressRootStyles||(a.classList.add(this.cssClassPrefix),(s=this.params.cssClasses)===null||s===void 0||s.forEach(function(u){return a.classList.add(u)}),this.params.disabled&&a.classList.add("".concat(this.cssClassPrefix,"-disabled"))),e!=null&&e.suppressTooltip||this.setTooltip(),this.suppressAria=!!(e!=null&&e.suppressAria),this.suppressAria||(le(a,"treeitem"),Ha(a,this.level+1),this.params.disabled&&hn(a,!0)),e!=null&&e.suppressTabIndex||a.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(a,e),this.suppressFocus=!!(e!=null&&e.suppressFocus)},t.prototype.updateTooltip=function(e){this.tooltip=e,!this.tooltipFeature&&this.menuItemComp&&this.setTooltip()},t.prototype.setTooltip=function(){var e=this;this.tooltip&&(this.tooltipFeature=this.createManagedBean(new di({getGui:function(){return e.getGui()},getTooltipValue:function(){return e.tooltip},getLocation:function(){return"menu"}},this.beans)),this.tooltipFeature.setComp(this.getGui()))},t.EVENT_CLOSE_MENU="closeMenu",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,xs([v("popupService")],t.prototype,"popupService",void 0),xs([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),xs([v("beans")],t.prototype,"beans",void 0),t}(D),Jy=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),So=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Zy=function(n){Jy(t,n);function t(e){var r=n.call(this,t.getTemplate(e))||this;return r.config=e,r.closable=!0,r}return t.getTemplate=function(e){var r=e.cssIdentifier||"default";return'
+
`;return Oe(e)},t.prototype.handleNavKey=function(e){switch(e){case _.UP:case _.DOWN:var r=this.findNextItem(e===_.UP);r&&r!==this.activeMenuItem&&r.activate();return}var o=this.gridOptionsService.get("enableRtl")?_.RIGHT:_.LEFT;e===o?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var r=this.getParentComponent();return r&&r instanceof Fi?(e&&e.preventDefault(),r.closeSubMenu(),r.getGui().focus(),!0):!1},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var r=this.menuItems.filter(function(l){return!l.isDisabled()});if(r.length){if(!this.activeMenuItem)return e?q(r):r[0];e&&r.reverse();for(var o,i=!1,s=0;s=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Xy=function(n){qy(t,n);function t(e){var r=n.call(this)||this;return r.wrappedComponent=e,r.setTemplateFromElement(e.getGui()),r}return t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(r){return e.onTabKeyDown(r)},handleKeyDown:function(r){return e.handleKeyDown(r)}})},t.prototype.handleKeyDown=function(e){e.key===_.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},Qy([F],t.prototype,"postConstruct",null),t}(yo),Zy=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),mo=function(){return mo=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Fi=function(n){Zy(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.isActive=!1,e.subMenuIsOpen=!1,e.subMenuIsOpening=!1,e.suppressRootStyles=!0,e.suppressAria=!0,e.suppressFocus=!0,e}return t.prototype.init=function(e){var r=this,o,i,s=e.menuItemDef,a=e.isAnotherSubMenuOpen,l=e.level,u=e.childComponent,c=e.contextParams;this.params=e.menuItemDef,this.level=l,this.isAnotherSubMenuOpen=a,this.childComponent=u,this.contextParams=c,this.cssClassPrefix=(i=(o=this.params.menuItemParams)===null||o===void 0?void 0:o.cssClassPrefix)!==null&&i!==void 0?i:"ag-menu-option";var p=this.userComponentFactory.getMenuItemCompDetails(this.params,mo(mo({},s),{level:l,isAnotherSubMenuOpen:a,openSubMenu:function(d){return r.openSubMenu(d)},closeSubMenu:function(){return r.closeSubMenu()},closeMenu:function(d){return r.closeMenu(d)},updateTooltip:function(d){return r.updateTooltip(d)},onItemActivated:function(){return r.onItemActivated()}}));return p.newAgStackInstance().then(function(d){var h;r.menuItemComp=d;var f=(h=d.configureDefaults)===null||h===void 0?void 0:h.call(d);f&&r.configureDefaults(f===!0?void 0:f)})},t.prototype.addListeners=function(e,r){var o=this;r!=null&&r.suppressClick||this.addManagedListener(e,"click",function(i){return o.onItemSelected(i)}),r!=null&&r.suppressKeyboardSelect||this.addManagedListener(e,"keydown",function(i){(i.key===_.ENTER||i.key===_.SPACE)&&(i.preventDefault(),o.onItemSelected(i))}),r!=null&&r.suppressMouseDown||this.addManagedListener(e,"mousedown",function(i){i.stopPropagation(),i.preventDefault()}),r!=null&&r.suppressMouseOver||(this.addManagedListener(e,"mouseenter",function(){return o.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return o.onMouseLeave()}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var r=this,o,i;if(e===void 0&&(e=!1),this.closeSubMenu(),!!this.params.subMenu){this.subMenuIsOpening=!0;var s=Oe('');this.eSubMenuGui=s;var a,l=function(){r.subMenuIsOpening=!1};if(this.childComponent){var u=this.createBean(new Xy(this.childComponent));u.setParentComponent(this);var c=u.getGui(),p="mouseenter",d=function(){return r.cancelDeactivate()};c.addEventListener(p,d),a=function(){return c.removeEventListener(p,d)},s.appendChild(c),this.childComponent.afterGuiAttached&&(l=function(){r.childComponent.afterGuiAttached(),r.subMenuIsOpening=!1})}else if(this.params.subMenu){var h=this.createBean(new Yy(this.level+1,this.contextParams));h.setParentComponent(this),h.addMenuItems(this.params.subMenu),s.appendChild(h.getGui()),this.addManagedListener(h,t.EVENT_CLOSE_MENU,function(m){return r.dispatchEvent(m)}),h.addGuiEventListener("mouseenter",function(){return r.cancelDeactivate()}),a=function(){return r.destroyBean(h)},e&&(l=function(){h.activateFirstItem(),r.subMenuIsOpening=!1})}var f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:this.eGui,ePopup:s}),y=this.localeService.getLocaleTextFunc(),C=this.popupService.addPopup({modal:!0,eChild:s,positionCallback:f,anchorToElement:this.eGui,ariaLabel:y("ariaLabelSubMenu","SubMenu"),afterGuiAttached:l});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=function(){var m,w;C&&C.hideFunc(),r.subMenuIsOpen=!1,r.setAriaExpanded(!1),a(),(w=(m=r.menuItemComp).setExpanded)===null||w===void 0||w.call(m,!1),r.eSubMenuGui=void 0},(i=(o=this.menuItemComp).setExpanded)===null||i===void 0||i.call(o,!0)}},t.prototype.setAriaExpanded=function(e){this.suppressAria||Pt(this.eGui,e)},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.isSubMenuOpening=function(){return this.subMenuIsOpening},t.prototype.activate=function(e){var r=this,o,i;this.cancelActivate(),!this.params.disabled&&(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add("".concat(this.cssClassPrefix,"-active")),(i=(o=this.menuItemComp).setActive)===null||i===void 0||i.call(o,!0),this.suppressFocus||this.eGui.focus({preventScroll:!0}),e&&this.params.subMenu&&window.setTimeout(function(){r.isAlive()&&r.isActive&&r.openSubMenu()},300),this.onItemActivated())},t.prototype.deactivate=function(){var e,r;this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove("".concat(this.cssClassPrefix,"-active")),(r=(e=this.menuItemComp).setActive)===null||r===void 0||r.call(e,!1),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.getGui=function(){return this.menuItemComp.getGui()},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getSubMenuGui=function(){return this.eSubMenuGui},t.prototype.onItemSelected=function(e){var r=this,o,i;(i=(o=this.menuItemComp).select)===null||i===void 0||i.call(o),this.params.action?this.getFrameworkOverrides().wrapOutgoing(function(){return r.params.action(r.gridOptionsService.addGridCommonParams(mo({},r.contextParams)))}):this.openSubMenu(e&&e.type==="keydown"),!(this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect)&&this.closeMenu(e)},t.prototype.closeMenu=function(e){var r={type:t.EVENT_CLOSE_MENU,event:e};this.dispatchEvent(r)},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(function(){return e.activate(!0)},t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(function(){return e.deactivate()},t.ACTIVATION_DELAY):this.deactivate()},t.prototype.configureDefaults=function(e){var r=this,o,i,s;if(this.tooltip=this.params.tooltip,!this.menuItemComp){setTimeout(function(){return r.configureDefaults(e)});return}var a=this.menuItemComp.getGui(),l=(i=(o=this.menuItemComp).getRootElement)===null||i===void 0?void 0:i.call(o);l&&(e!=null&&e.suppressRootStyles||a.classList.add("ag-menu-option-custom"),a=l),this.eGui=a,this.suppressRootStyles=!!(e!=null&&e.suppressRootStyles),this.suppressRootStyles||(a.classList.add(this.cssClassPrefix),(s=this.params.cssClasses)===null||s===void 0||s.forEach(function(u){return a.classList.add(u)}),this.params.disabled&&a.classList.add("".concat(this.cssClassPrefix,"-disabled"))),e!=null&&e.suppressTooltip||this.setTooltip(),this.suppressAria=!!(e!=null&&e.suppressAria),this.suppressAria||(le(a,"treeitem"),Ha(a,this.level+1),this.params.disabled&&hn(a,!0)),e!=null&&e.suppressTabIndex||a.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(a,e),this.suppressFocus=!!(e!=null&&e.suppressFocus)},t.prototype.updateTooltip=function(e){this.tooltip=e,!this.tooltipFeature&&this.menuItemComp&&this.setTooltip()},t.prototype.setTooltip=function(){var e=this;this.tooltip&&(this.tooltipFeature=this.createManagedBean(new di({getGui:function(){return e.getGui()},getTooltipValue:function(){return e.tooltip},getLocation:function(){return"menu"}},this.beans)),this.tooltipFeature.setComp(this.getGui()))},t.EVENT_CLOSE_MENU="closeMenu",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,xs([v("popupService")],t.prototype,"popupService",void 0),xs([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),xs([v("beans")],t.prototype,"beans",void 0),t}(D),Jy=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),So=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},eC=function(n){Jy(t,n);function t(e){var r=n.call(this,t.getTemplate(e))||this;return r.config=e,r.closable=!0,r}return t.getTemplate=function(e){var r=e.cssIdentifier||"default";return'
-
`)},t.prototype.postConstruct=function(){var e=this,r=this.config,o=r.component,i=r.closable,s=r.hideTitleBar,a=r.title,l=r.minWidth,u=l===void 0?250:l,c=r.width,p=r.minHeight,d=p===void 0?250:p,h=r.height,f=r.centered,y=r.popup,m=r.x,C=r.y;this.positionableFeature=new ml(this.getGui(),{minWidth:u,width:c,minHeight:d,height:h,centered:f,x:m,y:C,popup:y,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var w=this.getGui();o&&this.setBodyComponent(o),s?$(this.eTitleBar,!1):(a&&this.setTitle(a),this.setClosable(i??this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(E){var S=e.gridOptionsService.getDocument();if(w.contains(E.relatedTarget)||w.contains(S.activeElement)||e.eTitleBarButtons.contains(E.target)){E.preventDefault();return}var R=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");R&&R.focus()}),!(y&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,r=this.getGui();r.focus(),this.close=function(){r.parentElement.removeChild(r),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var r=this.closeButtonComp=new k(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(r);var o=r.getGui(),i=ne("close",this.gridOptionsService);i.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(i),this.addTitleBarButton(r),r.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var o=this.closeButtonComp.getGui();o.parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,r){var o=this.eTitleBarButtons,i=o.children,s=i.length;r==null&&(r=s),r=Math.max(0,Math.min(r,s)),e.addCssClass("ag-panel-title-bar-button");var a=e.getGui();r===0?o.insertAdjacentElement("afterbegin",a):r===s?o.insertAdjacentElement("beforeend",a):i[r-1].insertAdjacentElement("afterend",a),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return qr(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return ir(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&We(e)&&this.close(),n.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='
',So([L("eContentWrapper")],t.prototype,"eContentWrapper",void 0),So([L("eTitleBar")],t.prototype,"eTitleBar",void 0),So([L("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),So([L("eTitle")],t.prototype,"eTitle",void 0),So([F],t.prototype,"postConstruct",null),t}(k),em=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Li=function(){return Li=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){em(t,n);function t(e){var r=n.call(this,Li(Li({},e),{popup:!0}))||this;return r.isMaximizable=!1,r.isMaximized=!1,r.maximizeListeners=[],r.resizeListenerDestroy=null,r.lastPosition={x:0,y:0,width:0,height:0},r}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=this.config,i=o.movable,s=o.resizable,a=o.maximizable;this.addCssClass("ag-dialog"),n.prototype.postConstruct.call(this),this.addManagedListener(r,"focusin",function(l){r.contains(l.relatedTarget)||e.popupService.bringPopupToFront(r)}),i&&this.setMovable(i),a&&this.setMaximizable(a),s&&this.setResizable(s)},t.prototype.renderComponent=function(){var e=this.getGui(),r=this.config,o=r.alwaysOnTop,i=r.modal,s=r.title,a=r.afterGuiAttached,l=this.localeService.getLocaleTextFunc(),u=this.popupService.addPopup({modal:i,eChild:e,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:o,ariaLabel:s||l("ariaLabelDialog","Dialog"),afterGuiAttached:a});u&&(this.close=u.hideFunc)},t.prototype.onClosed=function(e){var r,o;this.destroy(),(o=(r=this.config).closedCallback)===null||o===void 0||o.call(r,e)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var r=this.lastPosition,o=r.x,i=r.y,s=r.width,a=r.height;this.setWidth(s),this.setHeight(a),this.positionableFeature.offsetElement(o,i)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){$(this.maximizeIcon,!this.isMaximized),$(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),n.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var r=this;if(!e){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}var o=this.eTitleBar;if(!(!o||e===this.isMaximizable)){var i=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),i.addManagedListener(i.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(i,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){r.isMaximized=!1,r.refreshMaximizeIcon()})}},t.prototype.buildMaximizeAndMinimizeElements=function(){var e=this.maximizeButtonComp=this.createBean(new k('
')),r=e.getGui();return this.maximizeIcon=ne("maximize",this.gridOptionsService),r.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=ne("minimize",this.gridOptionsService),r.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e},tm([v("popupService")],t.prototype,"popupService",void 0),t})(Zy);var rm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Mi=function(){return Mi=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ou=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Tu=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Kt;(function(n){n[n.vertical=0]="vertical",n[n.horizontal=1]="horizontal"})(Kt||(Kt={}));var om=0,im=function(n){rm(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.popupList=[],r}e=t,t.prototype.postConstruct=function(){var r=this;this.ctrlsService.whenReady(function(o){r.gridCtrl=o.gridCtrl}),this.addManagedListener(this.eventService,g.EVENT_GRID_STYLES_CHANGED,this.handleThemeChange.bind(this))},t.prototype.getPopupParent=function(){var r=this.gridOptionsService.get("popupParent");return r||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(r){var o=r.eventSource,i=r.ePopup,s=this.getPopupIndex(i);if(s!==-1){var a=this.popupList[s];a.alignedToElement=o}var l=o.getBoundingClientRect(),u=this.getParentRect(),c=this.keepXYWithinBounds(i,l.top-u.top,Kt.vertical),p=i.clientWidth>0?i.clientWidth:200;i.style.minWidth="".concat(p,"px");var d=u.right-u.left,h=d-p,f;this.gridOptionsService.get("enableRtl")?(f=m(),f<0&&(f=y(),this.setAlignedStyles(i,"left")),f>h&&(f=0,this.setAlignedStyles(i,"right"))):(f=y(),f>h&&(f=m(),this.setAlignedStyles(i,"right")),f<0&&(f=0,this.setAlignedStyles(i,"left"))),i.style.left="".concat(f,"px"),i.style.top="".concat(c,"px");function y(){return l.right-u.left-2}function m(){return l.left-u.left-p}},t.prototype.positionPopupUnderMouseEvent=function(r){var o=this,i=r.ePopup,s=r.nudgeX,a=r.nudgeY,l=r.skipObserver;this.positionPopup({ePopup:i,nudgeX:s,nudgeY:a,keepWithinBounds:!0,skipObserver:l,updatePosition:function(){return o.calculatePointerAlign(r.mouseEvent)},postProcessCallback:function(){return o.callPostProcessPopup(r.type,r.ePopup,null,r.mouseEvent,r.column,r.rowNode)}})},t.prototype.calculatePointerAlign=function(r){var o=this.getParentRect();return{x:r.clientX-o.left,y:r.clientY-o.top}},t.prototype.positionPopupByComponent=function(r){var o=this,i=r.ePopup,s=r.nudgeX,a=r.nudgeY,l=r.keepWithinBounds,u=r.eventSource,c=r.alignSide,p=c===void 0?"left":c,d=r.position,h=d===void 0?"over":d,f=r.column,y=r.rowNode,m=r.type,C=u.getBoundingClientRect(),w=this.getParentRect(),E=this.getPopupIndex(i);if(E!==-1){var S=this.popupList[E];S.alignedToElement=u}var R=function(){var O=C.left-w.left;p==="right"&&(O-=i.offsetWidth-C.width);var b;if(h==="over")b=C.top-w.top,o.setAlignedStyles(i,"over");else{o.setAlignedStyles(i,"under");var A=o.shouldRenderUnderOrAbove(i,C,w,r.nudgeY||0);A==="under"?b=C.top-w.top+C.height:b=C.top-i.offsetHeight-(a||0)*2-w.top}return{x:O,y:b}};this.positionPopup({ePopup:i,nudgeX:s,nudgeY:a,keepWithinBounds:l,updatePosition:R,postProcessCallback:function(){return o.callPostProcessPopup(m,i,u,null,f,y)}})},t.prototype.shouldRenderUnderOrAbove=function(r,o,i,s){var a=i.bottom-o.bottom,l=o.top-i.top,u=r.offsetHeight+s;return a>u?"under":l>u||l>a?"above":"under"},t.prototype.setAlignedStyles=function(r,o){var i=this.getPopupIndex(r);if(i!==-1){var s=this.popupList[i],a=s.alignedToElement;if(a){var l=["right","left","over","above","under"];l.forEach(function(u){a.classList.remove("ag-has-popup-positioned-".concat(u)),r.classList.remove("ag-popup-positioned-".concat(u))}),o&&(a.classList.add("ag-has-popup-positioned-".concat(o)),r.classList.add("ag-popup-positioned-".concat(o)))}}},t.prototype.callPostProcessPopup=function(r,o,i,s,a,l){var u=this.gridOptionsService.getCallback("postProcessPopup");if(u){var c={column:a,rowNode:l,ePopup:o,type:r,eventSource:i,mouseEvent:s};u(c)}},t.prototype.positionPopup=function(r){var o=this,i=r.ePopup,s=r.keepWithinBounds,a=r.nudgeX,l=r.nudgeY,u=r.skipObserver,c=r.updatePosition,p={width:0,height:0},d=function(f){f===void 0&&(f=!1);var y=c(),m=y.x,C=y.y;f&&i.clientWidth===p.width&&i.clientHeight===p.height||(p.width=i.clientWidth,p.height=i.clientHeight,a&&(m+=a),l&&(C+=l),s&&(m=o.keepXYWithinBounds(i,m,Kt.horizontal),C=o.keepXYWithinBounds(i,C,Kt.vertical)),i.style.left="".concat(m,"px"),i.style.top="".concat(C,"px"),r.postProcessCallback&&r.postProcessCallback())};if(d(),!u){var h=this.resizeObserverService.observeResize(i,function(){return d(!0)});setTimeout(function(){return h()},e.WAIT_FOR_POPUP_CONTENT_RESIZE)}},t.prototype.getActivePopups=function(){return this.popupList.map(function(r){return r.element})},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var r=this.gridOptionsService.getDocument(),o=this.getPopupParent();return o===r.body?o=r.documentElement:getComputedStyle(o).position==="static"&&(o=o.offsetParent),Bn(o)},t.prototype.keepXYWithinBounds=function(r,o,i){var s=i===Kt.vertical,a=s?"clientHeight":"clientWidth",l=s?"top":"left",u=s?"offsetHeight":"offsetWidth",c=s?"scrollTop":"scrollLeft",p=this.gridOptionsService.getDocument(),d=p.documentElement,h=this.getPopupParent(),f=h.getBoundingClientRect(),y=p.documentElement.getBoundingClientRect(),m=h===p.body,C=r[u],w=s?Hn:Qr,E=m?w(d)+d[c]:h[a];m&&(E-=Math.abs(y[l]-f[l]));var S=E-C;return Math.min(Math.max(o,0),Math.abs(S))},t.prototype.addPopup=function(r){var o=this.gridOptionsService.getDocument(),i=r.eChild,s=r.ariaLabel,a=r.alwaysOnTop,l=r.positionCallback,u=r.anchorToElement;if(!o)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){}};var c=this.getPopupIndex(i);if(c!==-1){var p=this.popupList[c];return{hideFunc:p.hideFunc}}this.initialisePopupPosition(i);var d=this.createPopupWrapper(i,s,!!a),h=this.addEventListenersToPopup(Mi(Mi({},r),{wrapperEl:d}));return l&&l(),this.addPopupToPopupList(i,d,h,u),{hideFunc:h}},t.prototype.initialisePopupPosition=function(r){var o=this.getPopupParent(),i=o.getBoundingClientRect();P(r.style.top)||(r.style.top="".concat(i.top*-1,"px")),P(r.style.left)||(r.style.left="".concat(i.left*-1,"px"))},t.prototype.createPopupWrapper=function(r,o,i){var s,a=this.getPopupParent(),l=document.createElement("div"),u=this.environment.getTheme().allThemes;return u.length&&(s=l.classList).add.apply(s,Tu([],Ou(u),!1)),l.classList.add("ag-popup"),r.classList.add(this.gridOptionsService.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),r.hasAttribute("role")||le(r,"dialog"),Ht(r,o),l.appendChild(r),a.appendChild(l),i?this.setAlwaysOnTop(r,!0):this.bringPopupToFront(r),l},t.prototype.handleThemeChange=function(){var r,o,i,s,a,l=this.environment.getTheme().allThemes;try{for(var u=Pu(this.popupList),c=u.next();!c.done;c=u.next()){var p=c.value;try{for(var d=(i=void 0,Pu(Array.from(p.wrapper.classList))),h=d.next();!h.done;h=d.next()){var f=h.value;f.startsWith("ag-theme-")&&p.wrapper.classList.remove(f)}}catch(y){i={error:y}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}l.length&&(a=p.wrapper.classList).add.apply(a,Tu([],Ou(l),!1))}}catch(y){r={error:y}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}},t.prototype.addEventListenersToPopup=function(r){var o=this,i=this.gridOptionsService.getDocument(),s=this.getPopupParent(),a=r.wrapperEl,l=r.eChild;r.click;var u=r.closedCallback,c=r.afterGuiAttached,p=r.closeOnEsc,d=r.modal,h=!1,f=function(w){if(a.contains(i.activeElement)){var E=w.key;E===_.ESCAPE&&!nt(w)&&C({keyboardEvent:w})}},y=function(w){return C({mouseEvent:w})},m=function(w){return C({touchEvent:w})},C=function(w){w===void 0&&(w={});var E=w.mouseEvent,S=w.touchEvent,R=w.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:E,touchEvent:S},l)||h||(h=!0,s.removeChild(a),i.removeEventListener("keydown",f),i.removeEventListener("mousedown",y),i.removeEventListener("touchstart",m),i.removeEventListener("contextmenu",y),o.eventService.removeEventListener(g.EVENT_DRAG_STARTED,y),u&&u(E||S||R),o.removePopupFromPopupList(l))};return c&&c({hidePopup:C}),window.setTimeout(function(){p&&i.addEventListener("keydown",f),d&&(i.addEventListener("mousedown",y),o.eventService.addEventListener(g.EVENT_DRAG_STARTED,y),i.addEventListener("touchstart",m),i.addEventListener("contextmenu",y))},0),C},t.prototype.addPopupToPopupList=function(r,o,i,s){this.popupList.push({element:r,wrapper:o,hideFunc:i,instanceId:om++,isAnchored:!!s}),s&&this.setPopupPositionRelatedToElement(r,s)},t.prototype.getPopupIndex=function(r){return this.popupList.findIndex(function(o){return o.element===r})},t.prototype.setPopupPositionRelatedToElement=function(r,o){var i=this.getPopupIndex(r);if(i!==-1){var s=this.popupList[i];if(s.stopAnchoringPromise&&s.stopAnchoringPromise.then(function(l){return l&&l()}),s.stopAnchoringPromise=void 0,s.isAnchored=!1,!!o){var a=this.keepPopupPositionedRelativeTo({element:o,ePopup:r,hidePopup:s.hideFunc});return s.stopAnchoringPromise=a,s.isAnchored=!0,a}}},t.prototype.removePopupFromPopupList=function(r){this.setAlignedStyles(r,null),this.setPopupPositionRelatedToElement(r,null),this.popupList=this.popupList.filter(function(o){return o.element!==r})},t.prototype.keepPopupPositionedRelativeTo=function(r){var o=this,i=this.getPopupParent(),s=i.getBoundingClientRect(),a=r.element,l=r.ePopup,u=a.getBoundingClientRect(),c=s.top-u.top,p=s.left-u.left,d=c,h=p,f=l.style.top,y=parseInt(f.substring(0,f.length-1),10),m=l.style.left,C=parseInt(m.substring(0,m.length-1),10);return new je(function(w){o.getFrameworkOverrides().setInterval(function(){var E=i.getBoundingClientRect(),S=a.getBoundingClientRect(),R=S.top==0&&S.left==0&&S.height==0&&S.width==0;if(R){r.hidePopup();return}var O=E.top-S.top;if(O!=d){var b=o.keepXYWithinBounds(l,y+c-O,Kt.vertical);l.style.top="".concat(b,"px")}d=O;var A=E.left-S.left;if(A!=h){var M=o.keepXYWithinBounds(l,C+p-A,Kt.horizontal);l.style.left="".concat(M,"px")}h=A},200).then(function(E){var S=function(){E!=null&&window.clearInterval(E)};w(S)})})},t.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(r){return r.isAnchored})},t.prototype.isEventFromCurrentPopup=function(r,o){var i=r.mouseEvent,s=r.touchEvent,a=i||s;if(!a)return!1;var l=this.getPopupIndex(o);if(l===-1)return!1;for(var u=l;u`)},t.prototype.postConstruct=function(){var e=this,r=this.config,o=r.component,i=r.closable,s=r.hideTitleBar,a=r.title,l=r.minWidth,u=l===void 0?250:l,c=r.width,p=r.minHeight,d=p===void 0?250:p,h=r.height,f=r.centered,y=r.popup,C=r.x,m=r.y;this.positionableFeature=new Cl(this.getGui(),{minWidth:u,width:c,minHeight:d,height:h,centered:f,x:C,y:m,popup:y,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var w=this.getGui();o&&this.setBodyComponent(o),s?$(this.eTitleBar,!1):(a&&this.setTitle(a),this.setClosable(i??this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(E){var S=e.gridOptionsService.getDocument();if(w.contains(E.relatedTarget)||w.contains(S.activeElement)||e.eTitleBarButtons.contains(E.target)){E.preventDefault();return}var R=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");R&&R.focus()}),!(y&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,r=this.getGui();r.focus(),this.close=function(){r.parentElement.removeChild(r),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var r=this.closeButtonComp=new k(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(r);var o=r.getGui(),i=ne("close",this.gridOptionsService);i.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(i),this.addTitleBarButton(r),r.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var o=this.closeButtonComp.getGui();o.parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,r){var o=this.eTitleBarButtons,i=o.children,s=i.length;r==null&&(r=s),r=Math.max(0,Math.min(r,s)),e.addCssClass("ag-panel-title-bar-button");var a=e.getGui();r===0?o.insertAdjacentElement("afterbegin",a):r===s?o.insertAdjacentElement("beforeend",a):i[r-1].insertAdjacentElement("afterend",a),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return qr(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return ir(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&We(e)&&this.close(),n.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='
',So([L("eContentWrapper")],t.prototype,"eContentWrapper",void 0),So([L("eTitleBar")],t.prototype,"eTitleBar",void 0),So([L("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),So([L("eTitle")],t.prototype,"eTitle",void 0),So([F],t.prototype,"postConstruct",null),t}(k),tC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Li=function(){return Li=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(n){tC(t,n);function t(e){var r=n.call(this,Li(Li({},e),{popup:!0}))||this;return r.isMaximizable=!1,r.isMaximized=!1,r.maximizeListeners=[],r.resizeListenerDestroy=null,r.lastPosition={x:0,y:0,width:0,height:0},r}return t.prototype.postConstruct=function(){var e=this,r=this.getGui(),o=this.config,i=o.movable,s=o.resizable,a=o.maximizable;this.addCssClass("ag-dialog"),n.prototype.postConstruct.call(this),this.addManagedListener(r,"focusin",function(l){r.contains(l.relatedTarget)||e.popupService.bringPopupToFront(r)}),i&&this.setMovable(i),a&&this.setMaximizable(a),s&&this.setResizable(s)},t.prototype.renderComponent=function(){var e=this.getGui(),r=this.config,o=r.alwaysOnTop,i=r.modal,s=r.title,a=r.afterGuiAttached,l=this.localeService.getLocaleTextFunc(),u=this.popupService.addPopup({modal:i,eChild:e,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:o,ariaLabel:s||l("ariaLabelDialog","Dialog"),afterGuiAttached:a});u&&(this.close=u.hideFunc)},t.prototype.onClosed=function(e){var r,o;this.destroy(),(o=(r=this.config).closedCallback)===null||o===void 0||o.call(r,e)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var r=this.lastPosition,o=r.x,i=r.y,s=r.width,a=r.height;this.setWidth(s),this.setHeight(a),this.positionableFeature.offsetElement(o,i)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){$(this.maximizeIcon,!this.isMaximized),$(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),n.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var r=this;if(!e){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}var o=this.eTitleBar;if(!(!o||e===this.isMaximizable)){var i=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),i.addManagedListener(i.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(i,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){r.isMaximized=!1,r.refreshMaximizeIcon()})}},t.prototype.buildMaximizeAndMinimizeElements=function(){var e=this.maximizeButtonComp=this.createBean(new k('
')),r=e.getGui();return this.maximizeIcon=ne("maximize",this.gridOptionsService),r.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=ne("minimize",this.gridOptionsService),r.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e},rC([v("popupService")],t.prototype,"popupService",void 0),t})(eC);var oC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Mi=function(){return Mi=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ou=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Tu=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Kt;(function(n){n[n.vertical=0]="vertical",n[n.horizontal=1]="horizontal"})(Kt||(Kt={}));var iC=0,nC=function(n){oC(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.popupList=[],r}e=t,t.prototype.postConstruct=function(){var r=this;this.ctrlsService.whenReady(function(o){r.gridCtrl=o.gridCtrl}),this.addManagedListener(this.eventService,g.EVENT_GRID_STYLES_CHANGED,this.handleThemeChange.bind(this))},t.prototype.getPopupParent=function(){var r=this.gridOptionsService.get("popupParent");return r||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(r){var o=r.eventSource,i=r.ePopup,s=this.getPopupIndex(i);if(s!==-1){var a=this.popupList[s];a.alignedToElement=o}var l=o.getBoundingClientRect(),u=this.getParentRect(),c=this.keepXYWithinBounds(i,l.top-u.top,Kt.vertical),p=i.clientWidth>0?i.clientWidth:200;i.style.minWidth="".concat(p,"px");var d=u.right-u.left,h=d-p,f;this.gridOptionsService.get("enableRtl")?(f=C(),f<0&&(f=y(),this.setAlignedStyles(i,"left")),f>h&&(f=0,this.setAlignedStyles(i,"right"))):(f=y(),f>h&&(f=C(),this.setAlignedStyles(i,"right")),f<0&&(f=0,this.setAlignedStyles(i,"left"))),i.style.left="".concat(f,"px"),i.style.top="".concat(c,"px");function y(){return l.right-u.left-2}function C(){return l.left-u.left-p}},t.prototype.positionPopupUnderMouseEvent=function(r){var o=this,i=r.ePopup,s=r.nudgeX,a=r.nudgeY,l=r.skipObserver;this.positionPopup({ePopup:i,nudgeX:s,nudgeY:a,keepWithinBounds:!0,skipObserver:l,updatePosition:function(){return o.calculatePointerAlign(r.mouseEvent)},postProcessCallback:function(){return o.callPostProcessPopup(r.type,r.ePopup,null,r.mouseEvent,r.column,r.rowNode)}})},t.prototype.calculatePointerAlign=function(r){var o=this.getParentRect();return{x:r.clientX-o.left,y:r.clientY-o.top}},t.prototype.positionPopupByComponent=function(r){var o=this,i=r.ePopup,s=r.nudgeX,a=r.nudgeY,l=r.keepWithinBounds,u=r.eventSource,c=r.alignSide,p=c===void 0?"left":c,d=r.position,h=d===void 0?"over":d,f=r.column,y=r.rowNode,C=r.type,m=u.getBoundingClientRect(),w=this.getParentRect(),E=this.getPopupIndex(i);if(E!==-1){var S=this.popupList[E];S.alignedToElement=u}var R=function(){var O=m.left-w.left;p==="right"&&(O-=i.offsetWidth-m.width);var b;if(h==="over")b=m.top-w.top,o.setAlignedStyles(i,"over");else{o.setAlignedStyles(i,"under");var A=o.shouldRenderUnderOrAbove(i,m,w,r.nudgeY||0);A==="under"?b=m.top-w.top+m.height:b=m.top-i.offsetHeight-(a||0)*2-w.top}return{x:O,y:b}};this.positionPopup({ePopup:i,nudgeX:s,nudgeY:a,keepWithinBounds:l,updatePosition:R,postProcessCallback:function(){return o.callPostProcessPopup(C,i,u,null,f,y)}})},t.prototype.shouldRenderUnderOrAbove=function(r,o,i,s){var a=i.bottom-o.bottom,l=o.top-i.top,u=r.offsetHeight+s;return a>u?"under":l>u||l>a?"above":"under"},t.prototype.setAlignedStyles=function(r,o){var i=this.getPopupIndex(r);if(i!==-1){var s=this.popupList[i],a=s.alignedToElement;if(a){var l=["right","left","over","above","under"];l.forEach(function(u){a.classList.remove("ag-has-popup-positioned-".concat(u)),r.classList.remove("ag-popup-positioned-".concat(u))}),o&&(a.classList.add("ag-has-popup-positioned-".concat(o)),r.classList.add("ag-popup-positioned-".concat(o)))}}},t.prototype.callPostProcessPopup=function(r,o,i,s,a,l){var u=this.gridOptionsService.getCallback("postProcessPopup");if(u){var c={column:a,rowNode:l,ePopup:o,type:r,eventSource:i,mouseEvent:s};u(c)}},t.prototype.positionPopup=function(r){var o=this,i=r.ePopup,s=r.keepWithinBounds,a=r.nudgeX,l=r.nudgeY,u=r.skipObserver,c=r.updatePosition,p={width:0,height:0},d=function(f){f===void 0&&(f=!1);var y=c(),C=y.x,m=y.y;f&&i.clientWidth===p.width&&i.clientHeight===p.height||(p.width=i.clientWidth,p.height=i.clientHeight,a&&(C+=a),l&&(m+=l),s&&(C=o.keepXYWithinBounds(i,C,Kt.horizontal),m=o.keepXYWithinBounds(i,m,Kt.vertical)),i.style.left="".concat(C,"px"),i.style.top="".concat(m,"px"),r.postProcessCallback&&r.postProcessCallback())};if(d(),!u){var h=this.resizeObserverService.observeResize(i,function(){return d(!0)});setTimeout(function(){return h()},e.WAIT_FOR_POPUP_CONTENT_RESIZE)}},t.prototype.getActivePopups=function(){return this.popupList.map(function(r){return r.element})},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var r=this.gridOptionsService.getDocument(),o=this.getPopupParent();return o===r.body?o=r.documentElement:getComputedStyle(o).position==="static"&&(o=o.offsetParent),Bn(o)},t.prototype.keepXYWithinBounds=function(r,o,i){var s=i===Kt.vertical,a=s?"clientHeight":"clientWidth",l=s?"top":"left",u=s?"offsetHeight":"offsetWidth",c=s?"scrollTop":"scrollLeft",p=this.gridOptionsService.getDocument(),d=p.documentElement,h=this.getPopupParent(),f=h.getBoundingClientRect(),y=p.documentElement.getBoundingClientRect(),C=h===p.body,m=r[u],w=s?Hn:Qr,E=C?w(d)+d[c]:h[a];C&&(E-=Math.abs(y[l]-f[l]));var S=E-m;return Math.min(Math.max(o,0),Math.abs(S))},t.prototype.addPopup=function(r){var o=this.gridOptionsService.getDocument(),i=r.eChild,s=r.ariaLabel,a=r.alwaysOnTop,l=r.positionCallback,u=r.anchorToElement;if(!o)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){}};var c=this.getPopupIndex(i);if(c!==-1){var p=this.popupList[c];return{hideFunc:p.hideFunc}}this.initialisePopupPosition(i);var d=this.createPopupWrapper(i,s,!!a),h=this.addEventListenersToPopup(Mi(Mi({},r),{wrapperEl:d}));return l&&l(),this.addPopupToPopupList(i,d,h,u),{hideFunc:h}},t.prototype.initialisePopupPosition=function(r){var o=this.getPopupParent(),i=o.getBoundingClientRect();P(r.style.top)||(r.style.top="".concat(i.top*-1,"px")),P(r.style.left)||(r.style.left="".concat(i.left*-1,"px"))},t.prototype.createPopupWrapper=function(r,o,i){var s,a=this.getPopupParent(),l=document.createElement("div"),u=this.environment.getTheme().allThemes;return u.length&&(s=l.classList).add.apply(s,Tu([],Ou(u),!1)),l.classList.add("ag-popup"),r.classList.add(this.gridOptionsService.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),r.hasAttribute("role")||le(r,"dialog"),Ht(r,o),l.appendChild(r),a.appendChild(l),i?this.setAlwaysOnTop(r,!0):this.bringPopupToFront(r),l},t.prototype.handleThemeChange=function(){var r,o,i,s,a,l=this.environment.getTheme().allThemes;try{for(var u=Pu(this.popupList),c=u.next();!c.done;c=u.next()){var p=c.value;try{for(var d=(i=void 0,Pu(Array.from(p.wrapper.classList))),h=d.next();!h.done;h=d.next()){var f=h.value;f.startsWith("ag-theme-")&&p.wrapper.classList.remove(f)}}catch(y){i={error:y}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}l.length&&(a=p.wrapper.classList).add.apply(a,Tu([],Ou(l),!1))}}catch(y){r={error:y}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}},t.prototype.addEventListenersToPopup=function(r){var o=this,i=this.gridOptionsService.getDocument(),s=this.getPopupParent(),a=r.wrapperEl,l=r.eChild;r.click;var u=r.closedCallback,c=r.afterGuiAttached,p=r.closeOnEsc,d=r.modal,h=!1,f=function(w){if(a.contains(i.activeElement)){var E=w.key;E===_.ESCAPE&&!nt(w)&&m({keyboardEvent:w})}},y=function(w){return m({mouseEvent:w})},C=function(w){return m({touchEvent:w})},m=function(w){w===void 0&&(w={});var E=w.mouseEvent,S=w.touchEvent,R=w.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:E,touchEvent:S},l)||h||(h=!0,s.removeChild(a),i.removeEventListener("keydown",f),i.removeEventListener("mousedown",y),i.removeEventListener("touchstart",C),i.removeEventListener("contextmenu",y),o.eventService.removeEventListener(g.EVENT_DRAG_STARTED,y),u&&u(E||S||R),o.removePopupFromPopupList(l))};return c&&c({hidePopup:m}),window.setTimeout(function(){p&&i.addEventListener("keydown",f),d&&(i.addEventListener("mousedown",y),o.eventService.addEventListener(g.EVENT_DRAG_STARTED,y),i.addEventListener("touchstart",C),i.addEventListener("contextmenu",y))},0),m},t.prototype.addPopupToPopupList=function(r,o,i,s){this.popupList.push({element:r,wrapper:o,hideFunc:i,instanceId:iC++,isAnchored:!!s}),s&&this.setPopupPositionRelatedToElement(r,s)},t.prototype.getPopupIndex=function(r){return this.popupList.findIndex(function(o){return o.element===r})},t.prototype.setPopupPositionRelatedToElement=function(r,o){var i=this.getPopupIndex(r);if(i!==-1){var s=this.popupList[i];if(s.stopAnchoringPromise&&s.stopAnchoringPromise.then(function(l){return l&&l()}),s.stopAnchoringPromise=void 0,s.isAnchored=!1,!!o){var a=this.keepPopupPositionedRelativeTo({element:o,ePopup:r,hidePopup:s.hideFunc});return s.stopAnchoringPromise=a,s.isAnchored=!0,a}}},t.prototype.removePopupFromPopupList=function(r){this.setAlignedStyles(r,null),this.setPopupPositionRelatedToElement(r,null),this.popupList=this.popupList.filter(function(o){return o.element!==r})},t.prototype.keepPopupPositionedRelativeTo=function(r){var o=this,i=this.getPopupParent(),s=i.getBoundingClientRect(),a=r.element,l=r.ePopup,u=a.getBoundingClientRect(),c=s.top-u.top,p=s.left-u.left,d=c,h=p,f=l.style.top,y=parseInt(f.substring(0,f.length-1),10),C=l.style.left,m=parseInt(C.substring(0,C.length-1),10);return new je(function(w){o.getFrameworkOverrides().setInterval(function(){var E=i.getBoundingClientRect(),S=a.getBoundingClientRect(),R=S.top==0&&S.left==0&&S.height==0&&S.width==0;if(R){r.hidePopup();return}var O=E.top-S.top;if(O!=d){var b=o.keepXYWithinBounds(l,y+c-O,Kt.vertical);l.style.top="".concat(b,"px")}d=O;var A=E.left-S.left;if(A!=h){var M=o.keepXYWithinBounds(l,m+p-A,Kt.horizontal);l.style.left="".concat(M,"px")}h=A},200).then(function(E){var S=function(){E!=null&&window.clearInterval(E)};w(S)})})},t.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(r){return r.isAnchored})},t.prototype.isEventFromCurrentPopup=function(r,o){var i=r.mouseEvent,s=r.touchEvent,a=i||s;if(!a)return!1;var l=this.getPopupIndex(o);if(l===-1)return!1;for(var u=l;u
-
`)||this;return e.hasHighlighting=!1,e}return t.prototype.setState=function(e,r){this.value=e,this.render(),this.updateSelected(r)},t.prototype.updateSelected=function(e){this.addOrRemoveCssClass("ag-autocomplete-row-selected",e)},t.prototype.setSearchString=function(e){var r,o=!1;if(P(e)){var i=(r=this.value)===null||r===void 0?void 0:r.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(i>=0){o=!0,this.hasHighlighting=!0;var s=i+e.length,a=ae(this.value.slice(0,i)),l=ae(this.value.slice(i,s)),u=ae(this.value.slice(s));this.getGui().lastElementChild.innerHTML="".concat(a,"").concat(l,"").concat(u)}}!o&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())},t.prototype.render=function(){var e;this.getGui().lastElementChild.innerHTML=(e=ae(this.value))!==null&&e!==void 0?e:" "},t}(k),am=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Du=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lm=function(n){am(t,n);function t(e){var r=n.call(this,t.TEMPLATE)||this;return r.params=e,r.searchString="",r}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(){var e=this;this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new Eu({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:function(){return e.autocompleteEntries.length},getRow:function(o){return e.autocompleteEntries[o]}});var r=this.virtualList.getGui();this.addManagedListener(r,"click",function(){return e.params.onConfirmed()}),this.addManagedListener(r,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(r,"mousedown",function(o){return o.preventDefault()}),this.setSelectedValue(0)},t.prototype.onNavigationKeyDown=function(e,r){e.preventDefault();var o=this.autocompleteEntries.indexOf(this.selectedValue),i=r===_.UP?o-1:o+1;this.checkSetSelectedValue(i)},t.prototype.setSearch=function(e){this.searchString=e,P(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()},t.prototype.runContainsSearch=function(e,r){var o,i=!1,s=e.toLocaleLowerCase(),a=r.filter(function(l){var u=l.toLocaleLowerCase(),c=u.indexOf(s),p=c===0,d=c>=0;return d&&(!o||!i&&p||i===p&&l.length=0&&e +
`)||this;return e.hasHighlighting=!1,e}return t.prototype.setState=function(e,r){this.value=e,this.render(),this.updateSelected(r)},t.prototype.updateSelected=function(e){this.addOrRemoveCssClass("ag-autocomplete-row-selected",e)},t.prototype.setSearchString=function(e){var r,o=!1;if(P(e)){var i=(r=this.value)===null||r===void 0?void 0:r.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(i>=0){o=!0,this.hasHighlighting=!0;var s=i+e.length,a=ae(this.value.slice(0,i)),l=ae(this.value.slice(i,s)),u=ae(this.value.slice(s));this.getGui().lastElementChild.innerHTML="".concat(a,"").concat(l,"").concat(u)}}!o&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())},t.prototype.render=function(){var e;this.getGui().lastElementChild.innerHTML=(e=ae(this.value))!==null&&e!==void 0?e:" "},t}(k),lC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Du=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},uC=function(n){lC(t,n);function t(e){var r=n.call(this,t.TEMPLATE)||this;return r.params=e,r.searchString="",r}return t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.init=function(){var e=this;this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new Eu({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:function(){return e.autocompleteEntries.length},getRow:function(o){return e.autocompleteEntries[o]}});var r=this.virtualList.getGui();this.addManagedListener(r,"click",function(){return e.params.onConfirmed()}),this.addManagedListener(r,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(r,"mousedown",function(o){return o.preventDefault()}),this.setSelectedValue(0)},t.prototype.onNavigationKeyDown=function(e,r){e.preventDefault();var o=this.autocompleteEntries.indexOf(this.selectedValue),i=r===_.UP?o-1:o+1;this.checkSetSelectedValue(i)},t.prototype.setSearch=function(e){this.searchString=e,P(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()},t.prototype.runContainsSearch=function(e,r){var o,i=!1,s=e.toLocaleLowerCase(),a=r.filter(function(l){var u=l.toLocaleLowerCase(),c=u.indexOf(s),p=c===0,d=c>=0;return d&&(!o||!i&&p||i===p&&l.length=0&&e
-
`,Du([L("eList")],t.prototype,"eList",void 0),Du([F],t.prototype,"init",null),t}(cr),um=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ns=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},cm=function(n){um(t,n);function t(){var e=n.call(this,` +
`,Du([L("eList")],t.prototype,"eList",void 0),Du([F],t.prototype,"init",null),t}(cr),cC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ns=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pC=function(n){cC(t,n);function t(){var e=n.call(this,` `)||this;return e.isListOpen=!1,e.lastPosition=0,e.valid=!0,e}return t.prototype.postConstruct=function(){var e=this;this.eAutocompleteInput.onValueChange(function(r){return e.onValueChanged(r)}),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(function(){e.destroyBean(e.autocompleteList)}),this.addGuiEventListener("focusout",function(){return e.onFocusOut()})},t.prototype.onValueChanged=function(e){var r=ct(e);this.updateValue(r),this.updateAutocompleteList(r)},t.prototype.updateValue=function(e){this.updateLastPosition(),this.dispatchEvent({type:t.EVENT_VALUE_CHANGED,value:e}),this.validate(e)},t.prototype.updateAutocompleteList=function(e){var r,o,i,s,a=(o=(r=this.listGenerator)===null||r===void 0?void 0:r.call(this,e,this.lastPosition))!==null&&o!==void 0?o:{enabled:!1};if((!a.type||a.type!==((i=this.autocompleteListParams)===null||i===void 0?void 0:i.type))&&this.isListOpen&&this.closeList(),this.autocompleteListParams=a,!((s=this.autocompleteListParams)===null||s===void 0)&&s.enabled){this.isListOpen||this.openList();var l=this.autocompleteListParams.searchString;this.autocompleteList.setSearch(l??"")}else this.isListOpen&&this.closeList()},t.prototype.onKeyDown=function(e){var r=this,o=e.key;switch(this.updateLastPosition(),o){case _.ENTER:this.onEnterKeyDown(e);break;case _.TAB:this.onTabKeyDown(e);break;case _.DOWN:case _.UP:this.onUpDownKeyDown(e,o);break;case _.LEFT:case _.RIGHT:case _.PAGE_HOME:case _.PAGE_END:setTimeout(function(){r.updatePositionAndList()});break;case _.ESCAPE:this.onEscapeKeyDown(e);break;case _.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList());break}},t.prototype.confirmSelection=function(){var e,r=(e=this.autocompleteList)===null||e===void 0?void 0:e.getSelectedValue();r&&(this.closeList(),this.dispatchEvent({type:t.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:r,autocompleteType:this.autocompleteListParams.type}))},t.prototype.onTabKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())},t.prototype.onEnterKeyDown=function(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()},t.prototype.onUpDownKeyDown=function(e,r){var o;e.preventDefault(),this.isListOpen?(o=this.autocompleteList)===null||o===void 0||o.onNavigationKeyDown(e,r):this.forceOpenList()},t.prototype.onEscapeKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))},t.prototype.onFocusOut=function(){this.isListOpen&&this.closeList()},t.prototype.updatePositionAndList=function(){var e;this.updateLastPosition(),this.updateAutocompleteList((e=this.eAutocompleteInput.getValue())!==null&&e!==void 0?e:null)},t.prototype.setCaret=function(e,r){var o=this.gridOptionsService.getDocument();r&&o.activeElement===o.body&&this.eAutocompleteInput.getFocusableElement().focus();var i=this.eAutocompleteInput.getInputElement();i.setSelectionRange(e,e),e===i.value.length&&(i.scrollLeft=i.scrollWidth)},t.prototype.forceOpenList=function(){this.onValueChanged(this.eAutocompleteInput.getValue())},t.prototype.updateLastPosition=function(){var e;this.lastPosition=(e=this.eAutocompleteInput.getInputElement().selectionStart)!==null&&e!==void 0?e:0},t.prototype.validate=function(e){var r;this.validator&&(this.validationMessage=this.validator(e),this.eAutocompleteInput.getInputElement().setCustomValidity((r=this.validationMessage)!==null&&r!==void 0?r:""),this.valid=!this.validationMessage,this.dispatchEvent({type:t.EVENT_VALID_CHANGED,isValid:this.valid,validationMessage:this.validationMessage}))},t.prototype.openList=function(){var e=this;this.isListOpen=!0,this.autocompleteList=this.createBean(new lm({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:function(){return e.confirmSelection()},forceLastSelection:this.forceLastSelection}));var r=this.autocompleteList.getGui(),o={ePopup:r,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gridOptionsService.get("enableRtl")?"right":"left",keepWithinBounds:!0},i=this.popupService.addPopup({eChild:r,anchorToElement:this.getGui(),positionCallback:function(){return e.popupService.positionPopupByComponent(o)},ariaLabel:this.listAriaLabel});this.hidePopup=i.hideFunc,this.autocompleteList.afterGuiAttached()},t.prototype.closeList=function(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null},t.prototype.onCompleted=function(){this.isListOpen&&this.closeList(),this.dispatchEvent({type:t.EVENT_VALUE_CONFIRMED,value:this.getValue(),isValid:this.isValid()})},t.prototype.getValue=function(){return ct(this.eAutocompleteInput.getValue())},t.prototype.setInputPlaceholder=function(e){return this.eAutocompleteInput.setInputPlaceholder(e),this},t.prototype.setInputAriaLabel=function(e){return this.eAutocompleteInput.setInputAriaLabel(e),this},t.prototype.setListAriaLabel=function(e){return this.listAriaLabel=e,this},t.prototype.setListGenerator=function(e){return this.listGenerator=e,this},t.prototype.setValidator=function(e){return this.validator=e,this},t.prototype.isValid=function(){return this.valid},t.prototype.setValue=function(e){var r=e.value,o=e.position,i=e.silent,s=e.updateListOnlyIfOpen,a=e.restoreFocus;this.eAutocompleteInput.setValue(r,!0),this.setCaret(o??this.lastPosition,a),i||this.updateValue(r),(!s||this.isListOpen)&&this.updateAutocompleteList(r)},t.prototype.setForceLastSelection=function(e){return this.forceLastSelection=e,this},t.prototype.setInputDisabled=function(e){return this.eAutocompleteInput.setDisabled(e),this},t.EVENT_VALUE_CHANGED="eventValueChanged",t.EVENT_VALUE_CONFIRMED="eventValueConfirmed",t.EVENT_OPTION_SELECTED="eventOptionSelected",t.EVENT_VALID_CHANGED="eventValidChanged",Ns([v("popupService")],t.prototype,"popupService",void 0),Ns([L("eAutocompleteInput")],t.prototype,"eAutocompleteInput",void 0),Ns([F],t.prototype,"postConstruct",null),t}(k),pm=["touchstart","touchend","touchmove","touchcancel"],dm=function(){function n(t){t===void 0&&(t="javascript"),this.frameworkName=t,this.renderingEngine="vanilla",this.wrapIncoming=function(e){return e()},this.wrapOutgoing=function(e){return e()}}return n.prototype.setInterval=function(t,e){return new je(function(r){r(window.setInterval(t,e))})},n.prototype.addEventListener=function(t,e,r,o){var i=ot(pm,e);t.addEventListener(e,r,{capture:!!o,passive:i})},Object.defineProperty(n.prototype,"shouldWrapOutgoing",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.frameworkComponent=function(t){return null},n.prototype.isFrameworkComponent=function(t){return!1},n.prototype.getDocLink=function(t){var e=this.frameworkName==="solid"?"react":this.frameworkName;return"https://www.ag-grid.com/".concat(e,"-data-grid").concat(t?"/".concat(t):"")},n}(),hm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Br=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},fm=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},vm=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},mm=function(n,t){return function(e,r){t(e,r,n)}},Cm=function(n){ym(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.consuming=!1,e}return t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.getAlignedGridApis=function(){var e=this,r,o=(r=this.gridOptionsService.get("alignedGrids"))!==null&&r!==void 0?r:[],i=typeof o=="function";typeof o=="function"&&(o=o());var s=function(){return"See ".concat(e.getFrameworkOverrides().getDocLink("aligned-grids"))},a=o.map(function(l){var u;if(!l){pt("alignedGrids contains an undefined option."),i||pt(`You may want to configure via a callback to avoid setup race conditions: - "alignedGrids: () => [linkedGrid]"`),pt(s());return}if(l instanceof Jl)return l;var c=l;return"current"in c?(u=c.current)===null||u===void 0?void 0:u.api:(c.api||pt("alignedGrids - No api found on the linked grid. If you are passing gridOptions to alignedGrids since v31 this is no longer valid. ".concat(s())),c.api)}).filter(function(l){return!!l&&!l.isDestroyed()});return a},t.prototype.init=function(){this.addManagedListener(this.eventService,g.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){this.consuming||this.getAlignedGridApis().forEach(function(r){var o=r.__getAlignedGridService();e(o)})},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent(function(r){r.onColumnEvent(e)})},t.prototype.fireScrollEvent=function(e){e.direction==="horizontal"&&this.fireEvent(function(r){r.onScrollEvent(e)})},t.prototype.onScrollEvent=function(e){var r=this;this.onEvent(function(){var o=r.ctrlsService.getGridBodyCtrl();o.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})},t.prototype.getMasterColumns=function(e){var r=[];return e.columns?e.columns.forEach(function(o){r.push(o)}):e.column&&r.push(e.column),r},t.prototype.getColumnIds=function(e){var r=[];return e.columns?e.columns.forEach(function(o){r.push(o.getColId())}):e.column&&r.push(e.column.getColId()),r},t.prototype.onColumnEvent=function(e){var r=this;this.onEvent(function(){switch(e.type){case g.EVENT_COLUMN_MOVED:case g.EVENT_COLUMN_VISIBLE:case g.EVENT_COLUMN_PINNED:case g.EVENT_COLUMN_RESIZED:var o=e;r.processColumnEvent(o);break;case g.EVENT_COLUMN_GROUP_OPENED:var i=e;r.processGroupOpenedEvent(i);break;case g.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.");break}})},t.prototype.processGroupOpenedEvent=function(e){var r=this;e.columnGroups.forEach(function(o){var i=null;if(o){var s=o.getGroupId();i=r.columnModel.getProvidedColumnGroup(s)}o&&!i||(r.logger.log("onColumnEvent-> processing "+e+" expanded = "+o.isExpanded()),r.columnModel.setColumnGroupOpened(i,o.isExpanded(),"alignedGridChanged"))})},t.prototype.processColumnEvent=function(e){var r=this,o,i=e.column,s=null;if(i&&(s=this.columnModel.getPrimaryColumn(i.getColId())),!(i&&!s)){var a=this.getMasterColumns(e);switch(e.type){case g.EVENT_COLUMN_MOVED:{var l=e,u=e.api.getColumnState(),c=u.map(function(C){return{colId:C.colId}});this.columnModel.applyColumnState({state:c,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," toIndex = ").concat(l.toIndex))}break;case g.EVENT_COLUMN_VISIBLE:{var p=e,u=e.api.getColumnState(),c=u.map(function(E){return{colId:E.colId,hide:E.hide}});this.columnModel.applyColumnState({state:c},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," visible = ").concat(p.visible))}break;case g.EVENT_COLUMN_PINNED:{var d=e,u=e.api.getColumnState(),c=u.map(function(E){return{colId:E.colId,pinned:E.pinned}});this.columnModel.applyColumnState({state:c},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," pinned = ").concat(d.pinned))}break;case g.EVENT_COLUMN_RESIZED:var h=e,f={};a.forEach(function(C){r.logger.log("onColumnEvent-> processing ".concat(e.type," actualWidth = ").concat(C.getActualWidth())),f[C.getId()]={key:C.getColId(),newWidth:C.getActualWidth()}}),(o=h.flexColumns)===null||o===void 0||o.forEach(function(C){f[C.getId()]&&delete f[C.getId()]}),this.columnModel.setColumnWidths(Object.values(f),!1,h.finished,"alignedGridChanged");break}var y=this.ctrlsService.getGridBodyCtrl(),m=y.isVerticalScrollShowing();this.getAlignedGridApis().forEach(function(C){C.setGridOption("alwaysShowVerticalScroll",m)})}},Eo([v("columnModel")],t.prototype,"columnModel",void 0),Eo([v("ctrlsService")],t.prototype,"ctrlsService",void 0),Eo([mm(0,Ye("loggerFactory"))],t.prototype,"setBeans",null),Eo([F],t.prototype,"init",null),t=Eo([x("alignedGridsService")],t),t}(D),Sm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ii=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Au=function(n){Sm(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.selectedNodes=new Map,e.lastRowNode=null,e}return t.prototype.init=function(){var e=this;this.rowSelection=this.gridOptionsService.get("rowSelection"),this.groupSelectsChildren=this.gridOptionsService.get("groupSelectsChildren"),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],function(){e.groupSelectsChildren=e.gridOptionsService.get("groupSelectsChildren"),e.rowSelection=e.gridOptionsService.get("rowSelection"),e.deselectAllRowNodes({source:"api"})}),this.addManagedListener(this.eventService,g.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.resetNodes(),this.lastRowNode=null},t.prototype.isMultiselect=function(){return this.rowSelection==="multiple"},t.prototype.setNodesSelected=function(e){var r,o=e.newValue,i=e.clearSelection,s=e.suppressFinishActions,a=e.rangeSelect,l=e.nodes,u=e.event,c=e.source,p=c===void 0?"api":c;if(l.length===0)return 0;if(l.length>1&&!this.isMultiselect())return console.warn("AG Grid: cannot multi select while rowSelection='single'"),0;var d=this.groupSelectsChildren&&e.groupSelectsFiltered===!0,h=l.map(function(A){return A.footer?A.sibling:A});if(a){if(l.length>1)return console.warn("AG Grid: cannot range select while selecting multiple rows"),0;var f=null;if(p==="checkboxSelected"&&o===!1&&this.lastRowNode&&(this.lastRowNode.id?f=this.lastRowNode:this.lastRowNode=null),f==null&&(f=this.getLastSelectedNode()),f){var y=h[0],m=y!==f;if(m&&this.isMultiselect())return this.selectRange(y,f,o,p)}}this.lastRowNode=o?null:h[0];for(var C=0,w=0;w0){this.updateGroupsFromChildrenSelections(p);var b={type:g.EVENT_SELECTION_CHANGED,source:p};this.eventService.dispatchEvent(b)}}return C},t.prototype.selectRange=function(e,r,o,i){var s=this;o===void 0&&(o=!0);var a=this.rowModel.getNodesInRangeForSelection(e,r),l=0;a.forEach(function(c){if(!(c.group&&s.groupSelectsChildren)){var p=c.selectThisNode(o,void 0,i);p&&l++}}),this.updateGroupsFromChildrenSelections(i);var u={type:g.EVENT_SELECTION_CHANGED,source:i};return this.eventService.dispatchEvent(u),l},t.prototype.selectChildren=function(e,r,o,i){var s=o?e.childrenAfterAggFilter:e.childrenAfterGroup;return H(s)?0:this.setNodesSelected({newValue:r,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:o,source:i,nodes:s})},t.prototype.getLastSelectedNode=function(){var e=Array.from(this.selectedNodes.keys());if(e.length==0)return null;var r=this.selectedNodes.get(q(e));return r||null},t.prototype.getSelectedNodes=function(){var e=[];return this.selectedNodes.forEach(function(r){r&&e.push(r)}),e},t.prototype.getSelectedRows=function(){var e=[];return this.selectedNodes.forEach(function(r){r&&r.data&&e.push(r.data)}),e},t.prototype.getSelectionCount=function(){return this.selectedNodes.size},t.prototype.filterFromSelection=function(e){var r=new Map;this.selectedNodes.forEach(function(o,i){var s=o&&e(o);s&&r.set(i,o)}),this.selectedNodes=r},t.prototype.updateGroupsFromChildrenSelections=function(e,r){if(!this.groupSelectsChildren||this.rowModel.getType()!=="clientSide")return!1;var o=this.rowModel,i=o.getRootNode();r||(r=new Ti(!0,i),r.setInactive());var s=!1;return r.forEachChangedNodeDepthFirst(function(a){if(a!==i){var l=a.calculateSelectedFromChildren();s=a.selectThisNode(l===null?!1:l,void 0,e)||s}}),s},t.prototype.clearOtherNodes=function(e,r){var o=this,i=new Map,s=0;return this.selectedNodes.forEach(function(a){if(a&&a.id!==e.id){var l=o.selectedNodes.get(a.id);s+=l.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:r}),o.groupSelectsChildren&&a.parent&&i.set(a.parent.id,a.parent)}}),i.forEach(function(a){var l=a.calculateSelectedFromChildren();a.selectThisNode(l===null?!1:l,void 0,r)}),s},t.prototype.onRowSelected=function(e){var r=e.node;this.groupSelectsChildren&&r.group||(r.isSelected()?this.selectedNodes.set(r.id,r):this.selectedNodes.delete(r.id))},t.prototype.syncInRowNode=function(e,r){this.syncInOldRowNode(e,r),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,r){var o=P(r)&&e.id!==r.id;if(o&&r){var i=r.id,s=this.selectedNodes.get(i)==e;s&&this.selectedNodes.set(r.id,r)}},t.prototype.syncInNewRowNode=function(e){this.selectedNodes.has(e.id)?(e.setSelectedInitialValue(!0),this.selectedNodes.set(e.id,e)):e.setSelectedInitialValue(!1)},t.prototype.reset=function(e){var r=this.getSelectionCount();if(this.resetNodes(),r){var o={type:g.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(o)}},t.prototype.resetNodes=function(){var e;(e=this.selectedNodes)===null||e===void 0||e.clear()},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()!=="clientSide")return;var e=this.rowModel,r=e.getTopLevelNodes();if(r===null)return;var o=[];function i(s){for(var a=0,l=s.length;a0&&s>0?null:i>0},t.prototype.hasNodesToSelect=function(e,r){return e===void 0&&(e=!1),r===void 0&&(r=!1),this.getNodesToSelect(e,r).filter(function(o){return o.selectable}).length>0},t.prototype.getNodesToSelect=function(e,r){var o=this;if(e===void 0&&(e=!1),r===void 0&&(r=!1),this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not ".concat(this.rowModel.getType()));var i=[];if(r)return this.paginationProxy.forEachNodeOnPage(function(a){if(!a.group){i.push(a);return}if(!a.expanded){var l=function(u){var c;i.push(u),!((c=u.childrenAfterFilter)===null||c===void 0)&&c.length&&u.childrenAfterFilter.forEach(l)};l(a);return}o.groupSelectsChildren||i.push(a)}),i;var s=this.rowModel;return e?(s.forEachNodeAfterFilter(function(a){i.push(a)}),i):(s.forEachNode(function(a){i.push(a)}),i)},t.prototype.selectAllRowNodes=function(e){if(this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not ".concat(this.rowModel.getType()));var r=e.source,o=e.justFiltered,i=e.justCurrentPage,s=function(l){return l.selectThisNode(!0,void 0,r)};this.getNodesToSelect(o,i).forEach(s),this.rowModel.getType()==="clientSide"&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(r);var a={type:g.EVENT_SELECTION_CHANGED,source:r};this.eventService.dispatchEvent(a)},t.prototype.getSelectionState=function(){var e=[];return this.selectedNodes.forEach(function(r){r!=null&&r.id&&e.push(r.id)}),e.length?e:null},t.prototype.setSelectionState=function(e,r){if(Array.isArray(e)){var o=new Set(e),i=[];this.rowModel.forEachNode(function(s){o.has(s.id)&&i.push(s)}),this.setNodesSelected({newValue:!0,nodes:i,source:r})}},Ii([v("rowModel")],t.prototype,"rowModel",void 0),Ii([v("paginationProxy")],t.prototype,"paginationProxy",void 0),Ii([F],t.prototype,"init",null),t=Ii([x("selectionService")],t),t}(D),bu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},wm=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Em=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Rm=function(n){_m(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.initialised=!1,e.isSsrm=!1,e}return t.prototype.init=function(){var e=this;this.isSsrm=this.gridOptionsService.isRowModelType("serverSide"),this.cellExpressions=this.gridOptionsService.get("enableCellExpressions"),this.isTreeData=this.gridOptionsService.get("treeData"),this.initialised=!0;var r=function(i){return e.callColumnCellValueChangedHandler(i)},o=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(g.EVENT_CELL_VALUE_CHANGED,r,o),this.addDestroyFunc(function(){return e.eventService.removeEventListener(g.EVENT_CELL_VALUE_CHANGED,r,o)}),this.addManagedPropertyListener("treeData",function(i){return e.isTreeData=i.currentValue})},t.prototype.getValue=function(e,r,o,i){if(o===void 0&&(o=!1),i===void 0&&(i=!1),this.initialised||this.init(),!!r){var s=e.getColDef(),a=s.field,l=e.getColId(),u=r.data,c,p=r.groupData&&r.groupData[l]!==void 0,d=!i&&r.aggData&&r.aggData[l]!==void 0,h=this.isSsrm&&i&&!!e.getColDef().aggFunc,f=this.isSsrm&&r.footer&&r.field&&(e.getColDef().showRowGroup===!0||e.getColDef().showRowGroup===r.field);if(o&&s.filterValueGetter?c=this.executeFilterValueGetter(s.filterValueGetter,u,e,r):this.isTreeData&&d?c=r.aggData[l]:this.isTreeData&&s.valueGetter?c=this.executeValueGetter(s.valueGetter,u,e,r):this.isTreeData&&a&&u?c=wr(u,a,e.isFieldContainsDots()):p?c=r.groupData[l]:d?c=r.aggData[l]:s.valueGetter?c=this.executeValueGetter(s.valueGetter,u,e,r):f?c=wr(u,r.field,e.isFieldContainsDots()):a&&u&&!h&&(c=wr(u,a,e.isFieldContainsDots())),this.cellExpressions&&typeof c=="string"&&c.indexOf("=")===0){var y=c.substring(1);c=this.executeValueGetter(y,u,e,r)}if(c==null){var m=this.getOpenedGroup(r,e);if(m!=null)return m}return c}},t.prototype.getOpenedGroup=function(e,r){if(this.gridOptionsService.get("showOpenedGroup")){var o=r.getColDef();if(o.showRowGroup)for(var i=r.getColDef().showRowGroup,s=e.parent;s!=null;){if(s.rowGroupColumn&&(i===!0||i===s.rowGroupColumn.getColId()))return s.key;s=s.parent}}},t.prototype.setValue=function(e,r,o,i){var s=this.columnModel.getPrimaryColumn(r);if(!e||!s)return!1;H(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.valueSetter;if(H(l)&&H(u))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;if(!this.dataTypeService.checkType(s,o))return console.warn("AG Grid: Data type of the new value does not match the cell data type of the column"),!1;var c=this.gridOptionsService.addGridCommonParams({node:e,data:e.data,oldValue:this.getValue(s,e),newValue:o,colDef:s.getColDef(),column:s});c.newValue=o;var p;if(P(u)?typeof u=="function"?p=u(c):p=this.expressionService.evaluate(u,c):p=this.setValueUsingField(e.data,l,o,s.isFieldContainsDots()),p===void 0&&(p=!0),!p)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(s,e);var d={type:g.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,columnApi:c.columnApi,colDef:c.colDef,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue,source:i};return this.eventService.dispatchEvent(d),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var r=e.colDef.onCellValueChanged;typeof r=="function"&&this.getFrameworkOverrides().wrapOutgoing(function(){r({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})})},t.prototype.setValueUsingField=function(e,r,o,i){if(!r)return!1;var s=!1;if(!i)s=e[r]===o,s||(e[r]=o);else for(var a=r.split("."),l=e;a.length>0&&l;){var u=a.shift();a.length===0?(s=l[u]===o,s||(l[u]=o)):l=l[u]}return!s},t.prototype.executeFilterValueGetter=function(e,r,o,i){var s=this.gridOptionsService.addGridCommonParams({data:r,node:i,column:o,colDef:o.getColDef(),getValue:this.getValueCallback.bind(this,i)});return typeof e=="function"?e(s):this.expressionService.evaluate(e,s)},t.prototype.executeValueGetter=function(e,r,o,i){var s=o.getColId(),a=this.valueCache.getValue(i,s);if(a!==void 0)return a;var l=this.gridOptionsService.addGridCommonParams({data:r,node:i,column:o,colDef:o.getColDef(),getValue:this.getValueCallback.bind(this,i)}),u;return typeof e=="function"?u=e(l):u=this.expressionService.evaluate(e,l),this.valueCache.setValue(i,s,u),u},t.prototype.getValueCallback=function(e,r){var o=this.columnModel.getPrimaryColumn(r);return o?this.getValue(o,e):null},t.prototype.getKeyForNode=function(e,r){var o=this.getValue(e,r),i=e.getColDef().keyCreator,s=o;if(i){var a=this.gridOptionsService.addGridCommonParams({value:o,colDef:e.getColDef(),column:e,node:r,data:r.data});s=i(a)}return typeof s=="string"||s==null||(s=String(s),s==="[object Object]"&&V("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")),s},kr([v("expressionService")],t.prototype,"expressionService",void 0),kr([v("columnModel")],t.prototype,"columnModel",void 0),kr([v("valueCache")],t.prototype,"valueCache",void 0),kr([v("dataTypeService")],t.prototype,"dataTypeService",void 0),kr([F],t.prototype,"init",null),t=kr([x("valueService")],t),t}(D),Om=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Lu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Tm=function(n,t){return function(e,r){t(e,r,n)}},Pm=function(n){Om(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,r){if(typeof e=="string")return this.evaluateExpression(e,r);console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,r){try{var o=this.createExpressionFunction(e),i=o(r.value,r.context,r.oldValue,r.newValue,r.value,r.node,r.data,r.colDef,r.rowIndex,r.api,r.columnApi,r.getValue,r.column,r.columnGroup);return i}catch(s){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",r),console.log("Exception = "+s),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var r=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",r);return this.expressionToFunctionCache[e]=o,o},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Lu([Tm(0,Ye("loggerFactory"))],t.prototype,"setBeans",null),t=Lu([x("expressionService")],t),t}(D),Dm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Am=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},bm=function(n){Dm(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return t.prototype.getTemplate=function(e,r){var o=this.templateCache[e];if(o)return o;var i=this.waitingCallbacks[e],s=this;if(!i){i=[],this.waitingCallbacks[e]=i;var a=new XMLHttpRequest;a.onload=function(){s.handleHttpResult(this,e)},a.open("GET",e),a.send()}return r&&i.push(r),null},t.prototype.handleHttpResult=function(e,r){if(e.status!==200||e.response===null){console.warn("AG Grid: Unable to get template error ".concat(e.status," - ").concat(r));return}this.templateCache[r]=e.response||e.responseText;for(var o=this.waitingCallbacks[r],i=0;i=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Lm=function(n,t){return function(e,r){t(e,r,n)}},Mm=function(n){Fm(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logging=e.get("debug")},t.prototype.create=function(e){return new Gs(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Mu([Lm(0,Ye("gridOptionsService"))],t.prototype,"setBeans",null),t=Mu([x("loggerFactory")],t),t}(D),Gs=function(){function n(t,e){this.name=t,this.isLoggingFunc=e}return n.prototype.isLogging=function(){return this.isLoggingFunc()},n.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},n}(),Im=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},xm=function(n){Im(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setComp=function(e,r,o){var i=this;this.view=e,this.eGridHostDiv=r,this.eGui=o,this.eGui.setAttribute("grid-id",this.context.getGridId()),this.dragAndDropService.addDropTarget({getContainer:function(){return i.eGui},isInterestedIn:function(a){return a===Te.HeaderCell||a===Te.ToolPanel},getIconName:function(){return he.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(r),this.createManagedBean(new ys(this.view)),this.addRtlSupport();var s=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return s()}),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,r=this.focusService.findTabbableParent(this.getGui());return((e=r==null?void 0:r.getAttribute("row-id"))===null||e===void 0?void 0:e.startsWith("detail"))||!1},t.prototype.showDropZones=function(){return X.__isRegistered(G.RowGroupingModule,this.context.getGridId())},t.prototype.showSideBar=function(){return X.__isRegistered(G.SideBarModule,this.context.getGridId())},t.prototype.showStatusBar=function(){return X.__isRegistered(G.StatusBarModule,this.context.getGridId())},t.prototype.showWatermark=function(){return X.__isRegistered(G.EnterpriseCoreModule,this.context.getGridId())},t.prototype.onGridSizeChanged=function(){var e={type:g.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsService.get("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},t.prototype.focusNextInnerContainer=function(e){var r=this.gridOptionsService.getDocument(),o=this.view.getFocusableContainers(),i=o.findIndex(function(a){return a.contains(r.activeElement)}),s=i+(e?-1:1);return s<=0||s>=o.length?!1:this.focusService.focusInto(o[s])},t.prototype.focusInnerElement=function(e){var r=this.view.getFocusableContainers(),o=this.columnModel.getAllDisplayedColumns();if(e){if(r.length>1)return this.focusService.focusInto(q(r),!0);var i=q(o);if(this.focusService.focusGridView(i,!0))return!0}if(this.gridOptionsService.get("headerHeight")===0||this.gridOptionsService.get("suppressHeaderFocus")){if(this.focusService.focusGridView(o[0]))return!0;for(var s=1;s=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Gm=function(n){Nm(t,n);function t(e){var r=n.call(this)||this;return r.eGridDiv=e,r}return t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var r={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(i){return e.addCssClass(i)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(i){e.getGui().style.userSelect=i??"",e.getGui().style.webkitUserSelect=i??""},setCursor:function(i){e.getGui().style.cursor=i??""}};this.ctrl=this.createManagedBean(new xm);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(r,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(i){return e.ctrl.focusInnerElement(i)},forceFocusOutWhenTabGuardsAreEmpty:!0})},t.prototype.insertGridIntoDom=function(){var e=this,r=this.getGui();this.eGridDiv.appendChild(r),this.addDestroyFunc(function(){e.eGridDiv.removeChild(r),e.logger.log("Grid removed from DOM")})},t.prototype.updateLayoutClasses=function(e,r){var o=this.eRootWrapperBody.classList;o.toggle(pe.AUTO_HEIGHT,r.autoHeight),o.toggle(pe.NORMAL,r.normal),o.toggle(pe.PRINT,r.print),this.addOrRemoveCssClass(pe.AUTO_HEIGHT,r.autoHeight),this.addOrRemoveCssClass(pe.NORMAL,r.normal),this.addOrRemoveCssClass(pe.PRINT,r.print)},t.prototype.createTemplate=function(){var e=this.ctrl.showDropZones()?"":"",r=this.ctrl.showSideBar()?'':"",o=this.ctrl.showStatusBar()?'':"",i=this.ctrl.showWatermark()?"":"",s=``)||this;return e.isListOpen=!1,e.lastPosition=0,e.valid=!0,e}return t.prototype.postConstruct=function(){var e=this;this.eAutocompleteInput.onValueChange(function(r){return e.onValueChanged(r)}),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(function(){e.destroyBean(e.autocompleteList)}),this.addGuiEventListener("focusout",function(){return e.onFocusOut()})},t.prototype.onValueChanged=function(e){var r=ct(e);this.updateValue(r),this.updateAutocompleteList(r)},t.prototype.updateValue=function(e){this.updateLastPosition(),this.dispatchEvent({type:t.EVENT_VALUE_CHANGED,value:e}),this.validate(e)},t.prototype.updateAutocompleteList=function(e){var r,o,i,s,a=(o=(r=this.listGenerator)===null||r===void 0?void 0:r.call(this,e,this.lastPosition))!==null&&o!==void 0?o:{enabled:!1};if((!a.type||a.type!==((i=this.autocompleteListParams)===null||i===void 0?void 0:i.type))&&this.isListOpen&&this.closeList(),this.autocompleteListParams=a,!((s=this.autocompleteListParams)===null||s===void 0)&&s.enabled){this.isListOpen||this.openList();var l=this.autocompleteListParams.searchString;this.autocompleteList.setSearch(l??"")}else this.isListOpen&&this.closeList()},t.prototype.onKeyDown=function(e){var r=this,o=e.key;switch(this.updateLastPosition(),o){case _.ENTER:this.onEnterKeyDown(e);break;case _.TAB:this.onTabKeyDown(e);break;case _.DOWN:case _.UP:this.onUpDownKeyDown(e,o);break;case _.LEFT:case _.RIGHT:case _.PAGE_HOME:case _.PAGE_END:setTimeout(function(){r.updatePositionAndList()});break;case _.ESCAPE:this.onEscapeKeyDown(e);break;case _.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList());break}},t.prototype.confirmSelection=function(){var e,r=(e=this.autocompleteList)===null||e===void 0?void 0:e.getSelectedValue();r&&(this.closeList(),this.dispatchEvent({type:t.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:r,autocompleteType:this.autocompleteListParams.type}))},t.prototype.onTabKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())},t.prototype.onEnterKeyDown=function(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()},t.prototype.onUpDownKeyDown=function(e,r){var o;e.preventDefault(),this.isListOpen?(o=this.autocompleteList)===null||o===void 0||o.onNavigationKeyDown(e,r):this.forceOpenList()},t.prototype.onEscapeKeyDown=function(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))},t.prototype.onFocusOut=function(){this.isListOpen&&this.closeList()},t.prototype.updatePositionAndList=function(){var e;this.updateLastPosition(),this.updateAutocompleteList((e=this.eAutocompleteInput.getValue())!==null&&e!==void 0?e:null)},t.prototype.setCaret=function(e,r){var o=this.gridOptionsService.getDocument();r&&o.activeElement===o.body&&this.eAutocompleteInput.getFocusableElement().focus();var i=this.eAutocompleteInput.getInputElement();i.setSelectionRange(e,e),e===i.value.length&&(i.scrollLeft=i.scrollWidth)},t.prototype.forceOpenList=function(){this.onValueChanged(this.eAutocompleteInput.getValue())},t.prototype.updateLastPosition=function(){var e;this.lastPosition=(e=this.eAutocompleteInput.getInputElement().selectionStart)!==null&&e!==void 0?e:0},t.prototype.validate=function(e){var r;this.validator&&(this.validationMessage=this.validator(e),this.eAutocompleteInput.getInputElement().setCustomValidity((r=this.validationMessage)!==null&&r!==void 0?r:""),this.valid=!this.validationMessage,this.dispatchEvent({type:t.EVENT_VALID_CHANGED,isValid:this.valid,validationMessage:this.validationMessage}))},t.prototype.openList=function(){var e=this;this.isListOpen=!0,this.autocompleteList=this.createBean(new uC({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:function(){return e.confirmSelection()},forceLastSelection:this.forceLastSelection}));var r=this.autocompleteList.getGui(),o={ePopup:r,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gridOptionsService.get("enableRtl")?"right":"left",keepWithinBounds:!0},i=this.popupService.addPopup({eChild:r,anchorToElement:this.getGui(),positionCallback:function(){return e.popupService.positionPopupByComponent(o)},ariaLabel:this.listAriaLabel});this.hidePopup=i.hideFunc,this.autocompleteList.afterGuiAttached()},t.prototype.closeList=function(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null},t.prototype.onCompleted=function(){this.isListOpen&&this.closeList(),this.dispatchEvent({type:t.EVENT_VALUE_CONFIRMED,value:this.getValue(),isValid:this.isValid()})},t.prototype.getValue=function(){return ct(this.eAutocompleteInput.getValue())},t.prototype.setInputPlaceholder=function(e){return this.eAutocompleteInput.setInputPlaceholder(e),this},t.prototype.setInputAriaLabel=function(e){return this.eAutocompleteInput.setInputAriaLabel(e),this},t.prototype.setListAriaLabel=function(e){return this.listAriaLabel=e,this},t.prototype.setListGenerator=function(e){return this.listGenerator=e,this},t.prototype.setValidator=function(e){return this.validator=e,this},t.prototype.isValid=function(){return this.valid},t.prototype.setValue=function(e){var r=e.value,o=e.position,i=e.silent,s=e.updateListOnlyIfOpen,a=e.restoreFocus;this.eAutocompleteInput.setValue(r,!0),this.setCaret(o??this.lastPosition,a),i||this.updateValue(r),(!s||this.isListOpen)&&this.updateAutocompleteList(r)},t.prototype.setForceLastSelection=function(e){return this.forceLastSelection=e,this},t.prototype.setInputDisabled=function(e){return this.eAutocompleteInput.setDisabled(e),this},t.EVENT_VALUE_CHANGED="eventValueChanged",t.EVENT_VALUE_CONFIRMED="eventValueConfirmed",t.EVENT_OPTION_SELECTED="eventOptionSelected",t.EVENT_VALID_CHANGED="eventValidChanged",Ns([v("popupService")],t.prototype,"popupService",void 0),Ns([L("eAutocompleteInput")],t.prototype,"eAutocompleteInput",void 0),Ns([F],t.prototype,"postConstruct",null),t}(k),dC=["touchstart","touchend","touchmove","touchcancel"],hC=function(){function n(t){t===void 0&&(t="javascript"),this.frameworkName=t,this.renderingEngine="vanilla",this.wrapIncoming=function(e){return e()},this.wrapOutgoing=function(e){return e()}}return n.prototype.setInterval=function(t,e){return new je(function(r){r(window.setInterval(t,e))})},n.prototype.addEventListener=function(t,e,r,o){var i=ot(dC,e);t.addEventListener(e,r,{capture:!!o,passive:i})},Object.defineProperty(n.prototype,"shouldWrapOutgoing",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.frameworkComponent=function(t){return null},n.prototype.isFrameworkComponent=function(t){return!1},n.prototype.getDocLink=function(t){var e=this.frameworkName==="solid"?"react":this.frameworkName;return"https://www.ag-grid.com/".concat(e,"-data-grid").concat(t?"/".concat(t):"")},n}(),fC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Br=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vC=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},gC=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},mC=function(n,t){return function(e,r){t(e,r,n)}},SC=function(n){CC(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.consuming=!1,e}return t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.getAlignedGridApis=function(){var e=this,r,o=(r=this.gridOptionsService.get("alignedGrids"))!==null&&r!==void 0?r:[],i=typeof o=="function";typeof o=="function"&&(o=o());var s=function(){return"See ".concat(e.getFrameworkOverrides().getDocLink("aligned-grids"))},a=o.map(function(l){var u;if(!l){pt("alignedGrids contains an undefined option."),i||pt(`You may want to configure via a callback to avoid setup race conditions: + "alignedGrids: () => [linkedGrid]"`),pt(s());return}if(l instanceof Zl)return l;var c=l;return"current"in c?(u=c.current)===null||u===void 0?void 0:u.api:(c.api||pt("alignedGrids - No api found on the linked grid. If you are passing gridOptions to alignedGrids since v31 this is no longer valid. ".concat(s())),c.api)}).filter(function(l){return!!l&&!l.isDestroyed()});return a},t.prototype.init=function(){this.addManagedListener(this.eventService,g.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){this.consuming||this.getAlignedGridApis().forEach(function(r){var o=r.__getAlignedGridService();e(o)})},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent(function(r){r.onColumnEvent(e)})},t.prototype.fireScrollEvent=function(e){e.direction==="horizontal"&&this.fireEvent(function(r){r.onScrollEvent(e)})},t.prototype.onScrollEvent=function(e){var r=this;this.onEvent(function(){var o=r.ctrlsService.getGridBodyCtrl();o.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})},t.prototype.getMasterColumns=function(e){var r=[];return e.columns?e.columns.forEach(function(o){r.push(o)}):e.column&&r.push(e.column),r},t.prototype.getColumnIds=function(e){var r=[];return e.columns?e.columns.forEach(function(o){r.push(o.getColId())}):e.column&&r.push(e.column.getColId()),r},t.prototype.onColumnEvent=function(e){var r=this;this.onEvent(function(){switch(e.type){case g.EVENT_COLUMN_MOVED:case g.EVENT_COLUMN_VISIBLE:case g.EVENT_COLUMN_PINNED:case g.EVENT_COLUMN_RESIZED:var o=e;r.processColumnEvent(o);break;case g.EVENT_COLUMN_GROUP_OPENED:var i=e;r.processGroupOpenedEvent(i);break;case g.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.");break}})},t.prototype.processGroupOpenedEvent=function(e){var r=this;e.columnGroups.forEach(function(o){var i=null;if(o){var s=o.getGroupId();i=r.columnModel.getProvidedColumnGroup(s)}o&&!i||(r.logger.log("onColumnEvent-> processing "+e+" expanded = "+o.isExpanded()),r.columnModel.setColumnGroupOpened(i,o.isExpanded(),"alignedGridChanged"))})},t.prototype.processColumnEvent=function(e){var r=this,o,i=e.column,s=null;if(i&&(s=this.columnModel.getPrimaryColumn(i.getColId())),!(i&&!s)){var a=this.getMasterColumns(e);switch(e.type){case g.EVENT_COLUMN_MOVED:{var l=e,u=e.api.getColumnState(),c=u.map(function(m){return{colId:m.colId}});this.columnModel.applyColumnState({state:c,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," toIndex = ").concat(l.toIndex))}break;case g.EVENT_COLUMN_VISIBLE:{var p=e,u=e.api.getColumnState(),c=u.map(function(E){return{colId:E.colId,hide:E.hide}});this.columnModel.applyColumnState({state:c},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," visible = ").concat(p.visible))}break;case g.EVENT_COLUMN_PINNED:{var d=e,u=e.api.getColumnState(),c=u.map(function(E){return{colId:E.colId,pinned:E.pinned}});this.columnModel.applyColumnState({state:c},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing ".concat(e.type," pinned = ").concat(d.pinned))}break;case g.EVENT_COLUMN_RESIZED:var h=e,f={};a.forEach(function(m){r.logger.log("onColumnEvent-> processing ".concat(e.type," actualWidth = ").concat(m.getActualWidth())),f[m.getId()]={key:m.getColId(),newWidth:m.getActualWidth()}}),(o=h.flexColumns)===null||o===void 0||o.forEach(function(m){f[m.getId()]&&delete f[m.getId()]}),this.columnModel.setColumnWidths(Object.values(f),!1,h.finished,"alignedGridChanged");break}var y=this.ctrlsService.getGridBodyCtrl(),C=y.isVerticalScrollShowing();this.getAlignedGridApis().forEach(function(m){m.setGridOption("alwaysShowVerticalScroll",C)})}},Eo([v("columnModel")],t.prototype,"columnModel",void 0),Eo([v("ctrlsService")],t.prototype,"ctrlsService",void 0),Eo([mC(0,Ye("loggerFactory"))],t.prototype,"setBeans",null),Eo([F],t.prototype,"init",null),t=Eo([x("alignedGridsService")],t),t}(D),wC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ii=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Au=function(n){wC(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.selectedNodes=new Map,e.lastRowNode=null,e}return t.prototype.init=function(){var e=this;this.rowSelection=this.gridOptionsService.get("rowSelection"),this.groupSelectsChildren=this.gridOptionsService.get("groupSelectsChildren"),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],function(){e.groupSelectsChildren=e.gridOptionsService.get("groupSelectsChildren"),e.rowSelection=e.gridOptionsService.get("rowSelection"),e.deselectAllRowNodes({source:"api"})}),this.addManagedListener(this.eventService,g.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.resetNodes(),this.lastRowNode=null},t.prototype.isMultiselect=function(){return this.rowSelection==="multiple"},t.prototype.setNodesSelected=function(e){var r,o=e.newValue,i=e.clearSelection,s=e.suppressFinishActions,a=e.rangeSelect,l=e.nodes,u=e.event,c=e.source,p=c===void 0?"api":c;if(l.length===0)return 0;if(l.length>1&&!this.isMultiselect())return console.warn("AG Grid: cannot multi select while rowSelection='single'"),0;var d=this.groupSelectsChildren&&e.groupSelectsFiltered===!0,h=l.map(function(A){return A.footer?A.sibling:A});if(a){if(l.length>1)return console.warn("AG Grid: cannot range select while selecting multiple rows"),0;var f=null;if(p==="checkboxSelected"&&o===!1&&this.lastRowNode&&(this.lastRowNode.id?f=this.lastRowNode:this.lastRowNode=null),f==null&&(f=this.getLastSelectedNode()),f){var y=h[0],C=y!==f;if(C&&this.isMultiselect())return this.selectRange(y,f,o,p)}}this.lastRowNode=o?null:h[0];for(var m=0,w=0;w0){this.updateGroupsFromChildrenSelections(p);var b={type:g.EVENT_SELECTION_CHANGED,source:p};this.eventService.dispatchEvent(b)}}return m},t.prototype.selectRange=function(e,r,o,i){var s=this;o===void 0&&(o=!0);var a=this.rowModel.getNodesInRangeForSelection(e,r),l=0;a.forEach(function(c){if(!(c.group&&s.groupSelectsChildren)){var p=c.selectThisNode(o,void 0,i);p&&l++}}),this.updateGroupsFromChildrenSelections(i);var u={type:g.EVENT_SELECTION_CHANGED,source:i};return this.eventService.dispatchEvent(u),l},t.prototype.selectChildren=function(e,r,o,i){var s=o?e.childrenAfterAggFilter:e.childrenAfterGroup;return H(s)?0:this.setNodesSelected({newValue:r,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:o,source:i,nodes:s})},t.prototype.getLastSelectedNode=function(){var e=Array.from(this.selectedNodes.keys());if(e.length==0)return null;var r=this.selectedNodes.get(q(e));return r||null},t.prototype.getSelectedNodes=function(){var e=[];return this.selectedNodes.forEach(function(r){r&&e.push(r)}),e},t.prototype.getSelectedRows=function(){var e=[];return this.selectedNodes.forEach(function(r){r&&r.data&&e.push(r.data)}),e},t.prototype.getSelectionCount=function(){return this.selectedNodes.size},t.prototype.filterFromSelection=function(e){var r=new Map;this.selectedNodes.forEach(function(o,i){var s=o&&e(o);s&&r.set(i,o)}),this.selectedNodes=r},t.prototype.updateGroupsFromChildrenSelections=function(e,r){if(!this.groupSelectsChildren||this.rowModel.getType()!=="clientSide")return!1;var o=this.rowModel,i=o.getRootNode();r||(r=new Ti(!0,i),r.setInactive());var s=!1;return r.forEachChangedNodeDepthFirst(function(a){if(a!==i){var l=a.calculateSelectedFromChildren();s=a.selectThisNode(l===null?!1:l,void 0,e)||s}}),s},t.prototype.clearOtherNodes=function(e,r){var o=this,i=new Map,s=0;return this.selectedNodes.forEach(function(a){if(a&&a.id!==e.id){var l=o.selectedNodes.get(a.id);s+=l.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:r}),o.groupSelectsChildren&&a.parent&&i.set(a.parent.id,a.parent)}}),i.forEach(function(a){var l=a.calculateSelectedFromChildren();a.selectThisNode(l===null?!1:l,void 0,r)}),s},t.prototype.onRowSelected=function(e){var r=e.node;this.groupSelectsChildren&&r.group||(r.isSelected()?this.selectedNodes.set(r.id,r):this.selectedNodes.delete(r.id))},t.prototype.syncInRowNode=function(e,r){this.syncInOldRowNode(e,r),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,r){var o=P(r)&&e.id!==r.id;if(o&&r){var i=r.id,s=this.selectedNodes.get(i)==e;s&&this.selectedNodes.set(r.id,r)}},t.prototype.syncInNewRowNode=function(e){this.selectedNodes.has(e.id)?(e.setSelectedInitialValue(!0),this.selectedNodes.set(e.id,e)):e.setSelectedInitialValue(!1)},t.prototype.reset=function(e){var r=this.getSelectionCount();if(this.resetNodes(),r){var o={type:g.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(o)}},t.prototype.resetNodes=function(){var e;(e=this.selectedNodes)===null||e===void 0||e.clear()},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()!=="clientSide")return;var e=this.rowModel,r=e.getTopLevelNodes();if(r===null)return;var o=[];function i(s){for(var a=0,l=s.length;a0&&s>0?null:i>0},t.prototype.hasNodesToSelect=function(e,r){return e===void 0&&(e=!1),r===void 0&&(r=!1),this.getNodesToSelect(e,r).filter(function(o){return o.selectable}).length>0},t.prototype.getNodesToSelect=function(e,r){var o=this;if(e===void 0&&(e=!1),r===void 0&&(r=!1),this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not ".concat(this.rowModel.getType()));var i=[];if(r)return this.paginationProxy.forEachNodeOnPage(function(a){if(!a.group){i.push(a);return}if(!a.expanded){var l=function(u){var c;i.push(u),!((c=u.childrenAfterFilter)===null||c===void 0)&&c.length&&u.childrenAfterFilter.forEach(l)};l(a);return}o.groupSelectsChildren||i.push(a)}),i;var s=this.rowModel;return e?(s.forEachNodeAfterFilter(function(a){i.push(a)}),i):(s.forEachNode(function(a){i.push(a)}),i)},t.prototype.selectAllRowNodes=function(e){if(this.rowModel.getType()!=="clientSide")throw new Error("selectAll only available when rowModelType='clientSide', ie not ".concat(this.rowModel.getType()));var r=e.source,o=e.justFiltered,i=e.justCurrentPage,s=function(l){return l.selectThisNode(!0,void 0,r)};this.getNodesToSelect(o,i).forEach(s),this.rowModel.getType()==="clientSide"&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(r);var a={type:g.EVENT_SELECTION_CHANGED,source:r};this.eventService.dispatchEvent(a)},t.prototype.getSelectionState=function(){var e=[];return this.selectedNodes.forEach(function(r){r!=null&&r.id&&e.push(r.id)}),e.length?e:null},t.prototype.setSelectionState=function(e,r){if(Array.isArray(e)){var o=new Set(e),i=[];this.rowModel.forEachNode(function(s){o.has(s.id)&&i.push(s)}),this.setNodesSelected({newValue:!0,nodes:i,source:r})}},Ii([v("rowModel")],t.prototype,"rowModel",void 0),Ii([v("paginationProxy")],t.prototype,"paginationProxy",void 0),Ii([F],t.prototype,"init",null),t=Ii([x("selectionService")],t),t}(D),bu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},EC=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},_C=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},OC=function(n){RC(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.initialised=!1,e.isSsrm=!1,e}return t.prototype.init=function(){var e=this;this.isSsrm=this.gridOptionsService.isRowModelType("serverSide"),this.cellExpressions=this.gridOptionsService.get("enableCellExpressions"),this.isTreeData=this.gridOptionsService.get("treeData"),this.initialised=!0;var r=function(i){return e.callColumnCellValueChangedHandler(i)},o=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(g.EVENT_CELL_VALUE_CHANGED,r,o),this.addDestroyFunc(function(){return e.eventService.removeEventListener(g.EVENT_CELL_VALUE_CHANGED,r,o)}),this.addManagedPropertyListener("treeData",function(i){return e.isTreeData=i.currentValue})},t.prototype.getValue=function(e,r,o,i){if(o===void 0&&(o=!1),i===void 0&&(i=!1),this.initialised||this.init(),!!r){var s=e.getColDef(),a=s.field,l=e.getColId(),u=r.data,c,p=r.groupData&&r.groupData[l]!==void 0,d=!i&&r.aggData&&r.aggData[l]!==void 0,h=this.isSsrm&&i&&!!e.getColDef().aggFunc,f=this.isSsrm&&r.footer&&r.field&&(e.getColDef().showRowGroup===!0||e.getColDef().showRowGroup===r.field);if(o&&s.filterValueGetter?c=this.executeFilterValueGetter(s.filterValueGetter,u,e,r):this.isTreeData&&d?c=r.aggData[l]:this.isTreeData&&s.valueGetter?c=this.executeValueGetter(s.valueGetter,u,e,r):this.isTreeData&&a&&u?c=wr(u,a,e.isFieldContainsDots()):p?c=r.groupData[l]:d?c=r.aggData[l]:s.valueGetter?c=this.executeValueGetter(s.valueGetter,u,e,r):f?c=wr(u,r.field,e.isFieldContainsDots()):a&&u&&!h&&(c=wr(u,a,e.isFieldContainsDots())),this.cellExpressions&&typeof c=="string"&&c.indexOf("=")===0){var y=c.substring(1);c=this.executeValueGetter(y,u,e,r)}if(c==null){var C=this.getOpenedGroup(r,e);if(C!=null)return C}return c}},t.prototype.getOpenedGroup=function(e,r){if(this.gridOptionsService.get("showOpenedGroup")){var o=r.getColDef();if(o.showRowGroup)for(var i=r.getColDef().showRowGroup,s=e.parent;s!=null;){if(s.rowGroupColumn&&(i===!0||i===s.rowGroupColumn.getColId()))return s.key;s=s.parent}}},t.prototype.setValue=function(e,r,o,i){var s=this.columnModel.getPrimaryColumn(r);if(!e||!s)return!1;H(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.valueSetter;if(H(l)&&H(u))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;if(!this.dataTypeService.checkType(s,o))return console.warn("AG Grid: Data type of the new value does not match the cell data type of the column"),!1;var c=this.gridOptionsService.addGridCommonParams({node:e,data:e.data,oldValue:this.getValue(s,e),newValue:o,colDef:s.getColDef(),column:s});c.newValue=o;var p;if(P(u)?typeof u=="function"?p=u(c):p=this.expressionService.evaluate(u,c):p=this.setValueUsingField(e.data,l,o,s.isFieldContainsDots()),p===void 0&&(p=!0),!p)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(s,e);var d={type:g.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,columnApi:c.columnApi,colDef:c.colDef,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue,source:i};return this.eventService.dispatchEvent(d),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var r=e.colDef.onCellValueChanged;typeof r=="function"&&this.getFrameworkOverrides().wrapOutgoing(function(){r({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})})},t.prototype.setValueUsingField=function(e,r,o,i){if(!r)return!1;var s=!1;if(!i)s=e[r]===o,s||(e[r]=o);else for(var a=r.split("."),l=e;a.length>0&&l;){var u=a.shift();a.length===0?(s=l[u]===o,s||(l[u]=o)):l=l[u]}return!s},t.prototype.executeFilterValueGetter=function(e,r,o,i){var s=this.gridOptionsService.addGridCommonParams({data:r,node:i,column:o,colDef:o.getColDef(),getValue:this.getValueCallback.bind(this,i)});return typeof e=="function"?e(s):this.expressionService.evaluate(e,s)},t.prototype.executeValueGetter=function(e,r,o,i){var s=o.getColId(),a=this.valueCache.getValue(i,s);if(a!==void 0)return a;var l=this.gridOptionsService.addGridCommonParams({data:r,node:i,column:o,colDef:o.getColDef(),getValue:this.getValueCallback.bind(this,i)}),u;return typeof e=="function"?u=e(l):u=this.expressionService.evaluate(e,l),this.valueCache.setValue(i,s,u),u},t.prototype.getValueCallback=function(e,r){var o=this.columnModel.getPrimaryColumn(r);return o?this.getValue(o,e):null},t.prototype.getKeyForNode=function(e,r){var o=this.getValue(e,r),i=e.getColDef().keyCreator,s=o;if(i){var a=this.gridOptionsService.addGridCommonParams({value:o,colDef:e.getColDef(),column:e,node:r,data:r.data});s=i(a)}return typeof s=="string"||s==null||(s=String(s),s==="[object Object]"&&V("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")),s},kr([v("expressionService")],t.prototype,"expressionService",void 0),kr([v("columnModel")],t.prototype,"columnModel",void 0),kr([v("valueCache")],t.prototype,"valueCache",void 0),kr([v("dataTypeService")],t.prototype,"dataTypeService",void 0),kr([F],t.prototype,"init",null),t=kr([x("valueService")],t),t}(D),TC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Lu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},PC=function(n,t){return function(e,r){t(e,r,n)}},DC=function(n){TC(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,r){if(typeof e=="string")return this.evaluateExpression(e,r);console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,r){try{var o=this.createExpressionFunction(e),i=o(r.value,r.context,r.oldValue,r.newValue,r.value,r.node,r.data,r.colDef,r.rowIndex,r.api,r.columnApi,r.getValue,r.column,r.columnGroup);return i}catch(s){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",r),console.log("Exception = "+s),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var r=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",r);return this.expressionToFunctionCache[e]=o,o},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Lu([PC(0,Ye("loggerFactory"))],t.prototype,"setBeans",null),t=Lu([x("expressionService")],t),t}(D),AC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),bC=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},FC=function(n){AC(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return t.prototype.getTemplate=function(e,r){var o=this.templateCache[e];if(o)return o;var i=this.waitingCallbacks[e],s=this;if(!i){i=[],this.waitingCallbacks[e]=i;var a=new XMLHttpRequest;a.onload=function(){s.handleHttpResult(this,e)},a.open("GET",e),a.send()}return r&&i.push(r),null},t.prototype.handleHttpResult=function(e,r){if(e.status!==200||e.response===null){console.warn("AG Grid: Unable to get template error ".concat(e.status," - ").concat(r));return}this.templateCache[r]=e.response||e.responseText;for(var o=this.waitingCallbacks[r],i=0;i=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},MC=function(n,t){return function(e,r){t(e,r,n)}},IC=function(n){LC(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setBeans=function(e){this.logging=e.get("debug")},t.prototype.create=function(e){return new Gs(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Mu([MC(0,Ye("gridOptionsService"))],t.prototype,"setBeans",null),t=Mu([x("loggerFactory")],t),t}(D),Gs=function(){function n(t,e){this.name=t,this.isLoggingFunc=e}return n.prototype.isLogging=function(){return this.isLoggingFunc()},n.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},n}(),xC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wr=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},NC=function(n){xC(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setComp=function(e,r,o){var i=this;this.view=e,this.eGridHostDiv=r,this.eGui=o,this.eGui.setAttribute("grid-id",this.context.getGridId()),this.dragAndDropService.addDropTarget({getContainer:function(){return i.eGui},isInterestedIn:function(a){return a===Pe.HeaderCell||a===Pe.ToolPanel},getIconName:function(){return he.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(r),this.createManagedBean(new ys(this.view)),this.addRtlSupport();var s=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return s()}),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,r=this.focusService.findTabbableParent(this.getGui());return((e=r==null?void 0:r.getAttribute("row-id"))===null||e===void 0?void 0:e.startsWith("detail"))||!1},t.prototype.showDropZones=function(){return X.__isRegistered(G.RowGroupingModule,this.context.getGridId())},t.prototype.showSideBar=function(){return X.__isRegistered(G.SideBarModule,this.context.getGridId())},t.prototype.showStatusBar=function(){return X.__isRegistered(G.StatusBarModule,this.context.getGridId())},t.prototype.showWatermark=function(){return X.__isRegistered(G.EnterpriseCoreModule,this.context.getGridId())},t.prototype.onGridSizeChanged=function(){var e={type:g.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsService.get("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},t.prototype.focusNextInnerContainer=function(e){var r=this.gridOptionsService.getDocument(),o=this.view.getFocusableContainers(),i=o.findIndex(function(a){return a.contains(r.activeElement)}),s=i+(e?-1:1);return s<=0||s>=o.length?!1:this.focusService.focusInto(o[s])},t.prototype.focusInnerElement=function(e){var r=this.view.getFocusableContainers(),o=this.columnModel.getAllDisplayedColumns();if(e){if(r.length>1)return this.focusService.focusInto(q(r),!0);var i=q(o);if(this.focusService.focusGridView(i,!0))return!0}if(this.gridOptionsService.get("headerHeight")===0||this.gridOptionsService.get("suppressHeaderFocus")){if(this.focusService.focusGridView(o[0]))return!0;for(var s=1;s=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},VC=function(n){GC(t,n);function t(e){var r=n.call(this)||this;return r.eGridDiv=e,r}return t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var r={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(i){return e.addCssClass(i)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(i){e.getGui().style.userSelect=i??"",e.getGui().style.webkitUserSelect=i??""},setCursor:function(i){e.getGui().style.cursor=i??""}};this.ctrl=this.createManagedBean(new NC);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(r,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(i){return e.ctrl.focusInnerElement(i)},forceFocusOutWhenTabGuardsAreEmpty:!0})},t.prototype.insertGridIntoDom=function(){var e=this,r=this.getGui();this.eGridDiv.appendChild(r),this.addDestroyFunc(function(){e.eGridDiv.removeChild(r),e.logger.log("Grid removed from DOM")})},t.prototype.updateLayoutClasses=function(e,r){var o=this.eRootWrapperBody.classList;o.toggle(pe.AUTO_HEIGHT,r.autoHeight),o.toggle(pe.NORMAL,r.normal),o.toggle(pe.PRINT,r.print),this.addOrRemoveCssClass(pe.AUTO_HEIGHT,r.autoHeight),this.addOrRemoveCssClass(pe.NORMAL,r.normal),this.addOrRemoveCssClass(pe.PRINT,r.print)},t.prototype.createTemplate=function(){var e=this.ctrl.showDropZones()?"":"",r=this.ctrl.showSideBar()?'':"",o=this.ctrl.showStatusBar()?'':"",i=this.ctrl.showWatermark()?"":"",s=``)},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var i=this.isZeroPagesToDisplay(),s=e===o-1;this.nextButtonDisabled=s||i,this.lastButtonDisabled=!r||i||e===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,r){hn(e,r),e.classList.toggle("ag-disabled",r)},t.prototype.updateRowLabels=function(){var e=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),o=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null,s,a;if(this.isZeroPagesToDisplay()?s=a=0:(s=r*e+1,a=s+r-1,o&&a>i&&(a=i)),this.lbFirstRowOnPage.textContent=this.formatNumber(s),this.rowNodeBlockLoader.isLoading()){var l=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=l("pageLastRowUnknown","?")}else this.lbLastRowOnPage.textContent=this.formatNumber(a)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages();return e&&r===0},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.getTotalPages(),o=e?this.paginationProxy.getMasterRowCount():null;if(o===1){var i=this.paginationProxy.getRow(0),s=i&&i.group&&!(i.groupData||i.aggData);if(s){this.setTotalLabelsToZero();return}}if(e)this.lbTotal.textContent=this.formatNumber(r),this.lbRecordCount.textContent=this.formatNumber(o);else{var a=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=a,this.lbRecordCount.innerHTML=a}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.textContent=this.formatNumber(0),this.lbCurrent.textContent=this.formatNumber(0),this.lbLastRowOnPage.textContent=this.formatNumber(0),this.lbTotal.textContent=this.formatNumber(0),this.lbRecordCount.textContent=this.formatNumber(0)},Ke([v("paginationProxy")],t.prototype,"paginationProxy",void 0),Ke([v("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Ke([L("btFirst")],t.prototype,"btFirst",void 0),Ke([L("btPrevious")],t.prototype,"btPrevious",void 0),Ke([L("btNext")],t.prototype,"btNext",void 0),Ke([L("btLast")],t.prototype,"btLast",void 0),Ke([L("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Ke([L("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Ke([L("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Ke([L("lbCurrent")],t.prototype,"lbCurrent",void 0),Ke([L("lbTotal")],t.prototype,"lbTotal",void 0),Ke([L("pageSizeComp")],t.prototype,"pageSizeComp",void 0),Ke([F],t.prototype,"postConstruct",null),t}(k),mm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ks=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Sm=function(n){mm(t,n);function t(){var e=n.call(this,t.TEMPLATE)||this;return e.inProgress=!1,e.destroyRequested=!1,e}return t.prototype.updateLayoutClasses=function(e,r){var o=this.eOverlayWrapper.classList;o.toggle(pe.AUTO_HEIGHT,r.autoHeight),o.toggle(pe.NORMAL,r.normal),o.toggle(pe.PRINT,r.print)},t.prototype.postConstruct=function(){this.createManagedBean(new ys(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.overlayService.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){var r=this.eOverlayWrapper.classList;this.activeOverlayWrapperCssClass&&r.toggle(this.activeOverlayWrapperCssClass,!1),this.activeOverlayWrapperCssClass=e,r.toggle(e,!0)},t.prototype.showOverlay=function(e,r,o){var i=this;this.inProgress||(this.setWrapperTypeClass(r),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then(function(s){i.inProgress=!1,i.eOverlayWrapper.appendChild(s.getGui()),i.activeOverlay=s,i.updateListenerDestroyFunc=o,i.destroyRequested&&(i.destroyRequested=!1,i.destroyActiveOverlay())}),this.setDisplayed(!0,{skipAriaHidden:!0}))},t.prototype.destroyActiveOverlay=function(){var e;if(this.inProgress){this.destroyRequested=!0;return}this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),(e=this.updateListenerDestroyFunc)===null||e===void 0||e.call(this),de(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},t.prototype.destroy=function(){this.destroyActiveOverlay(),n.prototype.destroy.call(this)},t.TEMPLATE=` `,Ks([v("overlayService")],t.prototype,"overlayService",void 0),Ks([L("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),Ks([F],t.prototype,"postConstruct",null),t}(k),SC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},wC=function(n){SC(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getFirstRow=function(){var e=0,r;return this.pinnedRowModel.getPinnedTopRowCount()?r="top":this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(r="bottom"),r===void 0?null:{rowIndex:e,rowPinned:r}},t.prototype.getLastRow=function(){var e,r=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),i=this.pinnedRowModel.getPinnedTopRowCount();return o?(r="bottom",e=o-1):this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageLastRow()):i&&(r="top",e=i-1),e===void 0?null:{rowIndex:e,rowPinned:r}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,r){return!e&&!r?!0:e&&!r||!e&&r?!1:e.rowIndex===r.rowIndex&&e.rowPinned==r.rowPinned},t.prototype.before=function(e,r){switch(e.rowPinned){case"top":if(r.rowPinned!=="top")return!0;break;case"bottom":if(r.rowPinned!=="bottom")return!1;break;default:if(P(r.rowPinned))return r.rowPinned!=="top";break}return e.rowIndex=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},RC=function(n){EC(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createId=function(e){var r=e.rowIndex,o=e.rowPinned,i=e.column;return this.createIdFromValues({rowIndex:r,column:i,rowPinned:o})},t.prototype.createIdFromValues=function(e){var r=e.rowIndex,o=e.rowPinned,i=e.column;return"".concat(r,".").concat(o??"null",".").concat(i.getId())},t.prototype.equals=function(e,r){var o=e.column===r.column,i=e.rowPinned===r.rowPinned,s=e.rowIndex===r.rowIndex;return o&&i&&s},t=_C([x("cellPositionUtils")],t),t}(D),OC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Oo=function(){function n(t){this.cellValueChanges=t}return n}(),$s=function(n){OC(t,n);function t(e,r,o,i){var s=n.call(this,e)||this;return s.initialRange=r,s.finalRange=o,s.ranges=i,s}return t}(Oo),Bu=function(){function n(t){this.actionStack=[],this.maxStackSize=t||n.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return n.prototype.pop=function(){return this.actionStack.pop()},n.prototype.push=function(t){var e=t.cellValueChanges&&t.cellValueChanges.length>0;e&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},n.prototype.clear=function(){this.actionStack=[]},n.prototype.getCurrentStackSize=function(){return this.actionStack.length},n.DEFAULT_STACK_SIZE=10,n}(),TC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Bi=function(){return Bi=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},PC=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},DC=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},FC=function(n){bC(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.findHeader=function(e,r){var o,i,s;if(e.column instanceof se?(i="getDisplayedGroup".concat(r),o=this.columnModel[i](e.column)):(s="getDisplayedCol".concat(r),o=this.columnModel[s](e.column)),!!o){var a=e.headerRowIndex;if(this.getHeaderRowType(a)!==ge.FLOATING_FILTER){for(var l=[o];o.getParent();)o=o.getParent(),l.push(o);o=l[l.length-1-a]}var u=this.getHeaderIndexToFocus(o,a),c=u.column,p=u.headerRowIndex;return{column:c,headerRowIndex:p}}},t.prototype.getHeaderIndexToFocus=function(e,r){var o;if(e instanceof se&&this.isAnyChildSpanningHeaderHeight(e)&&e.isPadding()){var i=e;o=i.getLeafColumns()[0];for(var s=o;s!==i;)r++,s=s.getParent()}return{column:o||e,headerRowIndex:r}},t.prototype.isAnyChildSpanningHeaderHeight=function(e){return e?e.getLeafColumns().some(function(r){return r.isSpanHeaderHeight()}):!1},t.prototype.getColumnVisibleParent=function(e,r){var o=this.getHeaderRowType(r),i=o===ge.FLOATING_FILTER,s=o===ge.COLUMN,a=i?e:e.getParent(),l=r-1,u=l;if(s&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;a&&a.isPadding();)a=a.getParent(),l--;u=l,l<0&&(a=e,l=r,u=void 0)}return{column:a,headerRowIndex:l,headerRowIndexWithoutSpan:u}},t.prototype.getColumnVisibleChild=function(e,r,o){o===void 0&&(o="After");var i=this.getHeaderRowType(r),s=e,a=r+1,l=a;if(i===ge.COLUMN_GROUP){for(var u=e.getDisplayedLeafColumns(),c=o==="After"?u[0]:q(u),p=[],d=c;d.getParent()!==e;)d=d.getParent(),p.push(d);if(s=c,c.isSpanHeaderHeight())for(var h=p.length-1;h>=0;h--){var f=p[h];if(!f.isPadding()){s=f;break}a++}else s=q(p),s||(s=c)}return{column:s,headerRowIndex:a,headerRowIndexWithoutSpan:l}},t.prototype.getHeaderRowType=function(e){var r=this.ctrlsService.getHeaderRowContainerCtrl();if(r)return r.getRowType(e)},t.prototype.findColAtEdgeForHeaderRow=function(e,r){var o=this.columnModel.getAllDisplayedColumns(),i=o[r==="start"?0:o.length-1];if(i){var s=this.ctrlsService.getHeaderRowContainerCtrl(i.getPinned()),a=s.getRowType(e);if(a==ge.COLUMN_GROUP){var l=this.columnModel.getColumnGroupAtLevel(i,e);return{headerRowIndex:e,column:l}}return{headerRowIndex:a==null?-1:e,column:i}}},Ys([v("columnModel")],t.prototype,"columnModel",void 0),Ys([v("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Ys([x("headerPositionUtils")],t),t}(D),LC=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},MC=function(){function n(){}return n.prototype.buildColumnDefs=function(t,e,r){var o=this,i=[],s={};return t.forEach(function(a){for(var l=o.createDefFromColumn(a,e,r),u=!0,c=l,p=a.getOriginalParent(),d=null;p;){var h=null;if(p.isPadding()){p=p.getOriginalParent();continue}var f=s[p.getGroupId()];if(f){f.children.push(c),u=!1;break}if(h=o.createDefFromGroup(p),h&&(h.children=[c],s[h.groupId]=h,c=h,p=p.getOriginalParent()),p!=null&&d===p){u=!1;break}d=p}u&&i.push(c)}),i},n.prototype.createDefFromGroup=function(t){var e=No(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},n.prototype.createDefFromColumn=function(t,e,r){var o=No(t.getColDef());return o.colId=t.getColId(),o.width=t.getActualWidth(),o.rowGroup=t.isRowGroupActive(),o.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,o.pivot=t.isPivotActive(),o.pivotIndex=t.isPivotActive()?r.indexOf(t):null,o.aggFunc=t.isValueActive()?t.getAggFunc():null,o.hide=t.isVisible()?void 0:!0,o.pinned=t.isPinned()?t.getPinned():null,o.sort=t.getSort()?t.getSort():null,o.sortIndex=t.getSortIndex()!=null?t.getSortIndex():null,o},n=LC([x("columnDefFactory")],n),n}(),qs=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},IC=function(){function n(){}return n.prototype.getInitialRowClasses=function(t){var e=[];return P(t.extraCssClass)&&e.push(t.extraCssClass),e.push("ag-row"),e.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&e.push("ag-opacity-zero"),e.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&e.push("ag-row-pinned"),t.rowNode.isSelected()&&e.push("ag-row-selected"),t.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&e.push("ag-row-loading"),t.fullWidthRow&&e.push("ag-full-width-row"),t.expandable&&(e.push("ag-row-group"),e.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&e.push("ag-row-dragging"),nn(e,this.processClassesFromGridOptions(t.rowNode)),nn(e,this.preProcessRowClassRules(t.rowNode)),e.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&e.push("ag-row-first"),t.lastRowOnPage&&e.push("ag-row-last"),t.fullWidthRow&&(t.pinned==="left"&&e.push("ag-cell-last-left-pinned"),t.pinned==="right"&&e.push("ag-cell-first-right-pinned")),e},n.prototype.processClassesFromGridOptions=function(t){var e=[],r=function(l){typeof l=="string"?e.push(l):Array.isArray(l)&&l.forEach(function(u){return e.push(u)})},o=this.gridOptionsService.get("rowClass");if(o){if(typeof o=="function")return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];r(o)}var i=this.gridOptionsService.getCallback("getRowClass");if(i){var s={data:t.data,node:t,rowIndex:t.rowIndex},a=i(s);r(a)}return e},n.prototype.preProcessRowClassRules=function(t){var e=[];return this.processRowClassRules(t,function(r){e.push(r)},function(r){}),e},n.prototype.processRowClassRules=function(t,e,r){var o=this.gridOptionsService.addGridCommonParams({data:t.data,node:t,rowIndex:t.rowIndex});this.stylingService.processClassRules(void 0,this.gridOptionsService.get("rowClassRules"),o,e,r)},n.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},qs([v("stylingService")],n.prototype,"stylingService",void 0),qs([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n=qs([x("rowCssClassCalculator")],n),n}(),xC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ki=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},NC=function(n){xC(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(){var e=this;this.isAccentedSort=this.gridOptionsService.get("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",function(r){return e.isAccentedSort=r.currentValue}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.primaryColumnsSortGroups=e.gridOptionsService.isColumnsSortingCoupledToGroup()})},t.prototype.doFullSort=function(e,r){var o=function(s,a){return{currentPos:a,rowNode:s}},i=e.map(o);return i.sort(this.compareRowNodes.bind(this,r)),i.map(function(s){return s.rowNode})},t.prototype.compareRowNodes=function(e,r,o){for(var i=r.rowNode,s=o.rowNode,a=0,l=e.length;a=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},HC=function(n){GC(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.ready=!1,r.readyCallbacks=[],r}e=t,t.prototype.checkReady=function(){if(this.ready=this.gridCtrl!=null&&this.gridBodyCtrl!=null&&this.centerRowContainerCtrl!=null&&this.leftRowContainerCtrl!=null&&this.rightRowContainerCtrl!=null&&this.bottomCenterRowContainerCtrl!=null&&this.bottomLeftRowContainerCtrl!=null&&this.bottomRightRowContainerCtrl!=null&&this.topCenterRowContainerCtrl!=null&&this.topLeftRowContainerCtrl!=null&&this.topRightRowContainerCtrl!=null&&this.stickyTopCenterRowContainerCtrl!=null&&this.stickyTopLeftRowContainerCtrl!=null&&this.stickyTopRightRowContainerCtrl!=null&&this.centerHeaderRowContainerCtrl!=null&&this.leftHeaderRowContainerCtrl!=null&&this.rightHeaderRowContainerCtrl!=null&&this.fakeHScrollComp!=null&&this.fakeVScrollComp!=null&&this.gridHeaderCtrl!=null,this.ready){var r=this.createReadyParams();this.readyCallbacks.forEach(function(o){return o(r)}),this.readyCallbacks.length=0}},t.prototype.whenReady=function(r){this.ready?r(this.createReadyParams()):this.readyCallbacks.push(r)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollComp=function(r){this.fakeHScrollComp=r,this.checkReady()},t.prototype.registerFakeVScrollComp=function(r){this.fakeVScrollComp=r,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(r){this.gridHeaderCtrl=r,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(r){this.centerRowContainerCtrl=r,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(r){this.leftRowContainerCtrl=r,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(r){this.rightRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(r){this.topCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(r){this.topLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(r){this.topRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopCenterRowContainerCtrl=function(r){this.stickyTopCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(r){this.stickyTopLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(r){this.stickyTopRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(r){this.bottomCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(r){this.bottomLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(r){this.bottomRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerHeaderContainer=function(r,o){switch(o){case"left":this.leftHeaderRowContainerCtrl=r;break;case"right":this.rightHeaderRowContainerCtrl=r;break;default:this.centerHeaderRowContainerCtrl=r;break}this.checkReady()},t.prototype.registerGridBodyCtrl=function(r){this.gridBodyCtrl=r,this.checkReady()},t.prototype.registerGridCtrl=function(r){this.gridCtrl=r,this.checkReady()},t.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},t.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(r){switch(r){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}};var e;return t.NAME="ctrlsService",t=e=VC([x(e.NAME)],t),t}(D),BC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),kC=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},WC=function(n){BC(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.registry={},e}return t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var r=this.registry[e];if(r!=null)return new r},t=kC([x("ctrlsFactory")],t),t}(D),jC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),To=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ku=function(n){jC(t,n);function t(e,r){var o=n.call(this,e)||this;return o.direction=r,o.hideTimeout=null,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",bn()||Dt())},t.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=Ln(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},t.prototype.addActiveListenerToggles=function(){var e=this,r=["mouseenter","mousedown","touchstart"],o=["mouseleave","touchend"],i=this.getGui();r.forEach(function(s){return e.addManagedListener(i,s,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),o.forEach(function(s){return e.addManagedListener(i,s,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},t.prototype.onScrollVisibilityChanged=function(){var e=this;this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame(function(){return e.setScrollVisible()})},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL,function(r){r.direction===e.direction&&(e.hideTimeout!==null&&(window.clearTimeout(e.hideTimeout),e.hideTimeout=null),e.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))}),this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL_END,function(){e.hideTimeout=window.setTimeout(function(){e.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),e.hideTimeout=null},400)})},t.prototype.attemptSettingScrollPosition=function(e){var r=this,o=this.getViewport();en(function(){return We(o)},function(){return r.setScrollPosition(e)},100)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},t.prototype.onScrollCallback=function(e){this.addManagedListener(this.getViewport(),"scroll",e)},To([L("eViewport")],t.prototype,"eViewport",void 0),To([L("eContainer")],t.prototype,"eContainer",void 0),To([v("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),To([v("ctrlsService")],t.prototype,"ctrlsService",void 0),To([v("animationFrameService")],t.prototype,"animationFrameService",void 0),t}(k),UC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Po=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},zC=function(n){UC(t,n);function t(){return n.call(this,t.TEMPLATE,"horizontal")||this}return t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this);var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,g.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",r),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new _s(function(o){return e.eContainer.style.width="".concat(o,"px")})),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))},t.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gridOptionsService.get("enableRtl"),n.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom="".concat(e,"px")}},t.prototype.onScrollVisibilityChanged=function(){n.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),r=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&e,i=this.gridOptionsService.getScrollbarWidth();o&&(r+=i),Je(this.eRightSpacer,r),this.eRightSpacer.classList.toggle("ag-scroller-corner",r<=i);var s=this.columnModel.getDisplayedColumnsLeftWidth(),a=this.enableRtl&&e;a&&(s+=i),Je(this.eLeftSpacer,s),this.eLeftSpacer.classList.toggle("ag-scroller-corner",s<=i)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),r=this.invisibleScrollbar,o=this.gridOptionsService.get("suppressHorizontalScroll"),i=e&&this.gridOptionsService.getScrollbarWidth()||0,s=i===0&&r?16:i,a=o?0:s;this.addOrRemoveCssClass("ag-scrollbar-invisible",r),nr(this.getGui(),a),nr(this.eViewport,a),nr(this.eContainer,a),this.setDisplayed(e,{skipAriaHidden:!0})},t.prototype.getScrollPosition=function(){return Jr(this.getViewport(),this.enableRtl)},t.prototype.setScrollPosition=function(e){We(this.getViewport())||this.attemptSettingScrollPosition(e),Zr(this.getViewport(),e,this.enableRtl)},t.TEMPLATE=``,Ks([v("overlayService")],t.prototype,"overlayService",void 0),Ks([L("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),Ks([F],t.prototype,"postConstruct",null),t}(k),wm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Em=function(n){wm(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getFirstRow=function(){var e=0,r;return this.pinnedRowModel.getPinnedTopRowCount()?r="top":this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(r="bottom"),r===void 0?null:{rowIndex:e,rowPinned:r}},t.prototype.getLastRow=function(){var e,r=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),i=this.pinnedRowModel.getPinnedTopRowCount();return o?(r="bottom",e=o-1):this.rowModel.getRowCount()?(r=null,e=this.paginationProxy.getPageLastRow()):i&&(r="top",e=i-1),e===void 0?null:{rowIndex:e,rowPinned:r}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,r){return!e&&!r?!0:e&&!r||!e&&r?!1:e.rowIndex===r.rowIndex&&e.rowPinned==r.rowPinned},t.prototype.before=function(e,r){switch(e.rowPinned){case"top":if(r.rowPinned!=="top")return!0;break;case"bottom":if(r.rowPinned!=="bottom")return!1;break;default:if(P(r.rowPinned))return r.rowPinned!=="top";break}return e.rowIndex=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Om=function(n){_m(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createId=function(e){var r=e.rowIndex,o=e.rowPinned,i=e.column;return this.createIdFromValues({rowIndex:r,column:i,rowPinned:o})},t.prototype.createIdFromValues=function(e){var r=e.rowIndex,o=e.rowPinned,i=e.column;return"".concat(r,".").concat(o??"null",".").concat(i.getId())},t.prototype.equals=function(e,r){var o=e.column===r.column,i=e.rowPinned===r.rowPinned,s=e.rowIndex===r.rowIndex;return o&&i&&s},t=Rm([x("cellPositionUtils")],t),t}(D),Tm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Oo=function(){function n(t){this.cellValueChanges=t}return n}(),$s=function(n){Tm(t,n);function t(e,r,o,i){var s=n.call(this,e)||this;return s.initialRange=r,s.finalRange=o,s.ranges=i,s}return t}(Oo),Bu=function(){function n(t){this.actionStack=[],this.maxStackSize=t||n.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return n.prototype.pop=function(){return this.actionStack.pop()},n.prototype.push=function(t){var e=t.cellValueChanges&&t.cellValueChanges.length>0;e&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},n.prototype.clear=function(){this.actionStack=[]},n.prototype.getCurrentStackSize=function(){return this.actionStack.length},n.DEFAULT_STACK_SIZE=10,n}(),Pm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Bi=function(){return Bi=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Dm=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Am=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Lm=function(n){Fm(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.findHeader=function(e,r){var o,i,s;if(e.column instanceof se?(i="getDisplayedGroup".concat(r),o=this.columnModel[i](e.column)):(s="getDisplayedCol".concat(r),o=this.columnModel[s](e.column)),!!o){var a=e.headerRowIndex;if(this.getHeaderRowType(a)!==ge.FLOATING_FILTER){for(var l=[o];o.getParent();)o=o.getParent(),l.push(o);o=l[l.length-1-a]}var u=this.getHeaderIndexToFocus(o,a),c=u.column,p=u.headerRowIndex;return{column:c,headerRowIndex:p}}},t.prototype.getHeaderIndexToFocus=function(e,r){var o;if(e instanceof se&&this.isAnyChildSpanningHeaderHeight(e)&&e.isPadding()){var i=e;o=i.getLeafColumns()[0];for(var s=o;s!==i;)r++,s=s.getParent()}return{column:o||e,headerRowIndex:r}},t.prototype.isAnyChildSpanningHeaderHeight=function(e){return e?e.getLeafColumns().some(function(r){return r.isSpanHeaderHeight()}):!1},t.prototype.getColumnVisibleParent=function(e,r){var o=this.getHeaderRowType(r),i=o===ge.FLOATING_FILTER,s=o===ge.COLUMN,a=i?e:e.getParent(),l=r-1,u=l;if(s&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;a&&a.isPadding();)a=a.getParent(),l--;u=l,l<0&&(a=e,l=r,u=void 0)}return{column:a,headerRowIndex:l,headerRowIndexWithoutSpan:u}},t.prototype.getColumnVisibleChild=function(e,r,o){o===void 0&&(o="After");var i=this.getHeaderRowType(r),s=e,a=r+1,l=a;if(i===ge.COLUMN_GROUP){for(var u=e.getDisplayedLeafColumns(),c=o==="After"?u[0]:q(u),p=[],d=c;d.getParent()!==e;)d=d.getParent(),p.push(d);if(s=c,c.isSpanHeaderHeight())for(var h=p.length-1;h>=0;h--){var f=p[h];if(!f.isPadding()){s=f;break}a++}else s=q(p),s||(s=c)}return{column:s,headerRowIndex:a,headerRowIndexWithoutSpan:l}},t.prototype.getHeaderRowType=function(e){var r=this.ctrlsService.getHeaderRowContainerCtrl();if(r)return r.getRowType(e)},t.prototype.findColAtEdgeForHeaderRow=function(e,r){var o=this.columnModel.getAllDisplayedColumns(),i=o[r==="start"?0:o.length-1];if(i){var s=this.ctrlsService.getHeaderRowContainerCtrl(i.getPinned()),a=s.getRowType(e);if(a==ge.COLUMN_GROUP){var l=this.columnModel.getColumnGroupAtLevel(i,e);return{headerRowIndex:e,column:l}}return{headerRowIndex:a==null?-1:e,column:i}}},Ys([v("columnModel")],t.prototype,"columnModel",void 0),Ys([v("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Ys([x("headerPositionUtils")],t),t}(D),Mm=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Im=function(){function n(){}return n.prototype.buildColumnDefs=function(t,e,r){var o=this,i=[],s={};return t.forEach(function(a){for(var l=o.createDefFromColumn(a,e,r),u=!0,c=l,p=a.getOriginalParent(),d=null;p;){var h=null;if(p.isPadding()){p=p.getOriginalParent();continue}var f=s[p.getGroupId()];if(f){f.children.push(c),u=!1;break}if(h=o.createDefFromGroup(p),h&&(h.children=[c],s[h.groupId]=h,c=h,p=p.getOriginalParent()),p!=null&&d===p){u=!1;break}d=p}u&&i.push(c)}),i},n.prototype.createDefFromGroup=function(t){var e=No(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},n.prototype.createDefFromColumn=function(t,e,r){var o=No(t.getColDef());return o.colId=t.getColId(),o.width=t.getActualWidth(),o.rowGroup=t.isRowGroupActive(),o.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,o.pivot=t.isPivotActive(),o.pivotIndex=t.isPivotActive()?r.indexOf(t):null,o.aggFunc=t.isValueActive()?t.getAggFunc():null,o.hide=t.isVisible()?void 0:!0,o.pinned=t.isPinned()?t.getPinned():null,o.sort=t.getSort()?t.getSort():null,o.sortIndex=t.getSortIndex()!=null?t.getSortIndex():null,o},n=Mm([x("columnDefFactory")],n),n}(),qs=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},xm=function(){function n(){}return n.prototype.getInitialRowClasses=function(t){var e=[];return P(t.extraCssClass)&&e.push(t.extraCssClass),e.push("ag-row"),e.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&e.push("ag-opacity-zero"),e.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&e.push("ag-row-pinned"),t.rowNode.isSelected()&&e.push("ag-row-selected"),t.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&e.push("ag-row-loading"),t.fullWidthRow&&e.push("ag-full-width-row"),t.expandable&&(e.push("ag-row-group"),e.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&e.push("ag-row-dragging"),nn(e,this.processClassesFromGridOptions(t.rowNode)),nn(e,this.preProcessRowClassRules(t.rowNode)),e.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&e.push("ag-row-first"),t.lastRowOnPage&&e.push("ag-row-last"),t.fullWidthRow&&(t.pinned==="left"&&e.push("ag-cell-last-left-pinned"),t.pinned==="right"&&e.push("ag-cell-first-right-pinned")),e},n.prototype.processClassesFromGridOptions=function(t){var e=[],r=function(l){typeof l=="string"?e.push(l):Array.isArray(l)&&l.forEach(function(u){return e.push(u)})},o=this.gridOptionsService.get("rowClass");if(o){if(typeof o=="function")return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];r(o)}var i=this.gridOptionsService.getCallback("getRowClass");if(i){var s={data:t.data,node:t,rowIndex:t.rowIndex},a=i(s);r(a)}return e},n.prototype.preProcessRowClassRules=function(t){var e=[];return this.processRowClassRules(t,function(r){e.push(r)},function(r){}),e},n.prototype.processRowClassRules=function(t,e,r){var o=this.gridOptionsService.addGridCommonParams({data:t.data,node:t,rowIndex:t.rowIndex});this.stylingService.processClassRules(void 0,this.gridOptionsService.get("rowClassRules"),o,e,r)},n.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},qs([v("stylingService")],n.prototype,"stylingService",void 0),qs([v("gridOptionsService")],n.prototype,"gridOptionsService",void 0),n=qs([x("rowCssClassCalculator")],n),n}(),Nm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ki=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Gm=function(n){Nm(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(){var e=this;this.isAccentedSort=this.gridOptionsService.get("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",function(r){return e.isAccentedSort=r.currentValue}),this.addManagedPropertyListener("autoGroupColumnDef",function(){return e.primaryColumnsSortGroups=e.gridOptionsService.isColumnsSortingCoupledToGroup()})},t.prototype.doFullSort=function(e,r){var o=function(s,a){return{currentPos:a,rowNode:s}},i=e.map(o);return i.sort(this.compareRowNodes.bind(this,r)),i.map(function(s){return s.rowNode})},t.prototype.compareRowNodes=function(e,r,o){for(var i=r.rowNode,s=o.rowNode,a=0,l=e.length;a=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Bm=function(n){Vm(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r.ready=!1,r.readyCallbacks=[],r}e=t,t.prototype.checkReady=function(){if(this.ready=this.gridCtrl!=null&&this.gridBodyCtrl!=null&&this.centerRowContainerCtrl!=null&&this.leftRowContainerCtrl!=null&&this.rightRowContainerCtrl!=null&&this.bottomCenterRowContainerCtrl!=null&&this.bottomLeftRowContainerCtrl!=null&&this.bottomRightRowContainerCtrl!=null&&this.topCenterRowContainerCtrl!=null&&this.topLeftRowContainerCtrl!=null&&this.topRightRowContainerCtrl!=null&&this.stickyTopCenterRowContainerCtrl!=null&&this.stickyTopLeftRowContainerCtrl!=null&&this.stickyTopRightRowContainerCtrl!=null&&this.centerHeaderRowContainerCtrl!=null&&this.leftHeaderRowContainerCtrl!=null&&this.rightHeaderRowContainerCtrl!=null&&this.fakeHScrollComp!=null&&this.fakeVScrollComp!=null&&this.gridHeaderCtrl!=null,this.ready){var r=this.createReadyParams();this.readyCallbacks.forEach(function(o){return o(r)}),this.readyCallbacks.length=0}},t.prototype.whenReady=function(r){this.ready?r(this.createReadyParams()):this.readyCallbacks.push(r)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollComp=function(r){this.fakeHScrollComp=r,this.checkReady()},t.prototype.registerFakeVScrollComp=function(r){this.fakeVScrollComp=r,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(r){this.gridHeaderCtrl=r,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(r){this.centerRowContainerCtrl=r,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(r){this.leftRowContainerCtrl=r,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(r){this.rightRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(r){this.topCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(r){this.topLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(r){this.topRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopCenterRowContainerCtrl=function(r){this.stickyTopCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(r){this.stickyTopLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(r){this.stickyTopRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(r){this.bottomCenterRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(r){this.bottomLeftRowContainerCtrl=r,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(r){this.bottomRightRowContainerCtrl=r,this.checkReady()},t.prototype.registerHeaderContainer=function(r,o){switch(o){case"left":this.leftHeaderRowContainerCtrl=r;break;case"right":this.rightHeaderRowContainerCtrl=r;break;default:this.centerHeaderRowContainerCtrl=r;break}this.checkReady()},t.prototype.registerGridBodyCtrl=function(r){this.gridBodyCtrl=r,this.checkReady()},t.prototype.registerGridCtrl=function(r){this.gridCtrl=r,this.checkReady()},t.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},t.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(r){switch(r){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}};var e;return t.NAME="ctrlsService",t=e=Hm([x(e.NAME)],t),t}(D),km=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wm=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},jm=function(n){km(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.registry={},e}return t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var r=this.registry[e];if(r!=null)return new r},t=Wm([x("ctrlsFactory")],t),t}(D),Um=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),To=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ku=function(n){Um(t,n);function t(e,r){var o=n.call(this,e)||this;return o.direction=r,o.hideTimeout=null,o}return t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,g.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",bn()||Dt())},t.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=Ln(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},t.prototype.addActiveListenerToggles=function(){var e=this,r=["mouseenter","mousedown","touchstart"],o=["mouseleave","touchend"],i=this.getGui();r.forEach(function(s){return e.addManagedListener(i,s,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),o.forEach(function(s){return e.addManagedListener(i,s,function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},t.prototype.onScrollVisibilityChanged=function(){var e=this;this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame(function(){return e.setScrollVisible()})},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL,function(r){r.direction===e.direction&&(e.hideTimeout!==null&&(window.clearTimeout(e.hideTimeout),e.hideTimeout=null),e.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))}),this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL_END,function(){e.hideTimeout=window.setTimeout(function(){e.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),e.hideTimeout=null},400)})},t.prototype.attemptSettingScrollPosition=function(e){var r=this,o=this.getViewport();en(function(){return We(o)},function(){return r.setScrollPosition(e)},100)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},t.prototype.onScrollCallback=function(e){this.addManagedListener(this.getViewport(),"scroll",e)},To([L("eViewport")],t.prototype,"eViewport",void 0),To([L("eContainer")],t.prototype,"eContainer",void 0),To([v("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),To([v("ctrlsService")],t.prototype,"ctrlsService",void 0),To([v("animationFrameService")],t.prototype,"animationFrameService",void 0),t}(k),zm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Po=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Km=function(n){zm(t,n);function t(){return n.call(this,t.TEMPLATE,"horizontal")||this}return t.prototype.postConstruct=function(){var e=this;n.prototype.postConstruct.call(this);var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,g.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",r),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new _s(function(o){return e.eContainer.style.width="".concat(o,"px")})),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))},t.prototype.initialiseInvisibleScrollbar=function(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gridOptionsService.get("enableRtl"),n.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom="".concat(e,"px")}},t.prototype.onScrollVisibilityChanged=function(){n.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),r=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&e,i=this.gridOptionsService.getScrollbarWidth();o&&(r+=i),Ze(this.eRightSpacer,r),this.eRightSpacer.classList.toggle("ag-scroller-corner",r<=i);var s=this.columnModel.getDisplayedColumnsLeftWidth(),a=this.enableRtl&&e;a&&(s+=i),Ze(this.eLeftSpacer,s),this.eLeftSpacer.classList.toggle("ag-scroller-corner",s<=i)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),r=this.invisibleScrollbar,o=this.gridOptionsService.get("suppressHorizontalScroll"),i=e&&this.gridOptionsService.getScrollbarWidth()||0,s=i===0&&r?16:i,a=o?0:s;this.addOrRemoveCssClass("ag-scrollbar-invisible",r),nr(this.getGui(),a),nr(this.eViewport,a),nr(this.eContainer,a),this.setDisplayed(e,{skipAriaHidden:!0})},t.prototype.getScrollPosition=function(){return Zr(this.getViewport(),this.enableRtl)},t.prototype.setScrollPosition=function(e){We(this.getViewport())||this.attemptSettingScrollPosition(e),Jr(this.getViewport(),e,this.enableRtl)},t.TEMPLATE=``,Po([L("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),Po([L("eRightSpacer")],t.prototype,"eRightSpacer",void 0),Po([v("columnModel")],t.prototype,"columnModel",void 0),Po([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Po([F],t.prototype,"postConstruct",null),t}(ku),KC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qs=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$C=function(n){KC(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener("domLayout",e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout("print"),r=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=e?0:this.columnModel.getDisplayedColumnsRightWidth();r!=this.leftWidth&&(this.leftWidth=r,this.eventService.dispatchEvent({type:g.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:g.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},Qs([v("columnModel")],t.prototype,"columnModel",void 0),Qs([F],t.prototype,"postConstruct",null),t=Qs([x("pinnedWidthService")],t),t}(D),YC=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},qC=function(n){YC(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.events=[],e}return t.prototype.postConstruct=function(){this.rowModel.getType()=="clientSide"&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var r=this;if(this.clientSideRowModel==null){this.eventService.dispatchEvent(e);return}this.events.push(e);var o=function(){r.clientSideRowModel&&r.clientSideRowModel.onRowGroupOpened(),r.events.forEach(function(i){return r.eventService.dispatchEvent(i)}),r.events=[]};this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(o)),this.dispatchExpandedDebounced()},Wi([v("animationFrameService")],t.prototype,"animationFrameService",void 0),Wi([v("rowModel")],t.prototype,"rowModel",void 0),Wi([F],t.prototype,"postConstruct",null),t=Wi([x("rowNodeEventThrottle")],t),t}(D),QC={columnsMenuParams:{version:"31.1",message:"Use `columnChooserParams` instead."},suppressMenu:{version:"31.1",message:"Use `suppressHeaderMenuButton` instead."}},Yt=function(n,t){var e;return((e=t.rowModelType)!==null&&e!==void 0?e:"clientSide")==="clientSide"?{module:G.RowGroupingModule}:null},XC={enableRowGroup:Yt,rowGroup:Yt,rowGroupIndex:Yt,enablePivot:Yt,enableValue:Yt,pivot:Yt,pivotIndex:Yt,aggFunc:Yt,cellEditor:function(n){return n.cellEditor==="agRichSelect"||n.cellEditor==="agRichSelectCellEditor"?{module:G.RichSelectModule}:null},menuTabs:function(n){var t,e=["columnsMenuTab","generalMenuTab"];return!((t=n.menuTabs)===null||t===void 0)&&t.some(function(r){return e.includes(r)})?{module:G.MenuModule}:null},columnsMenuParams:{module:[G.MenuModule,G.ColumnsToolPanelModule]},columnChooserParams:{module:[G.MenuModule,G.ColumnsToolPanelModule]},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],dependencies:function(n,t){var e=t.rowSelection;return e==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"}},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],dependencies:function(n,t){var e=t.rowSelection;return e==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"}},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],dependencies:function(n,t){var e=t.rowSelection;return e==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"}},children:function(){return jr}},jr={objectName:"colDef",allProperties:of.ALL_PROPERTIES,docsUrl:"column-properties/",deprecations:QC,validations:XC},Wu=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},ju=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ji=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Xs=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;rr))return i}},n.getCoercedValue=function(e,r){var o=t.PROPERTY_COERCIONS.get(e);return o?o(r):r},n.getCoercedGridOptions=function(e){var r={};return Object.entries(e).forEach(function(o){var i=ji(o,2),s=i[0],a=i[1],l=t.getCoercedValue(s,a);r[s]=l}),r},n.prototype.updateGridOptions=function(e){var r=this,o=e.options,i=e.source,s=i===void 0?"api":i,a={id:t.changeSetId++,properties:[]},l=[];Object.entries(o).forEach(function(u){var c=ji(u,2),p=c[0],d=c[1];s==="api"&&hp[p]&&V("".concat(p," is an initial property and cannot be updated."));var h=t.getCoercedValue(p,d),f=typeof h=="object"&&s==="api",y=r.gridOptions[p];if(f||y!==h){r.gridOptions[p]=h;var m={type:p,currentValue:h,previousValue:y,changeSet:a,source:s};l.push(m)}}),this.validationService.processGridOptions(this.gridOptions),a.properties=l.map(function(u){return u.type}),l.forEach(function(u){r.gridOptions.debug&&console.log("AG Grid: Updated property ".concat(u.type," from "),u.previousValue," to ",u.currentValue),r.propertyEventService.dispatchEvent(u)})},n.prototype.addEventListener=function(e,r){this.propertyEventService.addEventListener(e,r)},n.prototype.removeEventListener=function(e,r){this.propertyEventService.removeEventListener(e,r)},n.prototype.getScrollbarWidth=function(){if(this.scrollbarWidth==null){var e=typeof this.gridOptions.scrollbarWidth=="number"&&this.gridOptions.scrollbarWidth>=0,r=e?this.gridOptions.scrollbarWidth:Qa();r!=null&&(this.scrollbarWidth=r,this.eventService.dispatchEvent({type:g.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},n.prototype.isRowModelType=function(e){return this.gridOptions.rowModelType===e||e==="clientSide"&&H(this.gridOptions.rowModelType)},n.prototype.isDomLayout=function(e){var r,o=(r=this.gridOptions.domLayout)!==null&&r!==void 0?r:"normal";return o===e},n.prototype.isRowSelection=function(){return this.gridOptions.rowSelection==="single"||this.gridOptions.rowSelection==="multiple"},n.prototype.useAsyncEvents=function(){return!this.get("suppressAsyncEvents")},n.prototype.isGetRowHeightFunction=function(){return typeof this.gridOptions.getRowHeight=="function"},n.prototype.getRowHeightForNode=function(e,r,o){if(r===void 0&&(r=!1),o==null&&(o=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(r)return{height:o,estimated:!0};var i={node:e,data:e.data},s=this.getCallback("getRowHeight")(i);if(this.isNumeric(s))return s===0&&V("The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead."),{height:Math.max(1,s),estimated:!1}}if(e.detail&&this.get("masterDetail"))return this.getMasterDetailRowHeight();var a=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o;return{height:a,estimated:!1}},n.prototype.getMasterDetailRowHeight=function(){return this.get("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},n.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||H(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var e=this.environment.refreshRowHeightVariable();return e!==-1?e:(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},n.prototype.isNumeric=function(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)},n.prototype.getDomDataKey=function(){return this.domDataKey},n.prototype.getDomData=function(e,r){var o=e[this.getDomDataKey()];return o?o[r]:void 0},n.prototype.setDomData=function(e,r,o){var i=this.getDomDataKey(),s=e[i];H(s)&&(s={},e[i]=s),s[r]=o},n.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&P(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&P(e)?e:document},n.prototype.getWindow=function(){var e=this.getDocument();return e.defaultView||window},n.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},n.prototype.getAsyncTransactionWaitMillis=function(){return P(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},n.prototype.isAnimateRows=function(){return this.get("ensureDomOrder")?!1:this.get("animateRows")},n.prototype.isGroupRowsSticky=function(){return!(this.get("suppressGroupRowsSticky")||this.get("paginateChildRows")||this.get("groupHideOpenParents")||this.isDomLayout("print"))},n.prototype.isColumnsSortingCoupledToGroup=function(){var e=this.gridOptions.autoGroupColumnDef;return!(e!=null&&e.comparator)&&!this.get("treeData")},n.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;if(typeof e=="function")return this.getCallback("groupAggFiltering");if(e===!0)return function(){return!0}},n.prototype.isGroupIncludeFooterTrueOrCallback=function(){var e=this.gridOptions.groupIncludeFooter;return e===!0||typeof e=="function"},n.prototype.getGroupIncludeFooter=function(){var e=this.gridOptions.groupIncludeFooter;return typeof e=="function"?this.getCallback("groupIncludeFooter"):e===!0?function(){return!0}:function(){return!1}},n.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.gridOptions.groupDisplayType==="multipleColumns":this.get("groupHideOpenParents")},n.prototype.isGroupUseEntireRow=function(e){return e?!1:this.gridOptions.groupDisplayType==="groupRows"},n.prototype.getGridCommonParams=function(){return{api:this.api,columnApi:this.columnApi,context:this.context}},n.prototype.addGridCommonParams=function(e){var r=e;return r.api=this.api,r.columnApi=this.columnApi,r.context=this.context,r};var t;return n.alwaysSyncGlobalEvents=new Set([g.EVENT_GRID_PRE_DESTROYED]),n.PROPERTY_COERCIONS=new Map(Xs(Xs(Xs([],ji(dt.BOOLEAN_PROPERTIES.map(function(e){return[e,t.toBoolean]})),!1),ji(dt.NUMBER_PROPERTIES.map(function(e){return[e,t.toNumber]})),!1),[["groupAggFiltering",function(e){return typeof e=="function"?e:t.toBoolean(e)}],["pageSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["autoSizePadding",t.toConstrainedNum(0,Number.MAX_VALUE)],["keepDetailRowsCount",t.toConstrainedNum(1,Number.MAX_VALUE)],["rowBuffer",t.toConstrainedNum(0,Number.MAX_VALUE)],["infiniteInitialRowCount",t.toConstrainedNum(1,Number.MAX_VALUE)],["cacheOverflowSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["cacheBlockSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["serverSideInitialRowCount",t.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelPageSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelBufferSize",t.toConstrainedNum(0,Number.MAX_VALUE)]],!1)),n.changeSetId=0,Et([v("gridOptions")],n.prototype,"gridOptions",void 0),Et([v("eventService")],n.prototype,"eventService",void 0),Et([v("environment")],n.prototype,"environment",void 0),Et([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),Et([v("eGridDiv")],n.prototype,"eGridDiv",void 0),Et([v("validationService")],n.prototype,"validationService",void 0),Et([v("gridApi")],n.prototype,"api",void 0),Et([F],n.prototype,"init",null),Et([Se],n.prototype,"destroy",null),n=t=Et([x("gridOptionsService")],n),n}(),rS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),oS=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},iS=function(n){rS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getLocaleTextFunc=function(){var e=this.gridOptionsService.getCallback("getLocaleText");if(e)return function(o,i,s){var a={key:o,defaultValue:i,variableValues:s};return e(a)};var r=this.gridOptionsService.get("localeText");return function(o,i,s){var a=r&&r[o];if(a&&s&&s.length)for(var l=0;!(l>=s.length);){var u=a.indexOf("${variable}");if(u===-1)break;a=a.replace("${variable}",s[l++])}return a??i}},t=oS([x("localeService")],t),t}(D),nS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),sS=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},aS=function(n){nS(t,n);function t(){return n.call(this,t.TEMPLATE,"vertical")||this}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.createManagedBean(new au(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this),this.addManagedListener(this.eventService,g.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onRowContainerHeightChanged.bind(this))},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),r=this.invisibleScrollbar,o=e&&this.gridOptionsService.getScrollbarWidth()||0,i=o===0&&r?16:o;this.addOrRemoveCssClass("ag-scrollbar-invisible",r),Je(this.getGui(),i),Je(this.eViewport,i),Je(this.eContainer,i),this.setDisplayed(e,{skipAriaHidden:!0})},t.prototype.onRowContainerHeightChanged=function(){var e=this.ctrlsService,r=e.getGridBodyCtrl(),o=r.getBodyViewportElement(),i=this.getScrollPosition(),s=o.scrollTop;i!=s&&this.setScrollPosition(s,!0)},t.prototype.getScrollPosition=function(){return this.getViewport().scrollTop},t.prototype.setScrollPosition=function(e,r){!r&&!We(this.getViewport())&&this.attemptSettingScrollPosition(e),this.getViewport().scrollTop=e},t.TEMPLATE=``,Po([L("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),Po([L("eRightSpacer")],t.prototype,"eRightSpacer",void 0),Po([v("columnModel")],t.prototype,"columnModel",void 0),Po([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Po([F],t.prototype,"postConstruct",null),t}(ku),$m=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qs=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ym=function(n){$m(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,g.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener("domLayout",e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout("print"),r=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=e?0:this.columnModel.getDisplayedColumnsRightWidth();r!=this.leftWidth&&(this.leftWidth=r,this.eventService.dispatchEvent({type:g.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:g.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},Qs([v("columnModel")],t.prototype,"columnModel",void 0),Qs([F],t.prototype,"postConstruct",null),t=Qs([x("pinnedWidthService")],t),t}(D),qm=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Qm=function(n){qm(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.events=[],e}return t.prototype.postConstruct=function(){this.rowModel.getType()=="clientSide"&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var r=this;if(this.clientSideRowModel==null){this.eventService.dispatchEvent(e);return}this.events.push(e);var o=function(){r.clientSideRowModel&&r.clientSideRowModel.onRowGroupOpened(),r.events.forEach(function(i){return r.eventService.dispatchEvent(i)}),r.events=[]};this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(o)),this.dispatchExpandedDebounced()},Wi([v("animationFrameService")],t.prototype,"animationFrameService",void 0),Wi([v("rowModel")],t.prototype,"rowModel",void 0),Wi([F],t.prototype,"postConstruct",null),t=Wi([x("rowNodeEventThrottle")],t),t}(D),Xm={columnsMenuParams:{version:"31.1",message:"Use `columnChooserParams` instead."},suppressMenu:{version:"31.1",message:"Use `suppressHeaderMenuButton` instead."}},Yt=function(n,t){var e;return((e=t.rowModelType)!==null&&e!==void 0?e:"clientSide")==="clientSide"?{module:G.RowGroupingModule}:null},Zm={enableRowGroup:Yt,rowGroup:Yt,rowGroupIndex:Yt,enablePivot:Yt,enableValue:Yt,pivot:Yt,pivotIndex:Yt,aggFunc:Yt,cellEditor:function(n){return n.cellEditor==="agRichSelect"||n.cellEditor==="agRichSelectCellEditor"?{module:G.RichSelectModule}:null},menuTabs:function(n){var t,e=["columnsMenuTab","generalMenuTab"];return!((t=n.menuTabs)===null||t===void 0)&&t.some(function(r){return e.includes(r)})?{module:G.MenuModule}:null},columnsMenuParams:{module:[G.MenuModule,G.ColumnsToolPanelModule]},columnChooserParams:{module:[G.MenuModule,G.ColumnsToolPanelModule]},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],dependencies:function(n,t){var e=t.rowSelection;return e==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"}},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],dependencies:function(n,t){var e=t.rowSelection;return e==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"}},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],dependencies:function(n,t){var e=t.rowSelection;return e==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"}},children:function(){return jr}},jr={objectName:"colDef",allProperties:nf.ALL_PROPERTIES,docsUrl:"column-properties/",deprecations:Xm,validations:Zm},Wu=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},ju=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ji=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Xs=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;rr))return i}},n.getCoercedValue=function(e,r){var o=t.PROPERTY_COERCIONS.get(e);return o?o(r):r},n.getCoercedGridOptions=function(e){var r={};return Object.entries(e).forEach(function(o){var i=ji(o,2),s=i[0],a=i[1],l=t.getCoercedValue(s,a);r[s]=l}),r},n.prototype.updateGridOptions=function(e){var r=this,o=e.options,i=e.source,s=i===void 0?"api":i,a={id:t.changeSetId++,properties:[]},l=[];Object.entries(o).forEach(function(u){var c=ji(u,2),p=c[0],d=c[1];s==="api"&&fp[p]&&V("".concat(p," is an initial property and cannot be updated."));var h=t.getCoercedValue(p,d),f=typeof h=="object"&&s==="api",y=r.gridOptions[p];if(f||y!==h){r.gridOptions[p]=h;var C={type:p,currentValue:h,previousValue:y,changeSet:a,source:s};l.push(C)}}),this.validationService.processGridOptions(this.gridOptions),a.properties=l.map(function(u){return u.type}),l.forEach(function(u){r.gridOptions.debug&&console.log("AG Grid: Updated property ".concat(u.type," from "),u.previousValue," to ",u.currentValue),r.propertyEventService.dispatchEvent(u)})},n.prototype.addEventListener=function(e,r){this.propertyEventService.addEventListener(e,r)},n.prototype.removeEventListener=function(e,r){this.propertyEventService.removeEventListener(e,r)},n.prototype.getScrollbarWidth=function(){if(this.scrollbarWidth==null){var e=typeof this.gridOptions.scrollbarWidth=="number"&&this.gridOptions.scrollbarWidth>=0,r=e?this.gridOptions.scrollbarWidth:Qa();r!=null&&(this.scrollbarWidth=r,this.eventService.dispatchEvent({type:g.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},n.prototype.isRowModelType=function(e){return this.gridOptions.rowModelType===e||e==="clientSide"&&H(this.gridOptions.rowModelType)},n.prototype.isDomLayout=function(e){var r,o=(r=this.gridOptions.domLayout)!==null&&r!==void 0?r:"normal";return o===e},n.prototype.isRowSelection=function(){return this.gridOptions.rowSelection==="single"||this.gridOptions.rowSelection==="multiple"},n.prototype.useAsyncEvents=function(){return!this.get("suppressAsyncEvents")},n.prototype.isGetRowHeightFunction=function(){return typeof this.gridOptions.getRowHeight=="function"},n.prototype.getRowHeightForNode=function(e,r,o){if(r===void 0&&(r=!1),o==null&&(o=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(r)return{height:o,estimated:!0};var i={node:e,data:e.data},s=this.getCallback("getRowHeight")(i);if(this.isNumeric(s))return s===0&&V("The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead."),{height:Math.max(1,s),estimated:!1}}if(e.detail&&this.get("masterDetail"))return this.getMasterDetailRowHeight();var a=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o;return{height:a,estimated:!1}},n.prototype.getMasterDetailRowHeight=function(){return this.get("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},n.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||H(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var e=this.environment.refreshRowHeightVariable();return e!==-1?e:(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},n.prototype.isNumeric=function(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)},n.prototype.getDomDataKey=function(){return this.domDataKey},n.prototype.getDomData=function(e,r){var o=e[this.getDomDataKey()];return o?o[r]:void 0},n.prototype.setDomData=function(e,r,o){var i=this.getDomDataKey(),s=e[i];H(s)&&(s={},e[i]=s),s[r]=o},n.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&P(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&P(e)?e:document},n.prototype.getWindow=function(){var e=this.getDocument();return e.defaultView||window},n.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},n.prototype.getAsyncTransactionWaitMillis=function(){return P(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},n.prototype.isAnimateRows=function(){return this.get("ensureDomOrder")?!1:this.get("animateRows")},n.prototype.isGroupRowsSticky=function(){return!(this.get("suppressGroupRowsSticky")||this.get("paginateChildRows")||this.get("groupHideOpenParents")||this.isDomLayout("print"))},n.prototype.isColumnsSortingCoupledToGroup=function(){var e=this.gridOptions.autoGroupColumnDef;return!(e!=null&&e.comparator)&&!this.get("treeData")},n.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;if(typeof e=="function")return this.getCallback("groupAggFiltering");if(e===!0)return function(){return!0}},n.prototype.isGroupIncludeFooterTrueOrCallback=function(){var e=this.gridOptions.groupIncludeFooter;return e===!0||typeof e=="function"},n.prototype.getGroupIncludeFooter=function(){var e=this.gridOptions.groupIncludeFooter;return typeof e=="function"?this.getCallback("groupIncludeFooter"):e===!0?function(){return!0}:function(){return!1}},n.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.gridOptions.groupDisplayType==="multipleColumns":this.get("groupHideOpenParents")},n.prototype.isGroupUseEntireRow=function(e){return e?!1:this.gridOptions.groupDisplayType==="groupRows"},n.prototype.getGridCommonParams=function(){return{api:this.api,columnApi:this.columnApi,context:this.context}},n.prototype.addGridCommonParams=function(e){var r=e;return r.api=this.api,r.columnApi=this.columnApi,r.context=this.context,r};var t;return n.alwaysSyncGlobalEvents=new Set([g.EVENT_GRID_PRE_DESTROYED]),n.PROPERTY_COERCIONS=new Map(Xs(Xs(Xs([],ji(dt.BOOLEAN_PROPERTIES.map(function(e){return[e,t.toBoolean]})),!1),ji(dt.NUMBER_PROPERTIES.map(function(e){return[e,t.toNumber]})),!1),[["groupAggFiltering",function(e){return typeof e=="function"?e:t.toBoolean(e)}],["pageSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["autoSizePadding",t.toConstrainedNum(0,Number.MAX_VALUE)],["keepDetailRowsCount",t.toConstrainedNum(1,Number.MAX_VALUE)],["rowBuffer",t.toConstrainedNum(0,Number.MAX_VALUE)],["infiniteInitialRowCount",t.toConstrainedNum(1,Number.MAX_VALUE)],["cacheOverflowSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["cacheBlockSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["serverSideInitialRowCount",t.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelPageSize",t.toConstrainedNum(1,Number.MAX_VALUE)],["viewportRowModelBufferSize",t.toConstrainedNum(0,Number.MAX_VALUE)]],!1)),n.changeSetId=0,Et([v("gridOptions")],n.prototype,"gridOptions",void 0),Et([v("eventService")],n.prototype,"eventService",void 0),Et([v("environment")],n.prototype,"environment",void 0),Et([v("frameworkOverrides")],n.prototype,"frameworkOverrides",void 0),Et([v("eGridDiv")],n.prototype,"eGridDiv",void 0),Et([v("validationService")],n.prototype,"validationService",void 0),Et([v("gridApi")],n.prototype,"api",void 0),Et([F],n.prototype,"init",null),Et([we],n.prototype,"destroy",null),n=t=Et([x("gridOptionsService")],n),n}(),oS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),iS=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},nS=function(n){oS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getLocaleTextFunc=function(){var e=this.gridOptionsService.getCallback("getLocaleText");if(e)return function(o,i,s){var a={key:o,defaultValue:i,variableValues:s};return e(a)};var r=this.gridOptionsService.get("localeText");return function(o,i,s){var a=r&&r[o];if(a&&s&&s.length)for(var l=0;!(l>=s.length);){var u=a.indexOf("${variable}");if(u===-1)break;a=a.replace("${variable}",s[l++])}return a??i}},t=iS([x("localeService")],t),t}(D),sS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),aS=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},lS=function(n){sS(t,n);function t(){return n.call(this,t.TEMPLATE,"vertical")||this}return t.prototype.postConstruct=function(){n.prototype.postConstruct.call(this),this.createManagedBean(new au(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this),this.addManagedListener(this.eventService,g.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onRowContainerHeightChanged.bind(this))},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),r=this.invisibleScrollbar,o=e&&this.gridOptionsService.getScrollbarWidth()||0,i=o===0&&r?16:o;this.addOrRemoveCssClass("ag-scrollbar-invisible",r),Ze(this.getGui(),i),Ze(this.eViewport,i),Ze(this.eContainer,i),this.setDisplayed(e,{skipAriaHidden:!0})},t.prototype.onRowContainerHeightChanged=function(){var e=this.ctrlsService,r=e.getGridBodyCtrl(),o=r.getBodyViewportElement(),i=this.getScrollPosition(),s=o.scrollTop;i!=s&&this.setScrollPosition(s,!0)},t.prototype.getScrollPosition=function(){return this.getViewport().scrollTop},t.prototype.setScrollPosition=function(e,r){!r&&!We(this.getViewport())&&this.attemptSettingScrollPosition(e),this.getViewport().scrollTop=e},t.TEMPLATE=``,sS([F],t.prototype,"postConstruct",null),t}(ku),lS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fe=function(){return Fe=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_t=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Do=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0&&!this.gridOptionsService.get("suppressFieldDotNotation");i=wr(s,e,a)}else this.initWaitForRowData(r);if(i!=null){var l=_t((o=Object.entries(this.dataTypeMatchers).find(function(c){var p=_t(c,2);p[0];var d=p[1];return d(i)}))!==null&&o!==void 0?o:["object"],1),u=l[0];return u}}},t.prototype.getInitialData=function(){var e=this.gridOptionsService.get("rowData");if(e!=null&&e.length)return e[0];if(this.initialData)return this.initialData;var r=this.rowModel.getRootNode().allLeafChildren;return r!=null&&r.length?r[0].data:null},t.prototype.initWaitForRowData=function(e){var r=this;if(this.columnStateUpdatesPendingInference[e]=new Set,!this.isWaitingForRowData){this.isWaitingForRowData=!0;var o=this.isColumnTypeOverrideInDataTypeDefinitions;o&&this.columnModel.queueResizeOperations();var i=this.addManagedListener(this.eventService,g.EVENT_ROW_DATA_UPDATE_STARTED,function(s){var a=s.firstRowData;if(a){i==null||i(),r.isWaitingForRowData=!1,r.processColumnsPendingInference(a,o),r.columnStateUpdatesPendingInference={},o&&r.columnModel.processResizeOperations();var l={type:g.EVENT_DATA_TYPES_INFERRED};r.eventService.dispatchEvent(l)}})}},t.prototype.isPendingInference=function(){return this.isWaitingForRowData},t.prototype.processColumnsPendingInference=function(e,r){var o=this;this.initialData=e;var i=[];this.columnStateUpdateListenerDestroyFuncs.forEach(function(l){return l()}),this.columnStateUpdateListenerDestroyFuncs=[];var s={},a={};Object.entries(this.columnStateUpdatesPendingInference).forEach(function(l){var u=_t(l,2),c=u[0],p=u[1],d=o.columnModel.getGridColumn(c);if(d){var h=d.getColDef();if(o.columnModel.resetColumnDefIntoColumn(d,"cellDataTypeInferred")){var f=d.getColDef();if(r&&f.type&&f.type!==h.type){var y=o.getUpdatedColumnState(d,p);y.rowGroup&&y.rowGroupIndex==null&&(s[c]=y),y.pivot&&y.pivotIndex==null&&(a[c]=y),i.push(y)}}}}),r&&i.push.apply(i,Do([],_t(this.columnModel.generateColumnStateForRowGroupAndPivotIndexes(s,a)),!1)),i.length&&this.columnModel.applyColumnState({state:i},"cellDataTypeInferred"),this.initialData=null},t.prototype.getUpdatedColumnState=function(e,r){var o=this.columnModel.getColumnStateFromColDef(e);return r.forEach(function(i){delete o[i],i==="rowGroup"?delete o.rowGroupIndex:i==="pivot"&&delete o.pivotIndex}),o},t.prototype.checkObjectValueHandlers=function(e){var r=this.dataTypeDefinitions.object,o=e.object;this.hasObjectValueParser=r.valueParser!==o.valueParser,this.hasObjectValueFormatter=r.valueFormatter!==o.valueFormatter},t.prototype.convertColumnTypes=function(e){var r=[];if(e instanceof Array){var o=e.some(function(i){return typeof i!="string"});o?console.warn("if colDef.type is supplied an array it should be of type 'string[]'"):r=e}else typeof e=="string"?r=e.split(","):console.warn("colDef.type should be of type 'string' | 'string[]'");return r},t.prototype.getDateStringTypeDefinition=function(e){var r;return e?(r=this.getDataTypeDefinition(e))!==null&&r!==void 0?r:this.dataTypeDefinitions.dateString:this.dataTypeDefinitions.dateString},t.prototype.getDateParserFunction=function(e){return this.getDateStringTypeDefinition(e).dateParser},t.prototype.getDateFormatterFunction=function(e){return this.getDateStringTypeDefinition(e).dateFormatter},t.prototype.getDataTypeDefinition=function(e){var r=e.getColDef();if(r.cellDataType)return this.dataTypeDefinitions[r.cellDataType]},t.prototype.getBaseDataType=function(e){var r;return(r=this.getDataTypeDefinition(e))===null||r===void 0?void 0:r.baseDataType},t.prototype.checkType=function(e,r){var o;if(r==null)return!0;var i=(o=this.getDataTypeDefinition(e))===null||o===void 0?void 0:o.dataTypeMatcher;return i?i(r):!0},t.prototype.validateColDef=function(e){e.cellDataType==="object"&&(e.valueFormatter===this.dataTypeDefinitions.object.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&V('Cell data type is "object" but no value formatter has been provided. Please either provide an object data type definition with a value formatter, or set "colDef.valueFormatter"'),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&V('Cell data type is "object" but no value parser has been provided. Please either provide an object data type definition with a value parser, or set "colDef.valueParser"'))},t.prototype.setColDefPropertiesForBaseDataType=function(e,r,o){var i=this,s=function(p,d,h){var f=p.getColDef().valueFormatter;return f===r.groupSafeValueFormatter&&(f=r.valueFormatter),i.valueFormatterService.formatValue(p,d,h,f)},a=X.__isRegistered(G.SetFilterModule,this.context.getGridId()),l=this.localeService.getLocaleTextFunc(),u=function(p){var d=e.filterParams;e.filterParams=typeof d=="object"?Fe(Fe({},d),p):p};switch(r.baseDataType){case"number":{e.cellEditor="agNumberCellEditor",a&&u({comparator:function(p,d){var h=p==null?0:parseInt(p),f=d==null?0:parseInt(d);return h===f?0:h>f?1:-1}});break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.suppressKeyboardEvent=function(p){return!!p.colDef.editable&&p.event.key===_.SPACE},u(a?{valueFormatter:function(p){return P(p.value)?l(String(p.value),p.value?"True":"False"):l("blanks","(Blanks)")}}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:function(p,d){return d},numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:function(p,d){return d===!1},numberOfInputs:0}]});break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=function(p){return s(p.column,p.node,p.value)},a&&u({valueFormatter:function(p){var d=s(p.column,p.node,p.value);return P(d)?d:l("blanks","(Blanks)")},treeList:!0,treeListFormatter:function(p,d){if(d===1&&p!=null){var h=Ku[Number(p)-1];return l(h,zu[h])}return p??l("blanks","(Blanks)")}});break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=function(p){return s(p.column,p.node,p.value)};var c=r.dateParser;u(a?{valueFormatter:function(p){var d=s(p.column,p.node,p.value);return P(d)?d:l("blanks","(Blanks)")},treeList:!0,treeListPathGetter:function(p){var d=c(p??void 0);return d?[String(d.getFullYear()),String(d.getMonth()+1),String(d.getDate())]:null},treeListFormatter:function(p,d){if(d===1&&p!=null){var h=Ku[Number(p)-1];return l(h,zu[h])}return p??l("blanks","(Blanks)")}}:{comparator:function(p,d){var h=c(d);return d==null||hp?1:0}});break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=function(p,d){var h=i.columnModel.getPrimaryColumn(o),f=h==null?void 0:h.getColDef();if(!h||!f)return 0;var y=p==null?"":s(h,null,p),m=d==null?"":s(h,null,d);return y===m?0:y>m?1:-1},e.keyCreator=function(p){return s(p.column,p.node,p.value)},a?u({valueFormatter:function(p){var d=s(p.column,p.node,p.value);return P(d)?d:l("blanks","(Blanks)")}}):e.filterValueGetter=function(p){return s(p.column,p.node,i.valueService.getValue(p.column,p.node))};break}}},t.prototype.getDefaultDataTypes=function(){var e=function(o){return!!o.match("^\\d{4}-\\d{2}-\\d{2}$")},r=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:function(o){var i,s;return((s=(i=o.newValue)===null||i===void 0?void 0:i.trim)===null||s===void 0?void 0:s.call(i))===""?null:Number(o.newValue)},valueFormatter:function(o){return o.value==null?"":typeof o.value!="number"||isNaN(o.value)?r("invalidNumber","Invalid Number"):String(o.value)},dataTypeMatcher:function(o){return typeof o=="number"}},text:{baseDataType:"text",valueParser:function(o){return o.newValue===""?null:zr(o.newValue)},dataTypeMatcher:function(o){return typeof o=="string"}},boolean:{baseDataType:"boolean",valueParser:function(o){var i,s;return o.newValue==null?o.newValue:((s=(i=o.newValue)===null||i===void 0?void 0:i.trim)===null||s===void 0?void 0:s.call(i))===""?null:String(o.newValue).toLowerCase()==="true"},valueFormatter:function(o){return o.value==null?"":String(o.value)},dataTypeMatcher:function(o){return typeof o=="boolean"}},date:{baseDataType:"date",valueParser:function(o){return _e(o.newValue==null?null:String(o.newValue))},valueFormatter:function(o){var i;return o.value==null?"":!(o.value instanceof Date)||isNaN(o.value.getTime())?r("invalidDate","Invalid Date"):(i=Xe(o.value,!1))!==null&&i!==void 0?i:""},dataTypeMatcher:function(o){return o instanceof Date}},dateString:{baseDataType:"dateString",dateParser:function(o){var i;return(i=_e(o))!==null&&i!==void 0?i:void 0},dateFormatter:function(o){var i;return(i=Xe(o??null,!1))!==null&&i!==void 0?i:void 0},valueParser:function(o){return e(String(o.newValue))?o.newValue:null},valueFormatter:function(o){return e(String(o.value))?o.value:""},dataTypeMatcher:function(o){return typeof o=="string"&&e(o)}},object:{baseDataType:"object",valueParser:function(){return null},valueFormatter:function(o){var i;return(i=zr(o.value))!==null&&i!==void 0?i:""}}}},yr([v("rowModel")],t.prototype,"rowModel",void 0),yr([v("columnModel")],t.prototype,"columnModel",void 0),yr([v("columnUtils")],t.prototype,"columnUtils",void 0),yr([v("valueService")],t.prototype,"valueService",void 0),yr([v("valueFormatterService")],t.prototype,"valueFormatterService",void 0),yr([F],t.prototype,"init",null),t=yr([x("dataTypeService")],t),t}(D),cS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),$u=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pS=function(n){cS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.parseValue=function(e,r,o,i){var s=e.getColDef(),a=this.gridOptionsService.addGridCommonParams({node:r,data:r==null?void 0:r.data,oldValue:i,newValue:o,colDef:s,column:e}),l=s.valueParser;return P(l)?typeof l=="function"?l(a):this.expressionService.evaluate(l,a):o},$u([v("expressionService")],t.prototype,"expressionService",void 0),t=$u([x("valueParserService")],t),t}(D),dS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ao=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},hS=function(n){dS(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.waitingForColumns=!1,e}return t.prototype.postConstruct=function(){var e=this;this.addManagedPropertyListener("columnDefs",function(r){return e.setColumnDefs(r)})},t.prototype.start=function(){var e=this;this.ctrlsService.whenReady(function(){var r=e.gridOptionsService.get("columnDefs");r?e.setColumnsAndData(r):e.waitingForColumns=!0,e.gridReady()})},t.prototype.setColumnsAndData=function(e){this.columnModel.setColumnDefs(e??[],"gridInitializing"),this.rowModel.start()},t.prototype.gridReady=function(){var e=this;this.dispatchGridReadyEvent();var r=X.__isRegistered(G.EnterpriseCoreModule,this.context.getGridId()),o=new Gs("AG Grid",function(){return e.gridOptionsService.get("debug")});o.log("initialised successfully, enterprise = ".concat(r))},t.prototype.dispatchGridReadyEvent=function(){var e={type:g.EVENT_GRID_READY};this.eventService.dispatchEvent(e)},t.prototype.setColumnDefs=function(e){var r=this.gridOptionsService.get("columnDefs");if(r){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(r);return}this.columnModel.setColumnDefs(r,_r(e.source))}},Ao([v("ctrlsService")],t.prototype,"ctrlsService",void 0),Ao([v("columnModel")],t.prototype,"columnModel",void 0),Ao([v("rowModel")],t.prototype,"rowModel",void 0),Ao([F],t.prototype,"postConstruct",null),t=Ao([x("syncService")],t),t}(D),fS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Js=function(){return Js=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},vS=function(n){fS(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.manuallyDisplayed=!1,e}return t.prototype.postConstruct=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_ROW_DATA_UPDATED,function(){return e.onRowDataUpdated()}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return e.onNewColumnsLoaded()})},t.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e,(!this.gridOptionsService.get("columnDefs")||this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData"))&&this.showLoadingOverlay()},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.get("suppressLoadingOverlay")){var e={},r=this.userComponentFactory.getLoadingOverlayCompDetails(e);this.showOverlay(r,"ag-overlay-loading-wrapper","loadingOverlayComponentParams")}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.get("suppressNoRowsOverlay")){var e={},r=this.userComponentFactory.getNoRowsOverlayCompDetails(e);this.showOverlay(r,"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams")}},t.prototype.showOverlay=function(e,r,o){var i=this,s=e.newAgStackInstance(),a=this.addManagedPropertyListener(o,function(l){var u=l.currentValue;s.then(function(c){c.refresh&&c.refresh(i.gridOptionsService.addGridCommonParams(Js({},u??{})))})});this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.overlayWrapperComp.showOverlay(s,r,a)},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.overlayWrapperComp.hideOverlay()},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),r=this.gridOptionsService.get("suppressNoRowsOverlay");e&&!r?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){this.columnModel.isReady()&&!this.paginationProxy.isEmpty()&&!this.manuallyDisplayed&&this.hideOverlay()},bo([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),bo([v("paginationProxy")],t.prototype,"paginationProxy",void 0),bo([v("columnModel")],t.prototype,"columnModel",void 0),bo([F],t.prototype,"postConstruct",null),t=bo([x("overlayService")],t),t}(D),gS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qt=function(){return qt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},yS=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},mS=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},CS=function(n){gS(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.suppressEvents=!0,e.queuedUpdateSources=new Set,e.dispatchStateUpdateEventDebounced=He(function(){return e.dispatchQueuedStateUpdateEvents()},0),e}return t.prototype.postConstruct=function(){var e=this,r;this.isClientSideRowModel=this.rowModel.getType()==="clientSide",this.cachedState=(r=this.gridOptionsService.get("initialState"))!==null&&r!==void 0?r:{},this.ctrlsService.whenReady(function(){return e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnGridReady()})});var o=this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(a){var l=a.source;l==="gridInitializing"&&(o==null||o(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnColumnsInitialised()}))}),i=this.addManagedListener(this.eventService,g.EVENT_ROW_COUNT_READY,function(){i==null||i(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnRowCountReady()})}),s=this.addManagedListener(this.eventService,g.EVENT_FIRST_DATA_RENDERED,function(){s==null||s(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnFirstDataRendered()})})},t.prototype.getState=function(){return this.cachedState},t.prototype.setupStateOnGridReady=function(){var e=this;this.updateCachedState("sideBar",this.getSideBarState()),this.addManagedListener(this.eventService,g.EVENT_TOOL_PANEL_VISIBLE_CHANGED,function(){return e.updateCachedState("sideBar",e.getSideBarState())}),this.addManagedListener(this.eventService,g.EVENT_SIDE_BAR_UPDATED,function(){return e.updateCachedState("sideBar",e.getSideBarState())})},t.prototype.setupStateOnColumnsInitialised=function(){var e=this,r,o=(r=this.gridOptionsService.get("initialState"))!==null&&r!==void 0?r:{};this.setColumnState(o),this.setColumnGroupState(o),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState()),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VALUE_CHANGED,function(){return e.updateColumnState(["aggregation"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_MOVED,function(){return e.updateColumnState(["columnOrder"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PINNED,function(){return e.updateColumnState(["columnPinning"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_RESIZED,function(){return e.updateColumnState(["columnSizing"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,function(){return e.updateColumnState(["columnVisibility"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.updateColumnState(["pivot"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.updateColumnState(["pivot"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateColumnState(["rowGroup"])}),this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,function(){return e.updateColumnState(["sort"])}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_GROUP_OPENED,function(){return e.updateCachedState("columnGroup",e.getColumnGroupState())})},t.prototype.setupStateOnRowCountReady=function(){var e=this,r,o=(r=this.gridOptionsService.get("initialState"))!==null&&r!==void 0?r:{},i=o.filter,s=o.rowGroupExpansion,a=o.rowSelection,l=o.pagination,u=this.gridOptionsService.get("advancedFilterModel");(i||u)&&this.setFilterState(i,u),s&&this.setRowGroupExpansionState(s),a&&this.setRowSelectionState(a),l&&this.setPaginationState(l),this.updateCachedState("filter",this.getFilterState()),this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowSelection",this.getRowSelectionState()),this.updateCachedState("pagination",this.getPaginationState()),this.addManagedListener(this.eventService,g.EVENT_FILTER_CHANGED,function(){return e.updateCachedState("filter",e.getFilterState())}),this.addManagedListener(this.eventService,g.EVENT_ROW_GROUP_OPENED,function(){return e.updateCachedState("rowGroupExpansion",e.getRowGroupExpansionState())}),this.addManagedListener(this.eventService,g.EVENT_EXPAND_COLLAPSE_ALL,function(){return e.updateCachedState("rowGroupExpansion",e.getRowGroupExpansionState())}),this.addManagedListener(this.eventService,g.EVENT_SELECTION_CHANGED,function(){return e.updateCachedState("rowSelection",e.getRowSelectionState())}),this.addManagedListener(this.eventService,g.EVENT_PAGINATION_CHANGED,function(c){(c.newPage||c.newPageSize)&&e.updateCachedState("pagination",e.getPaginationState())})},t.prototype.setupStateOnFirstDataRendered=function(){var e=this,r,o=(r=this.gridOptionsService.get("initialState"))!==null&&r!==void 0?r:{},i=o.scroll,s=o.rangeSelection,a=o.focusedCell,l=o.columnOrder;a&&this.setFocusedCellState(a),s&&this.setRangeSelectionState(s),i&&this.setScrollState(i),this.setColumnPivotState(!!(l!=null&&l.orderedColIds)),this.updateCachedState("sideBar",this.getSideBarState()),this.updateCachedState("focusedCell",this.getFocusedCellState()),this.updateCachedState("rangeSelection",this.getRangeSelectionState()),this.updateCachedState("scroll",this.getScrollState()),this.addManagedListener(this.eventService,g.EVENT_CELL_FOCUSED,function(){return e.updateCachedState("focusedCell",e.getFocusedCellState())}),this.addManagedListener(this.eventService,g.EVENT_RANGE_SELECTION_CHANGED,function(u){u.finished&&e.updateCachedState("rangeSelection",e.getRangeSelectionState())}),this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL_END,function(){return e.updateCachedState("scroll",e.getScrollState())})},t.prototype.getColumnState=function(){for(var e=this.columnModel.isPivotMode(),r=[],o=[],i=[],s=[],a=[],l=[],u=[],c=[],p=[],d=this.columnModel.getColumnState(),h=0;h=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},mr=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Fo=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0&&p.forEach(function(h){V(h)})},t.prototype.checkForWarning=function(e,r,o){if(typeof r=="function")return r(o,this.gridOptions);var i=Object.entries(r),s=i.find(function(c){var p=mr(c,2),d=p[0],h=p[1],f=o[d];return!h.includes(f)});if(!s)return null;var a=mr(s,2),l=a[0],u=a[1];return u.length>1?"'".concat(String(e),"' requires '").concat(l,"' to be one of [").concat(u.join(", "),"]."):"'".concat(String(e),"' requires '").concat(l,"' to be ").concat(u[0],".")},t.prototype.checkProperties=function(e,r,o,i,s){var a=["__ob__","__v_skip","__metadata__"],l=sl(Object.getOwnPropertyNames(e),Fo(Fo(Fo([],mr(a),!1),mr(r),!1),mr(o),!1),o);if(ye(l,function(c,p){V("invalid ".concat(i," property '").concat(c,"' did you mean any of these: ").concat(p.slice(0,8).join(", ")))}),Object.keys(l).length>0&&s){var u=this.getFrameworkOverrides().getDocLink(s);V("to see all the valid ".concat(i," properties please check: ").concat(u))}},Zs([v("gridOptions")],t.prototype,"gridOptions",void 0),Zs([F],t.prototype,"init",null),t=Zs([x("validationService")],t),t}(D),ES=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_S=function(n){ES(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.syncEventListeners=new Map,e.asyncEventListeners=new Map,e.syncGlobalEventListeners=new Set,e.asyncGlobalEventListeners=new Set,e}return t.prototype.postConstruct=function(){this.frameworkEventWrappingService=new tn(this.getFrameworkOverrides())},t.prototype.addEventListener=function(e,r){var o=this.frameworkEventWrappingService.wrap(r),i=this.gridOptionsService.useAsyncEvents(),s=i?this.asyncEventListeners:this.syncEventListeners;s.has(e)||s.set(e,new Set),s.get(e).add(o),this.eventService.addEventListener(e,o,i)},t.prototype.addGlobalListener=function(e){var r=this.frameworkEventWrappingService.wrapGlobal(e),o=this.gridOptionsService.useAsyncEvents(),i=o?this.asyncGlobalEventListeners:this.syncGlobalEventListeners;i.add(r),this.eventService.addGlobalListener(r,o)},t.prototype.removeEventListener=function(e,r){var o,i=this.frameworkEventWrappingService.unwrap(r),s=this.asyncEventListeners.get(e),a=!!(s!=null&&s.delete(i));a||(o=this.asyncEventListeners.get(e))===null||o===void 0||o.delete(i),this.eventService.removeEventListener(e,i,a)},t.prototype.removeGlobalListener=function(e){var r=this.frameworkEventWrappingService.unwrapGlobal(e),o=this.asyncGlobalEventListeners.delete(r);o||this.syncGlobalEventListeners.delete(r),this.eventService.removeGlobalListener(r,o)},t.prototype.destroyEventListeners=function(e,r){var o=this;e.forEach(function(i,s){i.forEach(function(a){return o.eventService.removeEventListener(s,a,r)}),i.clear()}),e.clear()},t.prototype.destroyGlobalListeners=function(e,r){var o=this;e.forEach(function(i){return o.eventService.removeGlobalListener(i,r)}),e.clear()},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.destroyEventListeners(this.syncEventListeners,!1),this.destroyEventListeners(this.asyncEventListeners,!0),this.destroyGlobalListeners(this.syncGlobalEventListeners,!1),this.destroyGlobalListeners(this.asyncGlobalEventListeners,!0)},Yu([F],t.prototype,"postConstruct",null),t=Yu([x("apiEventService")],t),t}(D),RS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ui=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},OS=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},TS=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r')||this;return e.hasEmptyOption=!1,e.handlePageSizeItemSelected=function(){if(e.selectPageSizeComp){var r=e.selectPageSizeComp.getValue();if(r){var o=Number(r);isNaN(o)||o<1||o===e.paginationProxy.getPageSize()||(e.paginationProxy.setPageSize(o,"pageSizeSelector"),e.hasEmptyOption&&e.toggleSelectDisplay(!0),e.selectPageSizeComp.getFocusableElement().focus())}}},e}return t.prototype.init=function(){var e=this;this.addManagedPropertyListener("paginationPageSizeSelector",function(){e.onPageSizeSelectorValuesChange()}),this.addManagedListener(this.eventService,g.EVENT_PAGINATION_CHANGED,function(r){return e.handlePaginationChanged(r)})},t.prototype.handlePaginationChanged=function(e){if(!(!this.selectPageSizeComp||!(e!=null&&e.newPageSize))){var r=this.paginationProxy.getPageSize();this.getPageSizeSelectorValues().includes(r)?this.selectPageSizeComp.setValue(r.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}},t.prototype.toggleSelectDisplay=function(e){this.selectPageSizeComp&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp&&this.appendChild(this.selectPageSizeComp))},t.prototype.reset=function(){de(this.getGui()),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0)},t.prototype.onPageSizeSelectorValuesChange=function(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()},t.prototype.shouldShowPageSizeSelector=function(){return this.gridOptionsService.get("pagination")&&!this.gridOptionsService.get("suppressPaginationPanel")&&!this.gridOptionsService.get("paginationAutoPageSize")&&this.gridOptionsService.get("paginationPageSizeSelector")!==!1},t.prototype.reloadPageSizesSelector=function(){var e=this,r=this.getPageSizeSelectorValues(),o=this.paginationProxy.getPageSize(),i=!o||!r.includes(o);i&&(r.unshift(""),V(`The paginationPageSize grid option is set to a value that is not in the list of page size options. +
`,aS([F],t.prototype,"postConstruct",null),t}(ku),uS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Le=function(){return Le=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},_t=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Do=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0&&!this.gridOptionsService.get("suppressFieldDotNotation");i=wr(s,e,a)}else this.initWaitForRowData(r);if(i!=null){var l=_t((o=Object.entries(this.dataTypeMatchers).find(function(c){var p=_t(c,2);p[0];var d=p[1];return d(i)}))!==null&&o!==void 0?o:["object"],1),u=l[0];return u}}},t.prototype.getInitialData=function(){var e=this.gridOptionsService.get("rowData");if(e!=null&&e.length)return e[0];if(this.initialData)return this.initialData;var r=this.rowModel.getRootNode().allLeafChildren;return r!=null&&r.length?r[0].data:null},t.prototype.initWaitForRowData=function(e){var r=this;if(this.columnStateUpdatesPendingInference[e]=new Set,!this.isWaitingForRowData){this.isWaitingForRowData=!0;var o=this.isColumnTypeOverrideInDataTypeDefinitions;o&&this.columnModel.queueResizeOperations();var i=this.addManagedListener(this.eventService,g.EVENT_ROW_DATA_UPDATE_STARTED,function(s){var a=s.firstRowData;if(a){i==null||i(),r.isWaitingForRowData=!1,r.processColumnsPendingInference(a,o),r.columnStateUpdatesPendingInference={},o&&r.columnModel.processResizeOperations();var l={type:g.EVENT_DATA_TYPES_INFERRED};r.eventService.dispatchEvent(l)}})}},t.prototype.isPendingInference=function(){return this.isWaitingForRowData},t.prototype.processColumnsPendingInference=function(e,r){var o=this;this.initialData=e;var i=[];this.columnStateUpdateListenerDestroyFuncs.forEach(function(l){return l()}),this.columnStateUpdateListenerDestroyFuncs=[];var s={},a={};Object.entries(this.columnStateUpdatesPendingInference).forEach(function(l){var u=_t(l,2),c=u[0],p=u[1],d=o.columnModel.getGridColumn(c);if(d){var h=d.getColDef();if(o.columnModel.resetColumnDefIntoColumn(d,"cellDataTypeInferred")){var f=d.getColDef();if(r&&f.type&&f.type!==h.type){var y=o.getUpdatedColumnState(d,p);y.rowGroup&&y.rowGroupIndex==null&&(s[c]=y),y.pivot&&y.pivotIndex==null&&(a[c]=y),i.push(y)}}}}),r&&i.push.apply(i,Do([],_t(this.columnModel.generateColumnStateForRowGroupAndPivotIndexes(s,a)),!1)),i.length&&this.columnModel.applyColumnState({state:i},"cellDataTypeInferred"),this.initialData=null},t.prototype.getUpdatedColumnState=function(e,r){var o=this.columnModel.getColumnStateFromColDef(e);return r.forEach(function(i){delete o[i],i==="rowGroup"?delete o.rowGroupIndex:i==="pivot"&&delete o.pivotIndex}),o},t.prototype.checkObjectValueHandlers=function(e){var r=this.dataTypeDefinitions.object,o=e.object;this.hasObjectValueParser=r.valueParser!==o.valueParser,this.hasObjectValueFormatter=r.valueFormatter!==o.valueFormatter},t.prototype.convertColumnTypes=function(e){var r=[];if(e instanceof Array){var o=e.some(function(i){return typeof i!="string"});o?console.warn("if colDef.type is supplied an array it should be of type 'string[]'"):r=e}else typeof e=="string"?r=e.split(","):console.warn("colDef.type should be of type 'string' | 'string[]'");return r},t.prototype.getDateStringTypeDefinition=function(e){var r;return e?(r=this.getDataTypeDefinition(e))!==null&&r!==void 0?r:this.dataTypeDefinitions.dateString:this.dataTypeDefinitions.dateString},t.prototype.getDateParserFunction=function(e){return this.getDateStringTypeDefinition(e).dateParser},t.prototype.getDateFormatterFunction=function(e){return this.getDateStringTypeDefinition(e).dateFormatter},t.prototype.getDataTypeDefinition=function(e){var r=e.getColDef();if(r.cellDataType)return this.dataTypeDefinitions[r.cellDataType]},t.prototype.getBaseDataType=function(e){var r;return(r=this.getDataTypeDefinition(e))===null||r===void 0?void 0:r.baseDataType},t.prototype.checkType=function(e,r){var o;if(r==null)return!0;var i=(o=this.getDataTypeDefinition(e))===null||o===void 0?void 0:o.dataTypeMatcher;return i?i(r):!0},t.prototype.validateColDef=function(e){e.cellDataType==="object"&&(e.valueFormatter===this.dataTypeDefinitions.object.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&V('Cell data type is "object" but no value formatter has been provided. Please either provide an object data type definition with a value formatter, or set "colDef.valueFormatter"'),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&V('Cell data type is "object" but no value parser has been provided. Please either provide an object data type definition with a value parser, or set "colDef.valueParser"'))},t.prototype.setColDefPropertiesForBaseDataType=function(e,r,o){var i=this,s=function(p,d,h){var f=p.getColDef().valueFormatter;return f===r.groupSafeValueFormatter&&(f=r.valueFormatter),i.valueFormatterService.formatValue(p,d,h,f)},a=X.__isRegistered(G.SetFilterModule,this.context.getGridId()),l=this.localeService.getLocaleTextFunc(),u=function(p){var d=e.filterParams;e.filterParams=typeof d=="object"?Le(Le({},d),p):p};switch(r.baseDataType){case"number":{e.cellEditor="agNumberCellEditor",a&&u({comparator:function(p,d){var h=p==null?0:parseInt(p),f=d==null?0:parseInt(d);return h===f?0:h>f?1:-1}});break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.suppressKeyboardEvent=function(p){return!!p.colDef.editable&&p.event.key===_.SPACE},u(a?{valueFormatter:function(p){return P(p.value)?l(String(p.value),p.value?"True":"False"):l("blanks","(Blanks)")}}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:function(p,d){return d},numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:function(p,d){return d===!1},numberOfInputs:0}]});break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=function(p){return s(p.column,p.node,p.value)},a&&u({valueFormatter:function(p){var d=s(p.column,p.node,p.value);return P(d)?d:l("blanks","(Blanks)")},treeList:!0,treeListFormatter:function(p,d){if(d===1&&p!=null){var h=Ku[Number(p)-1];return l(h,zu[h])}return p??l("blanks","(Blanks)")}});break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=function(p){return s(p.column,p.node,p.value)};var c=r.dateParser;u(a?{valueFormatter:function(p){var d=s(p.column,p.node,p.value);return P(d)?d:l("blanks","(Blanks)")},treeList:!0,treeListPathGetter:function(p){var d=c(p??void 0);return d?[String(d.getFullYear()),String(d.getMonth()+1),String(d.getDate())]:null},treeListFormatter:function(p,d){if(d===1&&p!=null){var h=Ku[Number(p)-1];return l(h,zu[h])}return p??l("blanks","(Blanks)")}}:{comparator:function(p,d){var h=c(d);return d==null||hp?1:0}});break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=function(p,d){var h=i.columnModel.getPrimaryColumn(o),f=h==null?void 0:h.getColDef();if(!h||!f)return 0;var y=p==null?"":s(h,null,p),C=d==null?"":s(h,null,d);return y===C?0:y>C?1:-1},e.keyCreator=function(p){return s(p.column,p.node,p.value)},a?u({valueFormatter:function(p){var d=s(p.column,p.node,p.value);return P(d)?d:l("blanks","(Blanks)")}}):e.filterValueGetter=function(p){return s(p.column,p.node,i.valueService.getValue(p.column,p.node))};break}}},t.prototype.getDefaultDataTypes=function(){var e=function(o){return!!o.match("^\\d{4}-\\d{2}-\\d{2}$")},r=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:function(o){var i,s;return((s=(i=o.newValue)===null||i===void 0?void 0:i.trim)===null||s===void 0?void 0:s.call(i))===""?null:Number(o.newValue)},valueFormatter:function(o){return o.value==null?"":typeof o.value!="number"||isNaN(o.value)?r("invalidNumber","Invalid Number"):String(o.value)},dataTypeMatcher:function(o){return typeof o=="number"}},text:{baseDataType:"text",valueParser:function(o){return o.newValue===""?null:zr(o.newValue)},dataTypeMatcher:function(o){return typeof o=="string"}},boolean:{baseDataType:"boolean",valueParser:function(o){var i,s;return o.newValue==null?o.newValue:((s=(i=o.newValue)===null||i===void 0?void 0:i.trim)===null||s===void 0?void 0:s.call(i))===""?null:String(o.newValue).toLowerCase()==="true"},valueFormatter:function(o){return o.value==null?"":String(o.value)},dataTypeMatcher:function(o){return typeof o=="boolean"}},date:{baseDataType:"date",valueParser:function(o){return Re(o.newValue==null?null:String(o.newValue))},valueFormatter:function(o){var i;return o.value==null?"":!(o.value instanceof Date)||isNaN(o.value.getTime())?r("invalidDate","Invalid Date"):(i=Xe(o.value,!1))!==null&&i!==void 0?i:""},dataTypeMatcher:function(o){return o instanceof Date}},dateString:{baseDataType:"dateString",dateParser:function(o){var i;return(i=Re(o))!==null&&i!==void 0?i:void 0},dateFormatter:function(o){var i;return(i=Xe(o??null,!1))!==null&&i!==void 0?i:void 0},valueParser:function(o){return e(String(o.newValue))?o.newValue:null},valueFormatter:function(o){return e(String(o.value))?o.value:""},dataTypeMatcher:function(o){return typeof o=="string"&&e(o)}},object:{baseDataType:"object",valueParser:function(){return null},valueFormatter:function(o){var i;return(i=zr(o.value))!==null&&i!==void 0?i:""}}}},yr([v("rowModel")],t.prototype,"rowModel",void 0),yr([v("columnModel")],t.prototype,"columnModel",void 0),yr([v("columnUtils")],t.prototype,"columnUtils",void 0),yr([v("valueService")],t.prototype,"valueService",void 0),yr([v("valueFormatterService")],t.prototype,"valueFormatterService",void 0),yr([F],t.prototype,"init",null),t=yr([x("dataTypeService")],t),t}(D),pS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),$u=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dS=function(n){pS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.parseValue=function(e,r,o,i){var s=e.getColDef(),a=this.gridOptionsService.addGridCommonParams({node:r,data:r==null?void 0:r.data,oldValue:i,newValue:o,colDef:s,column:e}),l=s.valueParser;return P(l)?typeof l=="function"?l(a):this.expressionService.evaluate(l,a):o},$u([v("expressionService")],t.prototype,"expressionService",void 0),t=$u([x("valueParserService")],t),t}(D),hS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ao=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},fS=function(n){hS(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.waitingForColumns=!1,e}return t.prototype.postConstruct=function(){var e=this;this.addManagedPropertyListener("columnDefs",function(r){return e.setColumnDefs(r)})},t.prototype.start=function(){var e=this;this.ctrlsService.whenReady(function(){var r=e.gridOptionsService.get("columnDefs");r?e.setColumnsAndData(r):e.waitingForColumns=!0,e.gridReady()})},t.prototype.setColumnsAndData=function(e){this.columnModel.setColumnDefs(e??[],"gridInitializing"),this.rowModel.start()},t.prototype.gridReady=function(){var e=this;this.dispatchGridReadyEvent();var r=X.__isRegistered(G.EnterpriseCoreModule,this.context.getGridId()),o=new Gs("AG Grid",function(){return e.gridOptionsService.get("debug")});o.log("initialised successfully, enterprise = ".concat(r))},t.prototype.dispatchGridReadyEvent=function(){var e={type:g.EVENT_GRID_READY};this.eventService.dispatchEvent(e)},t.prototype.setColumnDefs=function(e){var r=this.gridOptionsService.get("columnDefs");if(r){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(r);return}this.columnModel.setColumnDefs(r,_r(e.source))}},Ao([v("ctrlsService")],t.prototype,"ctrlsService",void 0),Ao([v("columnModel")],t.prototype,"columnModel",void 0),Ao([v("rowModel")],t.prototype,"rowModel",void 0),Ao([F],t.prototype,"postConstruct",null),t=Ao([x("syncService")],t),t}(D),vS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zs=function(){return Zs=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},gS=function(n){vS(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.manuallyDisplayed=!1,e}return t.prototype.postConstruct=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_ROW_DATA_UPDATED,function(){return e.onRowDataUpdated()}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return e.onNewColumnsLoaded()})},t.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e,(!this.gridOptionsService.get("columnDefs")||this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData"))&&this.showLoadingOverlay()},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.get("suppressLoadingOverlay")){var e={},r=this.userComponentFactory.getLoadingOverlayCompDetails(e);this.showOverlay(r,"ag-overlay-loading-wrapper","loadingOverlayComponentParams")}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.get("suppressNoRowsOverlay")){var e={},r=this.userComponentFactory.getNoRowsOverlayCompDetails(e);this.showOverlay(r,"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams")}},t.prototype.showOverlay=function(e,r,o){var i=this,s=e.newAgStackInstance(),a=this.addManagedPropertyListener(o,function(l){var u=l.currentValue;s.then(function(c){c.refresh&&c.refresh(i.gridOptionsService.addGridCommonParams(Zs({},u??{})))})});this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.overlayWrapperComp.showOverlay(s,r,a)},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.overlayWrapperComp.hideOverlay()},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),r=this.gridOptionsService.get("suppressNoRowsOverlay");e&&!r?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){this.columnModel.isReady()&&!this.paginationProxy.isEmpty()&&!this.manuallyDisplayed&&this.hideOverlay()},bo([v("userComponentFactory")],t.prototype,"userComponentFactory",void 0),bo([v("paginationProxy")],t.prototype,"paginationProxy",void 0),bo([v("columnModel")],t.prototype,"columnModel",void 0),bo([F],t.prototype,"postConstruct",null),t=bo([x("overlayService")],t),t}(D),yS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qt=function(){return qt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},CS=function(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},mS=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},SS=function(n){yS(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.suppressEvents=!0,e.queuedUpdateSources=new Set,e.dispatchStateUpdateEventDebounced=He(function(){return e.dispatchQueuedStateUpdateEvents()},0),e}return t.prototype.postConstruct=function(){var e=this,r;this.isClientSideRowModel=this.rowModel.getType()==="clientSide",this.cachedState=(r=this.gridOptionsService.get("initialState"))!==null&&r!==void 0?r:{},this.ctrlsService.whenReady(function(){return e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnGridReady()})});var o=this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(a){var l=a.source;l==="gridInitializing"&&(o==null||o(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnColumnsInitialised()}))}),i=this.addManagedListener(this.eventService,g.EVENT_ROW_COUNT_READY,function(){i==null||i(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnRowCountReady()})}),s=this.addManagedListener(this.eventService,g.EVENT_FIRST_DATA_RENDERED,function(){s==null||s(),e.suppressEventsAndDispatchInitEvent(function(){return e.setupStateOnFirstDataRendered()})})},t.prototype.getState=function(){return this.cachedState},t.prototype.setupStateOnGridReady=function(){var e=this;this.updateCachedState("sideBar",this.getSideBarState()),this.addManagedListener(this.eventService,g.EVENT_TOOL_PANEL_VISIBLE_CHANGED,function(){return e.updateCachedState("sideBar",e.getSideBarState())}),this.addManagedListener(this.eventService,g.EVENT_SIDE_BAR_UPDATED,function(){return e.updateCachedState("sideBar",e.getSideBarState())})},t.prototype.setupStateOnColumnsInitialised=function(){var e=this,r,o=(r=this.gridOptionsService.get("initialState"))!==null&&r!==void 0?r:{};this.setColumnState(o),this.setColumnGroupState(o),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState()),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VALUE_CHANGED,function(){return e.updateColumnState(["aggregation"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_MOVED,function(){return e.updateColumnState(["columnOrder"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PINNED,function(){return e.updateColumnState(["columnPinning"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_RESIZED,function(){return e.updateColumnState(["columnSizing"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_VISIBLE,function(){return e.updateColumnState(["columnVisibility"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.updateColumnState(["pivot"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.updateColumnState(["pivot"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateColumnState(["rowGroup"])}),this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,function(){return e.updateColumnState(["sort"])}),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,function(){return e.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"])}),this.addManagedListener(this.eventService,g.EVENT_COLUMN_GROUP_OPENED,function(){return e.updateCachedState("columnGroup",e.getColumnGroupState())})},t.prototype.setupStateOnRowCountReady=function(){var e=this,r,o=(r=this.gridOptionsService.get("initialState"))!==null&&r!==void 0?r:{},i=o.filter,s=o.rowGroupExpansion,a=o.rowSelection,l=o.pagination,u=this.gridOptionsService.get("advancedFilterModel");(i||u)&&this.setFilterState(i,u),s&&this.setRowGroupExpansionState(s),a&&this.setRowSelectionState(a),l&&this.setPaginationState(l),this.updateCachedState("filter",this.getFilterState()),this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowSelection",this.getRowSelectionState()),this.updateCachedState("pagination",this.getPaginationState()),this.addManagedListener(this.eventService,g.EVENT_FILTER_CHANGED,function(){return e.updateCachedState("filter",e.getFilterState())}),this.addManagedListener(this.eventService,g.EVENT_ROW_GROUP_OPENED,function(){return e.updateCachedState("rowGroupExpansion",e.getRowGroupExpansionState())}),this.addManagedListener(this.eventService,g.EVENT_EXPAND_COLLAPSE_ALL,function(){return e.updateCachedState("rowGroupExpansion",e.getRowGroupExpansionState())}),this.addManagedListener(this.eventService,g.EVENT_SELECTION_CHANGED,function(){return e.updateCachedState("rowSelection",e.getRowSelectionState())}),this.addManagedListener(this.eventService,g.EVENT_PAGINATION_CHANGED,function(c){(c.newPage||c.newPageSize)&&e.updateCachedState("pagination",e.getPaginationState())})},t.prototype.setupStateOnFirstDataRendered=function(){var e=this,r,o=(r=this.gridOptionsService.get("initialState"))!==null&&r!==void 0?r:{},i=o.scroll,s=o.rangeSelection,a=o.focusedCell,l=o.columnOrder;a&&this.setFocusedCellState(a),s&&this.setRangeSelectionState(s),i&&this.setScrollState(i),this.setColumnPivotState(!!(l!=null&&l.orderedColIds)),this.updateCachedState("sideBar",this.getSideBarState()),this.updateCachedState("focusedCell",this.getFocusedCellState()),this.updateCachedState("rangeSelection",this.getRangeSelectionState()),this.updateCachedState("scroll",this.getScrollState()),this.addManagedListener(this.eventService,g.EVENT_CELL_FOCUSED,function(){return e.updateCachedState("focusedCell",e.getFocusedCellState())}),this.addManagedListener(this.eventService,g.EVENT_RANGE_SELECTION_CHANGED,function(u){u.finished&&e.updateCachedState("rangeSelection",e.getRangeSelectionState())}),this.addManagedListener(this.eventService,g.EVENT_BODY_SCROLL_END,function(){return e.updateCachedState("scroll",e.getScrollState())})},t.prototype.getColumnState=function(){for(var e=this.columnModel.isPivotMode(),r=[],o=[],i=[],s=[],a=[],l=[],u=[],c=[],p=[],d=this.columnModel.getColumnState(),h=0;h=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Cr=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Fo=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0&&p.forEach(function(h){V(h)})},t.prototype.checkForWarning=function(e,r,o){if(typeof r=="function")return r(o,this.gridOptions);var i=Object.entries(r),s=i.find(function(c){var p=Cr(c,2),d=p[0],h=p[1],f=o[d];return!h.includes(f)});if(!s)return null;var a=Cr(s,2),l=a[0],u=a[1];return u.length>1?"'".concat(String(e),"' requires '").concat(l,"' to be one of [").concat(u.join(", "),"]."):"'".concat(String(e),"' requires '").concat(l,"' to be ").concat(u[0],".")},t.prototype.checkProperties=function(e,r,o,i,s){var a=["__ob__","__v_skip","__metadata__"],l=sl(Object.getOwnPropertyNames(e),Fo(Fo(Fo([],Cr(a),!1),Cr(r),!1),Cr(o),!1),o);if(ye(l,function(c,p){V("invalid ".concat(i," property '").concat(c,"' did you mean any of these: ").concat(p.slice(0,8).join(", ")))}),Object.keys(l).length>0&&s){var u=this.getFrameworkOverrides().getDocLink(s);V("to see all the valid ".concat(i," properties please check: ").concat(u))}},Js([v("gridOptions")],t.prototype,"gridOptions",void 0),Js([F],t.prototype,"init",null),t=Js([x("validationService")],t),t}(D),_S=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yu=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},RS=function(n){_S(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.syncEventListeners=new Map,e.asyncEventListeners=new Map,e.syncGlobalEventListeners=new Set,e.asyncGlobalEventListeners=new Set,e}return t.prototype.postConstruct=function(){this.frameworkEventWrappingService=new tn(this.getFrameworkOverrides())},t.prototype.addEventListener=function(e,r){var o=this.frameworkEventWrappingService.wrap(r),i=this.gridOptionsService.useAsyncEvents(),s=i?this.asyncEventListeners:this.syncEventListeners;s.has(e)||s.set(e,new Set),s.get(e).add(o),this.eventService.addEventListener(e,o,i)},t.prototype.addGlobalListener=function(e){var r=this.frameworkEventWrappingService.wrapGlobal(e),o=this.gridOptionsService.useAsyncEvents(),i=o?this.asyncGlobalEventListeners:this.syncGlobalEventListeners;i.add(r),this.eventService.addGlobalListener(r,o)},t.prototype.removeEventListener=function(e,r){var o,i=this.frameworkEventWrappingService.unwrap(r),s=this.asyncEventListeners.get(e),a=!!(s!=null&&s.delete(i));a||(o=this.asyncEventListeners.get(e))===null||o===void 0||o.delete(i),this.eventService.removeEventListener(e,i,a)},t.prototype.removeGlobalListener=function(e){var r=this.frameworkEventWrappingService.unwrapGlobal(e),o=this.asyncGlobalEventListeners.delete(r);o||this.syncGlobalEventListeners.delete(r),this.eventService.removeGlobalListener(r,o)},t.prototype.destroyEventListeners=function(e,r){var o=this;e.forEach(function(i,s){i.forEach(function(a){return o.eventService.removeEventListener(s,a,r)}),i.clear()}),e.clear()},t.prototype.destroyGlobalListeners=function(e,r){var o=this;e.forEach(function(i){return o.eventService.removeGlobalListener(i,r)}),e.clear()},t.prototype.destroy=function(){n.prototype.destroy.call(this),this.destroyEventListeners(this.syncEventListeners,!1),this.destroyEventListeners(this.asyncEventListeners,!0),this.destroyGlobalListeners(this.syncGlobalEventListeners,!1),this.destroyGlobalListeners(this.asyncGlobalEventListeners,!0)},Yu([F],t.prototype,"postConstruct",null),t=Yu([x("apiEventService")],t),t}(D),OS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ui=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},TS=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},PS=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r')||this;return e.hasEmptyOption=!1,e.handlePageSizeItemSelected=function(){if(e.selectPageSizeComp){var r=e.selectPageSizeComp.getValue();if(r){var o=Number(r);isNaN(o)||o<1||o===e.paginationProxy.getPageSize()||(e.paginationProxy.setPageSize(o,"pageSizeSelector"),e.hasEmptyOption&&e.toggleSelectDisplay(!0),e.selectPageSizeComp.getFocusableElement().focus())}}},e}return t.prototype.init=function(){var e=this;this.addManagedPropertyListener("paginationPageSizeSelector",function(){e.onPageSizeSelectorValuesChange()}),this.addManagedListener(this.eventService,g.EVENT_PAGINATION_CHANGED,function(r){return e.handlePaginationChanged(r)})},t.prototype.handlePaginationChanged=function(e){if(!(!this.selectPageSizeComp||!(e!=null&&e.newPageSize))){var r=this.paginationProxy.getPageSize();this.getPageSizeSelectorValues().includes(r)?this.selectPageSizeComp.setValue(r.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}},t.prototype.toggleSelectDisplay=function(e){this.selectPageSizeComp&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp&&this.appendChild(this.selectPageSizeComp))},t.prototype.reset=function(){de(this.getGui()),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0)},t.prototype.onPageSizeSelectorValuesChange=function(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()},t.prototype.shouldShowPageSizeSelector=function(){return this.gridOptionsService.get("pagination")&&!this.gridOptionsService.get("suppressPaginationPanel")&&!this.gridOptionsService.get("paginationAutoPageSize")&&this.gridOptionsService.get("paginationPageSizeSelector")!==!1},t.prototype.reloadPageSizesSelector=function(){var e=this,r=this.getPageSizeSelectorValues(),o=this.paginationProxy.getPageSize(),i=!o||!r.includes(o);i&&(r.unshift(""),V(`The paginationPageSize grid option is set to a value that is not in the list of page size options. Please make sure that the paginationPageSize grid option is set to one of the values in the - paginationPageSizeSelector array, or set the paginationPageSizeSelector to false to hide the page size selector.`)),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0);var s=this.localeService.getLocaleTextFunc(),a=s("pageSizeSelectorLabel","Page Size:"),l=r.map(function(c){return{value:String(c),text:String(c)}}),u=s("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new ei).addOptions(l).setValue(String(i?"":o)).setAriaLabel(u).setLabel(a).onValueChange(function(){return e.handlePageSizeItemSelected()}),this.hasEmptyOption=i},t.prototype.getPageSizeSelectorValues=function(){var e=[20,50,100],r=this.gridOptionsService.get("paginationPageSizeSelector");return!Array.isArray(r)||!this.validateValues(r)?e:TS([],OS(r),!1).sort(function(o,i){return o-i})},t.prototype.validateValues=function(e){if(!e.length)return V(`The paginationPageSizeSelector grid option is an empty array. This is most likely a mistake. + paginationPageSizeSelector array, or set the paginationPageSizeSelector to false to hide the page size selector.`)),this.selectPageSizeComp&&(this.destroyBean(this.selectPageSizeComp),this.selectPageSizeComp=void 0);var s=this.localeService.getLocaleTextFunc(),a=s("pageSizeSelectorLabel","Page Size:"),l=r.map(function(c){return{value:String(c),text:String(c)}}),u=s("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new ei).addOptions(l).setValue(String(i?"":o)).setAriaLabel(u).setLabel(a).onValueChange(function(){return e.handlePageSizeItemSelected()}),this.hasEmptyOption=i},t.prototype.getPageSizeSelectorValues=function(){var e=[20,50,100],r=this.gridOptionsService.get("paginationPageSizeSelector");return!Array.isArray(r)||!this.validateValues(r)?e:PS([],TS(r),!1).sort(function(o,i){return o-i})},t.prototype.validateValues=function(e){if(!e.length)return V(`The paginationPageSizeSelector grid option is an empty array. This is most likely a mistake. If you want to hide the page size selector, please set the paginationPageSizeSelector to false.`),!1;for(var r=0;r0;if(!i)return V(`The paginationPageSizeSelector grid option contains a non-numeric value. Please make sure that all values in the paginationPageSizeSelector array are numbers.`),!1;if(!s)return V(`The paginationPageSizeSelector grid option contains a negative number or zero. - Please make sure that all values in the paginationPageSizeSelector array are positive.`),!1}return!0},t.prototype.destroy=function(){this.toggleSelectDisplay(!1),n.prototype.destroy.call(this)},Ui([v("localeService")],t.prototype,"localeService",void 0),Ui([v("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Ui([v("paginationProxy")],t.prototype,"paginationProxy",void 0),Ui([F],t.prototype,"init",null),t}(k),DS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ea=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},AS=function(n){DS(t,n);function t(){var e=n.call(this)||this;return e.descriptionContainer=null,e.announceValue=He(e.announceValue.bind(e),200),e}return t.prototype.postConstruct=function(){var e=this.gridOptionsService.getDocument(),r=this.descriptionContainer=e.createElement("div");r.classList.add("ag-aria-description-container"),dn(r,"polite"),Va(r,"additions text"),Ga(r,!0),this.eGridDiv.appendChild(r)},t.prototype.announceValue=function(e){var r=this;this.descriptionContainer&&(this.descriptionContainer.textContent="",setTimeout(function(){r.descriptionContainer.textContent=e},50))},t.prototype.destroy=function(){n.prototype.destroy.call(this);var e=this.descriptionContainer;e&&(de(e),e.parentElement&&e.parentElement.removeChild(e)),this.descriptionContainer=null,this.eGridDiv=null},ea([v("eGridDiv")],t.prototype,"eGridDiv",void 0),ea([F],t.prototype,"postConstruct",null),t=ea([x("ariaAnnouncementService")],t),t}(D),qu=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Qu=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},bS=function(n){AS(t,n);function t(){var e=n.call(this)||this;return e.descriptionContainer=null,e.announceValue=He(e.announceValue.bind(e),200),e}return t.prototype.postConstruct=function(){var e=this.gridOptionsService.getDocument(),r=this.descriptionContainer=e.createElement("div");r.classList.add("ag-aria-description-container"),dn(r,"polite"),Va(r,"additions text"),Ga(r,!0),this.eGridDiv.appendChild(r)},t.prototype.announceValue=function(e){var r=this;this.descriptionContainer&&(this.descriptionContainer.textContent="",setTimeout(function(){r.descriptionContainer.textContent=e},50))},t.prototype.destroy=function(){n.prototype.destroy.call(this);var e=this.descriptionContainer;e&&(de(e),e.parentElement&&e.parentElement.removeChild(e)),this.descriptionContainer=null,this.eGridDiv=null},ea([v("eGridDiv")],t.prototype,"eGridDiv",void 0),ea([F],t.prototype,"postConstruct",null),t=ea([x("ariaAnnouncementService")],t),t}(D),qu=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Qu=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r"u"?{}:global;Ur.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement,Ur.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement,Ur.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement,Ur.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement,Ur.Node=typeof Node>"u"?{}:Node,Ur.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var Lo=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Mo=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0;if(r&&this.selectionService.setNodesSelected({newValue:!1,nodes:t,suppressFinishActions:!0,source:e}),this.selectionService.updateGroupsFromChildrenSelections(e),r){var o={type:g.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(o)}},n.prototype.executeAdd=function(t,e){var r=this,o,i=t.add,s=t.addIndex;if(!j.missingOrEmpty(i)){var a=i.map(function(y){return r.createNode(y,r.rootNode,n.TOP_LEVEL)});if(typeof s=="number"&&s>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=s,p=this.gridOptionsService.get("treeData");if(p&&s>0&&u>0){for(var d=0;d=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Me=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Ie=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0;)o=o.childrenAfterSort[0];return o.rowIndex},t.prototype.getRowBounds=function(e){if(j.missing(this.rowsToDisplay))return null;var r=this.rowsToDisplay[e];return r?{rowTop:r.rowTop,rowHeight:r.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:z.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var r=this.gridOptionsService.isAnimateRows(),o=e.columns.length===0||e.columns.some(function(s){return s.isPrimary()}),i=o?z.FILTER:z.FILTER_AGGREGATES;this.refreshModel({step:i,keepRenderedRows:!0,animate:r})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:z.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return"clientSide"},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:z.PIVOT}):this.refreshModel({step:z.AGGREGATE})},t.prototype.createChangePath=function(e){var r=j.missingOrEmpty(e),o=new Ti(!1,this.rootNode);return(r||this.gridOptionsService.get("treeData"))&&o.setInactive(),o},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.get("suppressModelUpdateAfterUpdateTransaction")||e.rowNodeTransactions==null)return!1;var r=e.rowNodeTransactions.filter(function(i){return i.add!=null&&i.add.length>0||i.remove!=null&&i.remove.length>0}),o=r==null||r.length==0;return o},t.prototype.buildRefreshModelParams=function(e){var r=z.EVERYTHING,o={everything:z.EVERYTHING,group:z.EVERYTHING,filter:z.FILTER,map:z.MAP,aggregate:z.AGGREGATE,sort:z.SORT,pivot:z.PIVOT};if(j.exists(e)&&(r=o[e]),j.missing(r)){console.error("AG Grid: invalid step ".concat(e,", available steps are ").concat(Object.keys(o).join(", ")));return}var i=!this.gridOptionsService.get("suppressAnimationFrame"),s={step:r,keepRenderedRows:!0,keepEditingRows:!0,animate:i};return s},t.prototype.refreshModel=function(e){if(!(!this.hasStarted||this.isRefreshingModel||this.columnModel.shouldRowModelIgnoreRefresh())){var r=typeof e=="object"&&"step"in e?e:this.buildRefreshModelParams(e);if(r&&!this.isSuppressModelUpdateAfterUpdateTransaction(r)){var o=this.createChangePath(r.rowNodeTransactions);switch(this.isRefreshingModel=!0,r.step){case z.EVERYTHING:this.doRowGrouping(r.rowNodeTransactions,r.rowNodeOrder,o,!!r.afterColumnsChanged);case z.FILTER:this.doFilter(o);case z.PIVOT:this.doPivot(o);case z.AGGREGATE:this.doAggregate(o);case z.FILTER_AGGREGATES:this.doFilterAggregates(o);case z.SORT:this.doSort(r.rowNodeTransactions,o);case z.MAP:this.doRowsToDisplay()}var i=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,i),this.isRefreshingModel=!1;var s={type:g.EVENT_MODEL_UPDATED,animate:r.animate,keepRenderedRows:r.keepRenderedRows,newData:r.newData,newPage:!1,keepUndoRedoStack:r.keepUndoRedoStack};this.eventService.dispatchEvent(s)}}},t.prototype.isEmpty=function(){var e=j.missing(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return j.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return j.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,r){var o=!r,i=!1,s=[],a=this.gridOptionsService.get("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort(function(l){if(!i){if(o&&(l===r||l===e)&&(i=!0,l.group&&a)){s.push.apply(s,Ie([],Me(l.allLeafChildren),!1));return}if(!o){if(l!==r&&l!==e)return;o=!0}var u=!l.group||!a;if(u){s.push(l);return}}}),s},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||this.rowsToDisplay.length===0)return-1;var r=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;var i=j.last(this.rowsToDisplay);if(i.rowTop<=e)return this.rowsToDisplay.length-1;for(var s=-1,a=-1;;){var l=Math.floor((r+o)/2),u=this.rowsToDisplay[l];if(this.isRowInPixel(u,e))return l;u.rowTope&&(o=l-1);var c=s===r&&a===o;if(c)return l;s=r,a=o}},t.prototype.isRowInPixel=function(e,r){var o=e.rowTop,i=e.rowTop+e.rowHeight,s=o<=r&&i>r;return s},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(r,o){return e(r,o)})},t.prototype.forEachNode=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:Ie([],Me(this.rootNode.childrenAfterGroup||[]),!1),callback:e,recursionType:Rt.Normal,index:0,includeFooterNodes:r})},t.prototype.forEachNodeAfterFilter=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:Ie([],Me(this.rootNode.childrenAfterAggFilter||[]),!1),callback:e,recursionType:Rt.AfterFilter,index:0,includeFooterNodes:r})},t.prototype.forEachNodeAfterFilterAndSort=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:Ie([],Me(this.rootNode.childrenAfterSort||[]),!1),callback:e,recursionType:Rt.AfterFilterAndSort,index:0,includeFooterNodes:r})},t.prototype.forEachPivotNode=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:Rt.PivotNodes,index:0,includeFooterNodes:r})},t.prototype.recursivelyWalkNodesAndCallback=function(e){for(var r,o=e.nodes,i=e.callback,s=e.recursionType,a=e.includeFooterNodes,l=e.index,u=0;u0&&window.setTimeout(function(){r.forEach(function(a){return a()})},0),o.length>0){var s={type:g.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(s)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,r){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,r),i=typeof e.addIndex=="number";return this.commonUpdateRowData([o],r,i),o},t.prototype.createRowNodeOrder=function(){var e=this.gridOptionsService.get("suppressMaintainUnsortedOrder");if(!e){var r={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var o=0;o=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},NS=function(n){xS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.execute=function(e){var r=e.changedPath;this.filterService.filter(r)},Zu([v("filterService")],t.prototype,"filterService",void 0),t=Zu([x("filterStage")],t),t}(D),GS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ta=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},VS=function(n){GS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.execute=function(e){var r=this,o=this.sortController.getSortOptions(),i=j.exists(o)&&o.length>0,s=i&&j.exists(e.rowNodeTransactions)&&this.gridOptionsService.get("deltaSort"),a=o.some(function(l){var u=r.gridOptionsService.isColumnsSortingCoupledToGroup();return u?l.column.isPrimary()&&l.column.isRowGroupActive():!!l.column.getColDef().showRowGroup});this.sortService.sort(o,i,s,e.rowNodeTransactions,e.changedPath,a)},ta([v("sortService")],t.prototype,"sortService",void 0),ta([v("sortController")],t.prototype,"sortController",void 0),t=ta([x("sortStage")],t),t}(D),HS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ra=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},BS=function(n){HS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.execute=function(e){var r=e.rowNode,o=[],i=this.columnModel.isPivotMode(),s=i&&r.leafGroup,a=s?[r]:r.childrenAfterSort,l=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(l,a,o,i,0);var u=o.length>0,c=!s&&u&&l.groupIncludeTotalFooter;return c&&(r.createFooter(),this.addRowNodeToRowsToDisplay(l,r.sibling,o,0)),o},t.prototype.getFlattenDetails=function(){var e=this.gridOptionsService.get("groupRemoveSingleChildren"),r=!e&&this.gridOptionsService.get("groupRemoveLowestSingleChildren");return{groupRemoveLowestSingleChildren:r,groupRemoveSingleChildren:e,isGroupMultiAutoColumn:this.gridOptionsService.isGroupMultiAutoColumn(),hideOpenParents:this.gridOptionsService.get("groupHideOpenParents"),groupIncludeTotalFooter:this.gridOptionsService.get("groupIncludeTotalFooter"),getGroupIncludeFooter:this.gridOptionsService.getGroupIncludeFooter()}},t.prototype.recursivelyAddToRowsToDisplay=function(e,r,o,i,s){if(!j.missingOrEmpty(r))for(var a=0;a=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},WS=function(n){kS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.sort=function(e,r,o,i,s,a){var l=this,u=this.gridOptionsService.get("groupMaintainOrder"),c=this.columnModel.getAllGridColumns().some(function(y){return y.isRowGroupActive()}),p={};o&&i&&(p=this.calculateDirtyNodes(i));var d=this.columnModel.isPivotMode(),h=this.gridOptionsService.getCallback("postSortRows"),f=function(y){var m;l.pullDownGroupDataForHideOpenParents(y.childrenAfterAggFilter,!0);var C=d&&y.leafGroup,w=u&&c&&!y.leafGroup&&!a;if(w){var E=(m=l.columnModel.getRowGroupColumns())===null||m===void 0?void 0:m[y.level+1],S=(E==null?void 0:E.getSort())===null,R=y.childrenAfterAggFilter.slice(0);if(y.childrenAfterSort&&!S){var O={};y.childrenAfterSort.forEach(function(A,M){O[A.id]=M}),R.sort(function(A,M){var N,I;return((N=O[A.id])!==null&&N!==void 0?N:0)-((I=O[M.id])!==null&&I!==void 0?I:0)})}y.childrenAfterSort=R}else!r||C?y.childrenAfterSort=y.childrenAfterAggFilter.slice(0):o?y.childrenAfterSort=l.doDeltaSort(y,p,s,e):y.childrenAfterSort=l.rowNodeSorter.doFullSort(y.childrenAfterAggFilter,e);if(y.sibling&&(y.sibling.childrenAfterSort=y.childrenAfterSort),l.updateChildIndexes(y),h){var b={nodes:y.childrenAfterSort};h(b)}};s&&s.forEachChangedNodeDepthFirst(f),this.updateGroupDataForHideOpenParents(s)},t.prototype.calculateDirtyNodes=function(e){var r={},o=function(i){i&&i.forEach(function(s){return r[s.id]=!0})};return e&&e.forEach(function(i){o(i.add),o(i.update),o(i.remove)}),r},t.prototype.doDeltaSort=function(e,r,o,i){var s=this,a=e.childrenAfterAggFilter,l=e.childrenAfterSort;if(!l)return this.rowNodeSorter.doFullSort(a,i);var u={},c=[];a.forEach(function(f){r[f.id]||!o.canSkip(f)?c.push(f):u[f.id]=!0});var p=l.filter(function(f){return u[f.id]}),d=function(f,y){return{currentPos:y,rowNode:f}},h=c.map(d).sort(function(f,y){return s.rowNodeSorter.compareRowNodes(i,f,y)});return this.mergeSortedArrays(i,h,p.map(d)).map(function(f){var y=f.rowNode;return y})},t.prototype.mergeSortedArrays=function(e,r,o){for(var i=[],s=0,a=0;s=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},US=function(n){jS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.filter=function(e){var r=this.filterManager.isChildFilterPresent();this.filterNodes(r,e)},t.prototype.filterNodes=function(e,r){var o=this,i=function(u,c){u.hasChildren()&&e&&!c?u.childrenAfterFilter=u.childrenAfterGroup.filter(function(p){var d=p.childrenAfterFilter&&p.childrenAfterFilter.length>0,h=p.data&&o.filterManager.doesRowPassFilter({rowNode:p});return d||h}):u.childrenAfterFilter=u.childrenAfterGroup,u.sibling&&(u.sibling.childrenAfterFilter=u.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var s=function(u,c){if(u.childrenAfterGroup)for(var p=0;p=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},KS=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},$S=function(n){zS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.rowModel.getType()==="clientSide"&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",function(){return e.onRowDataUpdated()}))},t.prototype.isActive=function(){var e=this.gridOptionsService.exists("getRowId"),r=this.gridOptionsService.get("resetRowDataOnUpdate");return r?!1:e},t.prototype.setRowData=function(e){var r=this.createTransactionForRowData(e);if(r){var o=KS(r,2),i=o[0],s=o[1];this.clientSideRowModel.updateRowData(i,s)}},t.prototype.createTransactionForRowData=function(e){if(j.missing(this.clientSideRowModel)){console.error("AG Grid: ImmutableService only works with ClientSideRowModel");return}var r=this.gridOptionsService.getCallback("getRowId");if(r==null){console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!");return}var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),s=this.gridOptionsService.get("suppressMaintainUnsortedOrder"),a=s?void 0:{};return j.exists(e)&&e.forEach(function(l,u){var c=r({data:l,level:0}),p=i[c];if(a&&(a[c]=u),p){var d=p.data!==l;d&&o.update.push(l),i[c]=void 0}else o.add.push(l)}),j.iterateObject(i,function(l,u){u&&o.remove.push(u.data)}),[o,a]},t.prototype.onRowDataUpdated=function(){var e=this.gridOptionsService.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))},Io([v("rowModel")],t.prototype,"rowModel",void 0),Io([v("rowRenderer")],t.prototype,"rowRenderer",void 0),Io([v("selectionService")],t.prototype,"selectionService",void 0),Io([F],t.prototype,"postConstruct",null),t=Io([x("immutableService")],t),t}(D),YS="31.1.1",qS={version:YS,moduleName:G.ClientSideRowModelModule,rowModel:"clientSide",beans:[IS,NS,VS,BS,WS,US,$S]},QS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ia=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tc=function(n){QS(t,n);function t(e,r,o){var i=n.call(this,e)||this;return i.parentCache=r,i.params=o,i.startRow=e*o.blockSize,i.endRow=i.startRow+o.blockSize,i}return t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,r,o){j.exists(r)?e.setDataAndId(r,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,r=this.createLoadParams();if(j.missing(this.params.datasource.getRows)){console.warn("AG Grid: datasource is missing getRows method");return}window.setTimeout(function(){e.params.datasource.getRows(r)},0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){var e={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.getGridCommonParams().context};return e},t.prototype.forEachNode=function(e,r,o){var i=this;this.rowNodes.forEach(function(s,a){var l=i.startRow+a;l=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,o)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},ia([v("beans")],t.prototype,"beans",void 0),ia([F],t.prototype,"postConstruct",null),ia([Se],t.prototype,"destroyRowNodes",null),t}(Ms),XS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},JS=function(n,t){return function(e,r){t(e,r,n)}},ZS=function(n){XS(t,n);function t(e){var r=n.call(this)||this;return r.lastRowIndexKnown=!1,r.blocks={},r.blockCount=0,r.rowCount=e.initialRowCount,r.params=e,r}return t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,r){r===void 0&&(r=!1);var o=Math.floor(e/this.params.blockSize),i=this.blocks[o];if(!i){if(r)return;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var r=this.createBean(new tc(e,this,this.params));return this.blocks[r.getId()]=r,this.blockCount++,this.purgeBlocksIfNeeded(r),this.params.rowNodeBlockLoader.addBlock(r),r},t.prototype.refreshCache=function(){var e=this.blockCount==0;if(e){this.purgeCache();return}this.getBlocksInOrder().forEach(function(r){return r.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(r){return e.destroyBlock(r)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,r){this.isAlive()&&(this.logger.log("onPageLoaded: page = ".concat(e.getId(),", lastRow = ").concat(r)),this.checkRowCount(e,r),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var r=this,o=this.getBlocksInOrder().filter(function(u){return u!=e}),i=function(u,c){return c.getLastAccessed()-u.getLastAccessed()};o.sort(i);var s=this.params.maxBlocksInCache>0,a=s?this.params.maxBlocksInCache-1:null,l=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach(function(u,c){var p=u.getState()===tc.STATE_WAITING_TO_LOAD&&c>=l,d=s?c>=a:!1;if(p||d){if(r.isBlockCurrentlyDisplayed(u)||r.isBlockFocused(u))return;r.removeBlockFromCache(u)}})},t.prototype.isBlockFocused=function(e){var r=this.focusService.getFocusCellToUseAfterRefresh();if(!r||r.rowPinned!=null)return!1;var o=e.getStartRow(),i=e.getEndRow(),s=r.rowIndex>=o&&r.rowIndex=0)this.rowCount=r,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(e.getId()+1)*this.params.blockSize,i=o+this.params.overflowSize;this.rowCount=e.rowCount&&r.push(o)}),r.length>0&&r.forEach(function(o){return e.destroyBlock(o)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(r){return e.removeBlockFromCache(r)}),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,r){var o=this,i=[],s=-1,a=!1,l=new Dr;j.missing(e)&&(a=!0);var u=!1;this.getBlocksInOrder().forEach(function(p){if(!u){if(a&&s+1!==p.getId()){u=!0;return}s=p.getId(),p.forEachNode(function(d){var h=d===e||d===r;(a||h)&&i.push(d),h&&(a=!a)},l,o.rowCount)}});var c=u||a;return c?[]:i},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,zi([v("rowRenderer")],t.prototype,"rowRenderer",void 0),zi([v("focusService")],t.prototype,"focusService",void 0),zi([JS(0,Ye("loggerFactory"))],t.prototype,"setBeans",null),zi([Se],t.prototype,"destroyAllBlocks",null),t}(D),ew=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qt=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tw=function(n){ew(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,r,o,i){return!1},t.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){this.gridOptionsService.exists("initialGroupOrderComparator")&&j.warnOnce("initialGroupOrderComparator cannot be used with Infinite Row Model as sorting is done on the server side")},t.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,g.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this)),this.addManagedPropertyListener("datasource",function(){return e.setDatasource(e.gridOptionsService.get("datasource"))}),this.addManagedPropertyListener("cacheBlockSize",function(){return e.resetCache()}),this.addManagedPropertyListener("rowHeight",function(){e.rowHeight=e.gridOptionsService.getRowHeightAsNumber(),e.cacheParams.rowHeight=e.rowHeight,e.updateRowHeights()})},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){var e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()},t.prototype.isSortModelDifferent=function(){return!j.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return"infinite"},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,r){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,r):[]},t.prototype.reset=function(){if(this.datasource){var e=this.gridOptionsService.getCallback("getRowId"),r=e!=null;r||this.selectionService.reset("rowDataChanged"),this.resetCache()}},t.prototype.createModelUpdatedEvent=function(){return{type:g.EVENT_MODEL_UPDATED,newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.gridOptionsService.get("infiniteInitialRowCount"),maxBlocksInCache:this.gridOptionsService.get("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.gridOptionsService.get("cacheOverflowSize"),blockSize:this.gridOptionsService.get("cacheBlockSize"),lastAccessedSequence:new Dr},this.infiniteCache=this.createBean(new ZS(this.cacheParams)),this.eventService.dispatchEventOnce({type:g.EVENT_ROW_COUNT_READY});var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.updateRowHeights=function(){var e=this;this.forEachNode(function(o){o.setRowHeight(e.rowHeight),o.setRowTop(e.rowHeight*o.rowIndex)});var r=this.createModelUpdatedEvent();this.eventService.dispatchEvent(r)},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var r;return this.forEachNode(function(o){o.id===e&&(r=o)}),r},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(this.rowHeight!==0){var r=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return r>o?o:r}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){var r=this.getRowNode(e.id);return!!r},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1},t.prototype.setRowCount=function(e,r){this.infiniteCache&&this.infiniteCache.setRowCount(e,r)},Qt([v("filterManager")],t.prototype,"filterManager",void 0),Qt([v("sortController")],t.prototype,"sortController",void 0),Qt([v("selectionService")],t.prototype,"selectionService",void 0),Qt([v("rowRenderer")],t.prototype,"rowRenderer",void 0),Qt([v("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Qt([F],t.prototype,"init",null),Qt([Se],t.prototype,"destroyDatasource",null),t=Qt([x("rowModel")],t),t}(D),rw="31.1.1",ow={version:rw,moduleName:G.InfiniteRowModelModule,rowModel:"infinite",beans:[tw]},iw=function(){function n(){}return n.prototype.setBeans=function(t){this.beans=t},n.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return(t==null||!t.length)&&(t=this.getDefaultFileName()),t.indexOf(".")===-1?"".concat(t,".").concat(e):t},n.prototype.getData=function(t){var e=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(e,t)},n.prototype.getDefaultFileName=function(){return"export.".concat(this.getDefaultFileExtension())},n}(),nw=function(){function n(t){this.groupColumns=[];var e=t.columnModel,r=t.valueService,o=t.gridOptionsService,i=t.valueFormatterService,s=t.valueParserService,a=t.processCellCallback,l=t.processHeaderCallback,u=t.processGroupHeaderCallback,c=t.processRowGroupCallback;this.columnModel=e,this.valueService=r,this.gridOptionsService=o,this.valueFormatterService=i,this.valueParserService=s,this.processCellCallback=a,this.processHeaderCallback=l,this.processGroupHeaderCallback=u,this.processRowGroupCallback=c}return n.prototype.prepare=function(t){this.groupColumns=t.filter(function(e){return!!e.getColDef().showRowGroup})},n.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return e??""},n.prototype.extractRowCellValue=function(t,e,r,o,i){var s=this.gridOptionsService.get("groupHideOpenParents"),a=(!s||i.footer)&&this.shouldRenderGroupSummaryCell(i,t,e)?this.createValueForGroupNode(t,i):this.valueService.getValue(t,i),l=this.processCell({accumulatedRowIndex:r,rowNode:i,column:t,value:a,processCellCallback:this.processCellCallback,type:o});return l},n.prototype.shouldRenderGroupSummaryCell=function(t,e,r){var o,i=t&&t.group;if(!i)return!1;var s=this.groupColumns.indexOf(e);if(s!==-1){if(((o=t.groupData)===null||o===void 0?void 0:o[e.getId()])!=null||this.gridOptionsService.isRowModelType("serverSide")&&t.group)return!0;if(t.footer&&t.level===-1){var a=e.getColDef(),l=a==null||a.showRowGroup===!0;return l||a.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var u=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return r===0&&u},n.prototype.getHeaderName=function(t,e){return t?t(this.gridOptionsService.addGridCommonParams({column:e})):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},n.prototype.createValueForGroupNode=function(t,e){var r=this;if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gridOptionsService.addGridCommonParams({column:t,node:e}));var o=this.gridOptionsService.get("treeData"),i=this.gridOptionsService.get("suppressGroupMaintainValueType"),s=function(c){var p,d;if(o||i)return c.key;var h=(p=c.groupData)===null||p===void 0?void 0:p[t.getId()];return!h||!c.rowGroupColumn||c.rowGroupColumn.getColDef().useValueFormatterForExport===!1?h:(d=r.valueFormatterService.formatValue(c.rowGroupColumn,c,h))!==null&&d!==void 0?d:h},a=e.footer,l=[s(e)];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,l.push(s(e));var u=l.reverse().join(" -> ");return a?"Total ".concat(u):u},n.prototype.processCell=function(t){var e=this,r,o=t.accumulatedRowIndex,i=t.rowNode,s=t.column,a=t.value,l=t.processCellCallback,u=t.type;return l?{value:(r=l(this.gridOptionsService.addGridCommonParams({accumulatedRowIndex:o,column:s,node:i,value:a,type:u,parseValue:function(c){return e.valueParserService.parseValue(s,i,c,e.valueService.getValue(s,i))},formatValue:function(c){var p;return(p=e.valueFormatterService.formatValue(s,i,c))!==null&&p!==void 0?p:c}})))!==null&&r!==void 0?r:""}:s.getColDef().useValueFormatterForExport!==!1?{value:a??"",valueFormatted:this.valueFormatterService.formatValue(s,i,a)}:{value:a??""}},n}(),sw=function(){function n(){}return n.download=function(t,e){var r=document.defaultView||window;if(!r){console.warn("AG Grid: There is no `window` associated with the current `document`");return}var o=document.createElement("a"),i=r.URL.createObjectURL(e);o.setAttribute("href",i),o.setAttribute("download",t),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:r})),document.body.removeChild(o),r.setTimeout(function(){r.URL.revokeObjectURL(i)},0)},n}(),aw=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),rc=`\r -`,lw=function(n){aw(t,n);function t(e){var r=n.call(this,e)||this;r.isFirstLine=!0,r.result="";var o=e.suppressQuotes,i=e.columnSeparator;return r.suppressQuotes=o,r.columnSeparator=i,r}return t.prototype.addCustomContent=function(e){var r=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,rc),this.result+=e):e.forEach(function(o){r.beginNewLine(),o.forEach(function(i,s){s!==0&&(r.result+=r.columnSeparator),r.result+=r.putInQuotes(i.data.value||""),i.mergeAcross&&r.appendEmptyCells(i.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,r,o,i){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(r),this.appendEmptyCells(i)},t.prototype.appendEmptyCells=function(e){for(var r=1;r<=e;r++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,r){r!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,r,o){var i;r!=0&&(this.result+=this.columnSeparator);var s=this.extractRowCellValue(e,r,r,"csv",o);this.result+=this.putInQuotes((i=s.valueFormatted)!==null&&i!==void 0?i:s.value)},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var r;typeof e=="string"?r=e:typeof e.toString=="function"?r=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),r="");var o=r.replace(/"/g,'""');return'"'+o+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=rc),this.isFirstLine=!1},t}(nw),uw=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xt=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},cw=function(n){uw(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var r=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},r,e)},t.prototype.export=function(e){if(this.isExportSuppressed()){console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");return}var r=this.getMergedParams(e),o=this.getData(r),i=new Blob(["\uFEFF",o],{type:"text/plain"}),s=typeof r.fileName=="function"?r.fileName(this.gridOptionsService.getGridCommonParams()):r.fileName;sw.download(this.getFileName(s),i)},t.prototype.exportDataAsCsv=function(e){this.export(e)},t.prototype.getDataAsCsv=function(e,r){r===void 0&&(r=!1);var o=r?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var r=this,o=r.columnModel,i=r.valueService,s=r.gridOptionsService,a=r.valueFormatterService,l=r.valueParserService,u=e,c=u.processCellCallback,p=u.processHeaderCallback,d=u.processGroupHeaderCallback,h=u.processRowGroupCallback,f=u.suppressQuotes,y=u.columnSeparator;return new lw({columnModel:o,valueService:i,gridOptionsService:s,valueFormatterService:a,valueParserService:l,processCellCallback:c||void 0,processHeaderCallback:p||void 0,processGroupHeaderCallback:d||void 0,processRowGroupCallback:h||void 0,suppressQuotes:f||!1,columnSeparator:y||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.get("suppressCsvExport")},Xt([v("columnModel")],t.prototype,"columnModel",void 0),Xt([v("valueService")],t.prototype,"valueService",void 0),Xt([v("gridSerializer")],t.prototype,"gridSerializer",void 0),Xt([v("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Xt([v("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Xt([v("valueParserService")],t.prototype,"valueParserService",void 0),Xt([F],t.prototype,"postConstruct",null),t=Xt([x("csvCreator")],t),t}(iw),pw=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Jt=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},oc;(function(n){n[n.HEADER_GROUPING=0]="HEADER_GROUPING",n[n.HEADER=1]="HEADER",n[n.BODY=2]="BODY"})(oc||(oc={}));var dw=function(n){pw(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.serialize=function(e,r){r===void 0&&(r={});var o=r.allColumns,i=r.columnKeys,s=r.skipRowGroups,a=this.getColumnsToExport(o,s,i),l=j.compose(this.prepareSession(a),this.prependContent(r),this.exportColumnGroups(r,a),this.exportHeaders(r,a),this.processPinnedTopRows(r,a),this.processRows(r,a),this.processPinnedBottomRows(r,a),this.appendContent(r));return l(e).parse()},t.prototype.processRow=function(e,r,o,i){var s=r.shouldRowBeSkipped||function(){return!1},a=this.gridOptionsService.get("groupRemoveSingleChildren"),l=this.gridOptionsService.get("groupRemoveLowestSingleChildren"),u=r.rowPositions!=null,c=u||!!r.onlySelected,p=this.gridOptionsService.get("groupHideOpenParents")&&!c,d=this.columnModel.isPivotMode()?i.leafGroup:!i.group,h=!!i.footer;r.skipRowGroups;var f=l&&i.leafGroup,y=i.allChildrenCount===1&&(a||f);if(!(!d&&!h&&(r.skipRowGroups||y||p)||r.onlySelected&&!i.isSelected()||r.skipPinnedTop&&i.rowPinned==="top"||r.skipPinnedBottom&&i.rowPinned==="bottom")){var m=i.level===-1;if(!(m&&!d&&!h)){var C=s(this.gridOptionsService.addGridCommonParams({node:i}));if(!C){var w=e.onNewBodyRow(i);if(o.forEach(function(S,R){w.onColumn(S,R,i)}),r.getCustomContentBelowRow){var E=r.getCustomContentBelowRow(this.gridOptionsService.addGridCommonParams({node:i}));E&&e.addCustomContent(E)}}}}},t.prototype.appendContent=function(e){return function(r){var o=e.appendContent;return o&&r.addCustomContent(o),r}},t.prototype.prependContent=function(e){return function(r){var o=e.prependContent;return o&&r.addCustomContent(o),r}},t.prototype.prepareSession=function(e){return function(r){return r.prepare(e),r}},t.prototype.exportColumnGroups=function(e,r){var o=this;return function(i){if(!e.skipColumnGroupHeaders){var s=new Pa,a=o.displayedGroupCreator.createDisplayedGroups(r,s,null);o.recursivelyAddHeaderGroups(a,i,e.processGroupHeaderCallback)}return i}},t.prototype.exportHeaders=function(e,r){return function(o){if(!e.skipColumnHeaders){var i=o.onNewHeaderRow();r.forEach(function(s,a){i.onColumn(s,a,void 0)})}return o}},t.prototype.processPinnedTopRows=function(e,r){var o=this;return function(i){var s=o.processRow.bind(o,i,e,r);return e.rowPositions?e.rowPositions.filter(function(a){return a.rowPinned==="top"}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return o.pinnedRowModel.getPinnedTopRow(a.rowIndex)}).forEach(s):o.pinnedRowModel.forEachPinnedTopRow(s),i}},t.prototype.processRows=function(e,r){var o=this;return function(i){var s=o.rowModel,a=s.getType(),l=a==="clientSide",u=a==="serverSide",c=!l&&e.onlySelected,p=o.processRow.bind(o,i,e,r),d=e.exportedRows,h=d===void 0?"filteredAndSorted":d;if(e.rowPositions)e.rowPositions.filter(function(y){return y.rowPinned==null}).sort(function(y,m){return y.rowIndex-m.rowIndex}).map(function(y){return s.getRow(y.rowIndex)}).forEach(p);else if(o.columnModel.isPivotMode())l?s.forEachPivotNode(p,!0):u?s.forEachNodeAfterFilterAndSort(p,!0):s.forEachNode(p);else if(e.onlySelectedAllPages||c){var f=o.selectionService.getSelectedNodes();o.replicateSortedOrder(f),f.forEach(p)}else h==="all"?s.forEachNode(p):l||u?s.forEachNodeAfterFilterAndSort(p,!0):s.forEachNode(p);return i}},t.prototype.replicateSortedOrder=function(e){var r=this,o=this.sortController.getSortOptions(),i=function(s,a){var l,u,c,p;return s.rowIndex!=null&&a.rowIndex!=null?s.rowIndex-a.rowIndex:s.level===a.level?((l=s.parent)===null||l===void 0?void 0:l.id)===((u=a.parent)===null||u===void 0?void 0:u.id)?r.rowNodeSorter.compareRowNodes(o,{rowNode:s,currentPos:(c=s.rowIndex)!==null&&c!==void 0?c:-1},{rowNode:a,currentPos:(p=a.rowIndex)!==null&&p!==void 0?p:-1}):i(s.parent,a.parent):s.level>a.level?i(s.parent,a):i(s,a.parent)};e.sort(i)},t.prototype.processPinnedBottomRows=function(e,r){var o=this;return function(i){var s=o.processRow.bind(o,i,e,r);return e.rowPositions?e.rowPositions.filter(function(a){return a.rowPinned==="bottom"}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return o.pinnedRowModel.getPinnedBottomRow(a.rowIndex)}).forEach(s):o.pinnedRowModel.forEachPinnedBottomRow(s),i}},t.prototype.getColumnsToExport=function(e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);var i=this.columnModel.isPivotMode();if(o&&o.length)return this.columnModel.getGridColumns(o);var s=this.gridOptionsService.get("treeData"),a=[];return e&&!i?a=this.columnModel.getAllGridColumns():a=this.columnModel.getAllDisplayedColumns(),r&&!s&&(a=a.filter(function(l){return l.getColId()!==Er})),a},t.prototype.recursivelyAddHeaderGroups=function(e,r,o){var i=[];e.forEach(function(s){var a=s;a.getChildren&&a.getChildren().forEach(function(l){return i.push(l)})}),e.length>0&&e[0]instanceof se&&this.doAddHeaderHeader(r,e,o),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,r,o)},t.prototype.doAddHeaderHeader=function(e,r,o){var i=this,s=e.onNewHeaderGroupingRow(),a=0;r.forEach(function(l){var u=l,c;o?c=o(i.gridOptionsService.addGridCommonParams({columnGroup:u})):c=i.columnModel.getDisplayNameForColumnGroup(u,"header");var p=u.getLeafColumns().reduce(function(d,h,f,y){var m=j.last(d),C=h.getColumnGroupShow()==="open";return C?(!m||m[1]!=null)&&(m=[f],d.push(m)):m&&m[1]==null&&(m[1]=f-1),f===y.length-1&&m&&m[1]==null&&(m[1]=f),d},[]);s.onColumn(u,c||"",a++,u.getLeafColumns().length-1,p)})},Jt([v("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Jt([v("columnModel")],t.prototype,"columnModel",void 0),Jt([v("rowModel")],t.prototype,"rowModel",void 0),Jt([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Jt([v("selectionService")],t.prototype,"selectionService",void 0),Jt([v("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Jt([v("sortController")],t.prototype,"sortController",void 0),t=Jt([x("gridSerializer")],t),t}(D),hw="31.1.1",fw={version:hw,moduleName:G.CsvExportModule,beans:[cw,dw]};j.utf8_encode;var vw=[qS,ow,fw];X.registerModules(vw);const gw=` - - -`,yw=` - - -`,ic=` - - - -`,nc=` - - - - - - -`,mw=` - - - -`,Cw=` - - - - - - - -`,Sw=` - - - - -`,ww=` - - - -`,Ew=Vs.prototype.setFocusedCell;Vs.prototype.setFocusedCell=function(n){return n.preventScrollOnBrowserFocus==null&&(n.preventScrollOnBrowserFocus=!0),Ew.call(this,n)};const _w=(n,t)=>{if(n.getDisplayedRowCount()===0)return;const e=n.paginationGetPageSize()*n.paginationGetCurrentPage(),o=n.getDisplayedRowAtIndex(e).rowTop,i=Math.min(n.paginationGetPageSize()*(n.paginationGetCurrentPage()+1)-1,n.getDisplayedRowCount()-1),s=n.getDisplayedRowAtIndex(i),a=s.rowTop+s.rowHeight;let l;return n.forEachNodeAfterFilterAndSort(u=>{const c=u.rowTop,p=u.rowHeight;if(c0&&d{const r=n.paginationGetPageSize()*n.paginationGetCurrentPage(),i=n.getDisplayedRowAtIndex(r).rowTop;return e-(t.rowTop-i)},Rw=(n,t,e)=>na(n,t,e){let e;return function(...r){clearTimeout(e),e=setTimeout(()=>n.apply(this,r),t)}},Ow=n=>(n+"").replace(/[/][/].*$/gm,"").replace(/\s+/g,"").replace(/[/][*][^/*]*[*][/]/g,"").split("){",1)[0].replace(/^[^(]*[(]/,"").replace(/=[^,]+/g,"").split(",").filter(Boolean);var Tw={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ac=n=>{let t;const e=new Set,r=(c,p)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const h=t;t=p??(typeof d!="object"||d===null)?d:Object.assign({},t,d),e.forEach(f=>f(t,h))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>u,subscribe:c=>(e.add(c),()=>e.delete(c)),destroy:()=>{(Tw?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),e.clear()}},u=t=n(r,o,l);return l},sa=n=>n?ac(n):ac,Pw=n=>{const t=sa()(()=>n),{getState:e,setState:r,subscribe:o}=t,i={refresh:async s=>{const{limit:a=1e3,offset:l=0}=s??{},u=e().status??"";return fetch(`/agent-scheduler/v1/history?status=${u}&limit=${a}&offset=${l}`).then(c=>c.json()).then(c=>(r({...c}),c))},onFilterStatus:s=>{r({status:s}),i.refresh()},bookmarkTask:async(s,a)=>fetch(`/agent-scheduler/v1/task/${s}/${a?"bookmark":"unbookmark"}`,{method:"POST"}).then(l=>l.json()),renameTask:async(s,a)=>fetch(`/agent-scheduler/v1/task/${s}/rename?name=${encodeURIComponent(a)}`,{method:"POST",headers:{"Content-Type":"application/json"}}).then(l=>l.json()),requeueTask:async s=>fetch(`/agent-scheduler/v1/task/${s}/requeue`,{method:"POST"}).then(a=>a.json()),requeueFailedTasks:async()=>fetch("/agent-scheduler/v1/task/requeue-failed",{method:"POST"}).then(s=>(i.refresh(),s.json())),clearHistory:async()=>fetch("/agent-scheduler/v1/history/clear",{method:"POST"}).then(s=>(i.refresh(),s.json()))};return{getState:e,setState:r,subscribe:o,...i}},Dw=n=>{const t=sa()(()=>n),{getState:e,setState:r,subscribe:o}=t,i={refresh:async()=>fetch("/agent-scheduler/v1/queue?limit=1000").then(s=>s.json()).then(r),exportQueue:async()=>fetch("/agent-scheduler/v1/export").then(s=>s.json()),importQueue:async s=>fetch("/agent-scheduler/v1/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:s})}).then(l=>l.json()).then(l=>(setTimeout(()=>{i.refresh()},3e3),l)),pauseQueue:async()=>fetch("/agent-scheduler/v1/queue/pause",{method:"POST"}).then(s=>s.json()).then(s=>(setTimeout(()=>{i.refresh()},500),s)),resumeQueue:async()=>fetch("/agent-scheduler/v1/queue/resume",{method:"POST"}).then(s=>s.json()).then(s=>(setTimeout(()=>{i.refresh()},500),s)),clearQueue:async()=>fetch("/agent-scheduler/v1/queue/clear",{method:"POST"}).then(s=>s.json()).then(s=>(i.refresh(),s)),runTask:async s=>fetch(`/agent-scheduler/v1/task/${s}/run`,{method:"POST"}).then(a=>a.json()).then(a=>(setTimeout(()=>{i.refresh()},500),a)),moveTask:async(s,a)=>fetch(`/agent-scheduler/v1/task/${s}/move/${a}`,{method:"POST"}).then(l=>l.json()).then(l=>(i.refresh(),l)),updateTask:async(s,a)=>{const l={name:a.name,checkpoint:a.params.checkpoint,params:{prompt:a.params.prompt,negative_prompt:a.params.negative_prompt,sampler_name:a.params.sampler_name,steps:a.params.steps,cfg_scale:a.params.cfg_scale}};return fetch(`/agent-scheduler/v1/task/${s}`,{method:"PUT",body:JSON.stringify(l),headers:{"Content-Type":"application/json"}}).then(u=>u.json())},deleteTask:async s=>fetch(`/agent-scheduler/v1/task/${s}`,{method:"DELETE"}).then(a=>a.json())};return{getState:e,setState:r,subscribe:o,...i}},Aw=n=>{const t=sa(()=>n),{getState:e,setState:r,subscribe:o}=t;return{getState:e,setState:r,subscribe:o,...{setSelectedTab:s=>{r({selectedTab:s})},getSamplers:async()=>fetch("/agent-scheduler/v1/samplers").then(s=>s.json()),getCheckpoints:async()=>fetch("/agent-scheduler/v1/sd-models").then(s=>s.json())}}};let Ki;const lt=Aw({uiAsTab:!0,selectedTab:"pending"}),Ot=Dw({current_task_id:null,total_pending_tasks:0,pending_tasks:[],paused:!1}),$i=Pw({total:0,tasks:[]}),lc=[],uc=["System"],Cr={defaultColDef:{sortable:!1,filter:!0,resizable:!0,suppressMenu:!0},columnDefs:[{field:"name",headerName:"Task Id",cellDataType:"text",minWidth:240,maxWidth:240,pinned:"left",rowDrag:!0,valueGetter:({data:n})=>(n==null?void 0:n.name)??(n==null?void 0:n.id),cellClass:({data:n})=>{if(n!=null)return["cursor-pointer",`task-${n.status}`]}},{field:"type",headerName:"Type",minWidth:80,maxWidth:80,editable:!1},{field:"editing",editable:!1,hide:!0},{headerName:"Params",children:[{field:"params.prompt",headerName:"Prompt",cellDataType:"text",minWidth:200,maxWidth:400,autoHeight:!0,wrapText:!0,cellClass:"wrap-cell"},{field:"params.negative_prompt",headerName:"Negative Prompt",cellDataType:"text",minWidth:200,maxWidth:400,autoHeight:!0,wrapText:!0,cellClass:"wrap-cell"},{field:"params.checkpoint",headerName:"Checkpoint",cellDataType:"text",minWidth:150,maxWidth:300,valueFormatter:({value:n})=>n??"System",cellEditor:"agSelectCellEditor",cellEditorParams:()=>({values:uc})},{field:"params.sampler_name",headerName:"Sampler",cellDataType:"text",width:150,minWidth:150,cellEditor:"agSelectCellEditor",cellEditorParams:()=>({values:lc})},{field:"params.steps",headerName:"Steps",cellDataType:"number",minWidth:80,maxWidth:80,filter:"agNumberColumnFilter",cellEditor:"agNumberCellEditor",cellEditorParams:{min:1,max:150,precision:0,step:1}},{field:"params.cfg_scale",headerName:"CFG Scale",cellDataType:"number",width:100,minWidth:100,filter:"agNumberColumnFilter",cellEditor:"agNumberCellEditor",cellEditorParams:{min:1,max:30,precision:1,step:.5}},{field:"params.size",headerName:"Size",minWidth:110,maxWidth:110,editable:!1,valueGetter:({data:n})=>{const t=n==null?void 0:n.params;return t!=null?`${t.width} × ${t.height}`:void 0}},{field:"params.batch",headerName:"Batching",minWidth:100,maxWidth:100,editable:!1,valueGetter:({data:n})=>{const t=n==null?void 0:n.params;return t!=null?`${t.batch_size} × ${t.n_iter}`:"1 × 1"}}]},{field:"created_at",headerName:"Queued At",minWidth:180,editable:!1,valueFormatter:({value:n})=>n!=null?new Date(n).toLocaleString(document.documentElement.lang):""},{field:"updated_at",headerName:"Updated At",minWidth:180,editable:!1,valueFormatter:({value:n})=>n!=null?new Date(n).toLocaleString(document.documentElement.lang):""}],getRowId:({data:n})=>n.id,rowSelection:"single",animateRows:!0,pagination:!0,paginationAutoPageSize:!0,suppressCopyRowsToClipboard:!0,enableBrowserTooltips:!0};function cc(n){const t=gradioApp().querySelector(n);if(t==null)throw new Error(`Search container '${n}' not found.`);const e=t.getElementsByTagName("input")[0];if(e==null)throw new Error("Search input not found.");e.classList.add("ts-search-input");const r=document.createElement("div");return r.className="ts-search-icon",r.innerHTML=ww,e.parentElement.appendChild(r),e}async function xe(n){if(Ki==null){const t=await Promise.resolve().then(()=>xw);Ki=new t.Notyf({position:{x:"center",y:"bottom"},duration:3e3})}n.success?Ki.success(n.message):Ki.error(n.message)}window.notify=xe,window.origRandomId=window.randomId;function pc(n,t,e){if(Object.keys(opts).length===0){setTimeout(()=>pc(n,t,e),500);return}const r=Ow(requestProgress),o=gradioApp().querySelector("#agent_scheduler_current_task_images");if(r.includes("progressbarContainer"))requestProgress(n,o,o,e);else{const i=document.createElement("div");i.className="progressDiv",o.parentElement.insertBefore(i,o),requestProgress(n,o,o,()=>{i.remove(),e()},s=>{const a=`${Math.round(s.progress*100)}%`,l=s.paused?"Paused":`ETA: ${Math.round(s.eta)}s`;i.innerText=`${a} ${l}`,i.style.background=`linear-gradient(to right, var(--primary-500) 0%, var(--primary-800) ${a}, var(--neutral-700) ${a})`})}window.randomId=()=>n,t==="txt2img"?submit():t==="img2img"&&submit_img2img(),window.randomId=window.origRandomId}function bw(){const n=l=>{const u=gradioApp().querySelector(`#${l?"img2img_enqueue_wrapper":"txt2img_enqueue_wrapper"} input`);if(u!=null){const p=u.value;if(p==="Runtime Checkpoint"||p!=="Current Checkpoint")return p}const c=gradioApp().querySelector("#setting_sd_model_checkpoint input");return(c==null?void 0:c.value)??"Current Checkpoint"},t=gradioApp().querySelector("#txt2img_enqueue");window.submit_enqueue=(...l)=>{const u=create_submit_args(l);return u[0]=n(!1),u[1]=randomId(),window.randomId=window.origRandomId,t!=null&&(t.innerText="Queued",setTimeout(()=>{t.innerText="Enqueue",lt.getState().uiAsTab||lt.getState().selectedTab==="pending"&&Ot.refresh()},1e3)),u};const e=gradioApp().querySelector("#img2img_enqueue");window.submit_enqueue_img2img=(...l)=>{const u=create_submit_args(l);return u[0]=n(!0),u[1]=randomId(),u[2]=get_tab_index("mode_img2img"),window.randomId=window.origRandomId,e!=null&&(e.innerText="Queued",setTimeout(()=>{e.innerText="Enqueue",lt.getState().uiAsTab||lt.getState().selectedTab==="pending"&&Ot.refresh()},1e3)),u};const r=gradioApp().querySelector(".interrogate-col");r!=null&&r.childElementCount>2&&r.classList.add("has-queue-button");const o=gradioApp().querySelector("#setting_queue_keyboard_shortcut textarea");if(!o.value.includes("Disabled")){const l=o.value.split("+"),u=l.pop(),c=h=>{if(h.code!==u||l.includes("Shift")&&!h.shiftKey||l.includes("Alt")&&!h.altKey||l.includes("Command")&&!h.metaKey||(l.includes("Control")||l.includes("Ctrl"))&&!h.ctrlKey)return;h.preventDefault(),h.stopPropagation();const f=get_tab_index("tabs");f===0?t.click():f===1&&e.click()};window.addEventListener("keydown",c),gradioApp().querySelector("#txt2img_prompt textarea").addEventListener("keydown",c),gradioApp().querySelector("#img2img_prompt textarea").addEventListener("keydown",c)}Ot.subscribe((l,u)=>{const c=l.current_task_id;if(c!==u.current_task_id&&c!=null){const p=l.pending_tasks.find(d=>d.id===c);pc(c,p==null?void 0:p.type,Ot.refresh)}});const i=(l=!1)=>{const u=prompt("Enter task name");window.randomId=()=>u??window.origRandomId(),l?e.click():t.click()},s=(l=!1)=>{window.randomId=()=>"$$_queue_with_all_checkpoints_$$",l?e.click():t.click()};appendContextMenuOption("#txt2img_enqueue","Queue with task name",()=>i()),appendContextMenuOption("#txt2img_enqueue","Queue with all checkpoints",()=>s()),appendContextMenuOption("#img2img_enqueue","Queue with task name",()=>i(!0)),appendContextMenuOption("#img2img_enqueue","Queue with all checkpoints",()=>s(!0));const a=window.modalSaveImage;window.modalSaveImage=l=>{gradioApp().querySelector("#tab_agent_scheduler").style.display!=="none"?(gradioApp().querySelector("#agent_scheduler_save").click(),l.preventDefault()):a(l)}}function Fw(){lt.subscribe((e,r)=>{(!e.uiAsTab||e.selectedTab!==r.selectedTab)&&(e.selectedTab==="pending"?Ot.refresh():$i.refresh())});const n=new MutationObserver(e=>{e.forEach(r=>{const o=r.target;if(o.style.display!=="none")switch(o.id){case"tab_agent_scheduler":lt.getState().selectedTab==="pending"?Ot.refresh():$i.refresh();break;case"agent_scheduler_pending_tasks_tab":lt.setSelectedTab("pending");break;case"agent_scheduler_history_tab":lt.setSelectedTab("history");break}})}),t=gradioApp().querySelector("#tab_agent_scheduler");t!=null?n.observe(t,{attributeFilter:["style"]}):lt.setState({uiAsTab:!1}),n.observe(gradioApp().querySelector("#agent_scheduler_pending_tasks_tab"),{attributeFilter:["style"]}),n.observe(gradioApp().querySelector("#agent_scheduler_history_tab"),{attributeFilter:["style"]})}function Lw(){const n=Ot;lt.getSamplers().then(S=>lc.push(...S)),lt.getCheckpoints().then(S=>uc.push(...S)),gradioApp().querySelector("#agent_scheduler_action_reload").addEventListener("click",()=>n.refresh());const e=gradioApp().querySelector("#agent_scheduler_action_pause");e.addEventListener("click",()=>n.pauseQueue().then(xe));const r=gradioApp().querySelector("#agent_scheduler_action_resume");r.addEventListener("click",()=>n.resumeQueue().then(xe)),gradioApp().querySelector("#agent_scheduler_action_clear_queue").addEventListener("click",()=>{confirm("Are you sure you want to clear the queue?")&&n.clearQueue().then(xe)});const i=gradioApp().querySelector("#agent_scheduler_action_import"),s=gradioApp().querySelector("#agent_scheduler_import_file");i.addEventListener("click",()=>{s.click()}),s.addEventListener("change",S=>{if(S.target===null)return;const R=s.files;if(R==null||R.length===0)return;const O=R[0],b=new FileReader;b.onload=()=>{const A=b.result;n.importQueue(A).then(xe).then(()=>{s.value="",n.refresh()})},b.readAsText(O)}),gradioApp().querySelector("#agent_scheduler_action_export").addEventListener("click",()=>{n.exportQueue().then(S=>{const R="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(S)),O=document.createElement("a");O.setAttribute("href",R),O.setAttribute("download",`agent-scheduler-${Date.now()}.json`),O.click()})});const l=S=>{S.paused?(e.classList.add("hide","hidden"),r.classList.remove("hide","hidden")):(e.classList.remove("hide","hidden"),r.classList.add("hide","hidden"))};n.subscribe(l),l(n.getState());let u,c;const p=1.5*1e3,d=45/2,h=()=>{c!=null&&(clearTimeout(c),c=null)},f=(S,R)=>{if(u==null){h();return}const O=S.paginationGetPageSize()*S.paginationGetCurrentPage(),b=Math.min(S.paginationGetPageSize()*(S.paginationGetCurrentPage()+1)-1,S.getDisplayedRowCount()-1),A=u.rowIndex;if(A===O){if(na(S,u,R)>d){h();return}c==null&&(c=setTimeout(()=>{S.paginationGetCurrentPage()>0&&(S.paginationGoToPreviousPage(),C(S)),c=null},p))}else if(A===b){if(na(S,u,R){S.paginationGetCurrentPage(){h(),y=null,u!=null&&(u.setHighlighted(null),u=null)},C=(S,R)=>{if(R==null){if(y==null)return;R=y}else y=R;const O=_w(S,R);if(O==null)return;const b=Rw(S,O,R);u!=null&&O.id!==u.id&&m(),O.setHighlighted(b),u=O,f(S,R)},w={...Cr,editType:"fullRow",defaultColDef:{...Cr.defaultColDef,editable:({data:S})=>(S==null?void 0:S.status)==="pending",cellDataType:!1},columnDefs:[{field:"priority",hide:!0,sort:"asc"},...Cr.columnDefs,{headerName:"Action",pinned:"right",minWidth:110,maxWidth:110,resizable:!1,editable:!1,valueGetter:({data:S})=>S==null?void 0:S.id,cellClass:"pending-actions",cellRenderer:({api:S,value:R,data:O})=>{if(O==null||R==null)return;const b=document.createElement("div");return b.innerHTML=` + */var Ur=typeof global>"u"?{}:global;Ur.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement,Ur.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement,Ur.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement,Ur.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement,Ur.Node=typeof Node>"u"?{}:Node,Ur.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var Lo=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},Mo=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0;if(r&&this.selectionService.setNodesSelected({newValue:!1,nodes:t,suppressFinishActions:!0,source:e}),this.selectionService.updateGroupsFromChildrenSelections(e),r){var o={type:g.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(o)}},n.prototype.executeAdd=function(t,e){var r=this,o,i=t.add,s=t.addIndex;if(!j.missingOrEmpty(i)){var a=i.map(function(y){return r.createNode(y,r.rootNode,n.TOP_LEVEL)});if(typeof s=="number"&&s>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=s,p=this.gridOptionsService.get("treeData");if(p&&s>0&&u>0){for(var d=0;d=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Ie=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},xe=function(n,t,e){if(e||arguments.length===2)for(var r=0,o=t.length,i;r0;)o=o.childrenAfterSort[0];return o.rowIndex},t.prototype.getRowBounds=function(e){if(j.missing(this.rowsToDisplay))return null;var r=this.rowsToDisplay[e];return r?{rowTop:r.rowTop,rowHeight:r.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:z.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var r=this.gridOptionsService.isAnimateRows(),o=e.columns.length===0||e.columns.some(function(s){return s.isPrimary()}),i=o?z.FILTER:z.FILTER_AGGREGATES;this.refreshModel({step:i,keepRenderedRows:!0,animate:r})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:z.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return"clientSide"},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:z.PIVOT}):this.refreshModel({step:z.AGGREGATE})},t.prototype.createChangePath=function(e){var r=j.missingOrEmpty(e),o=new Ti(!1,this.rootNode);return(r||this.gridOptionsService.get("treeData"))&&o.setInactive(),o},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.get("suppressModelUpdateAfterUpdateTransaction")||e.rowNodeTransactions==null)return!1;var r=e.rowNodeTransactions.filter(function(i){return i.add!=null&&i.add.length>0||i.remove!=null&&i.remove.length>0}),o=r==null||r.length==0;return o},t.prototype.buildRefreshModelParams=function(e){var r=z.EVERYTHING,o={everything:z.EVERYTHING,group:z.EVERYTHING,filter:z.FILTER,map:z.MAP,aggregate:z.AGGREGATE,sort:z.SORT,pivot:z.PIVOT};if(j.exists(e)&&(r=o[e]),j.missing(r)){console.error("AG Grid: invalid step ".concat(e,", available steps are ").concat(Object.keys(o).join(", ")));return}var i=!this.gridOptionsService.get("suppressAnimationFrame"),s={step:r,keepRenderedRows:!0,keepEditingRows:!0,animate:i};return s},t.prototype.refreshModel=function(e){if(!(!this.hasStarted||this.isRefreshingModel||this.columnModel.shouldRowModelIgnoreRefresh())){var r=typeof e=="object"&&"step"in e?e:this.buildRefreshModelParams(e);if(r&&!this.isSuppressModelUpdateAfterUpdateTransaction(r)){var o=this.createChangePath(r.rowNodeTransactions);switch(this.isRefreshingModel=!0,r.step){case z.EVERYTHING:this.doRowGrouping(r.rowNodeTransactions,r.rowNodeOrder,o,!!r.afterColumnsChanged);case z.FILTER:this.doFilter(o);case z.PIVOT:this.doPivot(o);case z.AGGREGATE:this.doAggregate(o);case z.FILTER_AGGREGATES:this.doFilterAggregates(o);case z.SORT:this.doSort(r.rowNodeTransactions,o);case z.MAP:this.doRowsToDisplay()}var i=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,i),this.isRefreshingModel=!1;var s={type:g.EVENT_MODEL_UPDATED,animate:r.animate,keepRenderedRows:r.keepRenderedRows,newData:r.newData,newPage:!1,keepUndoRedoStack:r.keepUndoRedoStack};this.eventService.dispatchEvent(s)}}},t.prototype.isEmpty=function(){var e=j.missing(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return j.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return j.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,r){var o=!r,i=!1,s=[],a=this.gridOptionsService.get("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort(function(l){if(!i){if(o&&(l===r||l===e)&&(i=!0,l.group&&a)){s.push.apply(s,xe([],Ie(l.allLeafChildren),!1));return}if(!o){if(l!==r&&l!==e)return;o=!0}var u=!l.group||!a;if(u){s.push(l);return}}}),s},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||this.rowsToDisplay.length===0)return-1;var r=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;var i=j.last(this.rowsToDisplay);if(i.rowTop<=e)return this.rowsToDisplay.length-1;for(var s=-1,a=-1;;){var l=Math.floor((r+o)/2),u=this.rowsToDisplay[l];if(this.isRowInPixel(u,e))return l;u.rowTope&&(o=l-1);var c=s===r&&a===o;if(c)return l;s=r,a=o}},t.prototype.isRowInPixel=function(e,r){var o=e.rowTop,i=e.rowTop+e.rowHeight,s=o<=r&&i>r;return s},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(r,o){return e(r,o)})},t.prototype.forEachNode=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:xe([],Ie(this.rootNode.childrenAfterGroup||[]),!1),callback:e,recursionType:Rt.Normal,index:0,includeFooterNodes:r})},t.prototype.forEachNodeAfterFilter=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:xe([],Ie(this.rootNode.childrenAfterAggFilter||[]),!1),callback:e,recursionType:Rt.AfterFilter,index:0,includeFooterNodes:r})},t.prototype.forEachNodeAfterFilterAndSort=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:xe([],Ie(this.rootNode.childrenAfterSort||[]),!1),callback:e,recursionType:Rt.AfterFilterAndSort,index:0,includeFooterNodes:r})},t.prototype.forEachPivotNode=function(e,r){r===void 0&&(r=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:Rt.PivotNodes,index:0,includeFooterNodes:r})},t.prototype.recursivelyWalkNodesAndCallback=function(e){for(var r,o=e.nodes,i=e.callback,s=e.recursionType,a=e.includeFooterNodes,l=e.index,u=0;u0&&window.setTimeout(function(){r.forEach(function(a){return a()})},0),o.length>0){var s={type:g.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(s)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,r){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,r),i=typeof e.addIndex=="number";return this.commonUpdateRowData([o],r,i),o},t.prototype.createRowNodeOrder=function(){var e=this.gridOptionsService.get("suppressMaintainUnsortedOrder");if(!e){var r={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var o=0;o=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},GS=function(n){NS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.execute=function(e){var r=e.changedPath;this.filterService.filter(r)},Ju([v("filterService")],t.prototype,"filterService",void 0),t=Ju([x("filterStage")],t),t}(D),VS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ta=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},HS=function(n){VS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.execute=function(e){var r=this,o=this.sortController.getSortOptions(),i=j.exists(o)&&o.length>0,s=i&&j.exists(e.rowNodeTransactions)&&this.gridOptionsService.get("deltaSort"),a=o.some(function(l){var u=r.gridOptionsService.isColumnsSortingCoupledToGroup();return u?l.column.isPrimary()&&l.column.isRowGroupActive():!!l.column.getColDef().showRowGroup});this.sortService.sort(o,i,s,e.rowNodeTransactions,e.changedPath,a)},ta([v("sortService")],t.prototype,"sortService",void 0),ta([v("sortController")],t.prototype,"sortController",void 0),t=ta([x("sortStage")],t),t}(D),BS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ra=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},kS=function(n){BS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.execute=function(e){var r=e.rowNode,o=[],i=this.columnModel.isPivotMode(),s=i&&r.leafGroup,a=s?[r]:r.childrenAfterSort,l=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(l,a,o,i,0);var u=o.length>0,c=!s&&u&&l.groupIncludeTotalFooter;return c&&(r.createFooter(),this.addRowNodeToRowsToDisplay(l,r.sibling,o,0)),o},t.prototype.getFlattenDetails=function(){var e=this.gridOptionsService.get("groupRemoveSingleChildren"),r=!e&&this.gridOptionsService.get("groupRemoveLowestSingleChildren");return{groupRemoveLowestSingleChildren:r,groupRemoveSingleChildren:e,isGroupMultiAutoColumn:this.gridOptionsService.isGroupMultiAutoColumn(),hideOpenParents:this.gridOptionsService.get("groupHideOpenParents"),groupIncludeTotalFooter:this.gridOptionsService.get("groupIncludeTotalFooter"),getGroupIncludeFooter:this.gridOptionsService.getGroupIncludeFooter()}},t.prototype.recursivelyAddToRowsToDisplay=function(e,r,o,i,s){if(!j.missingOrEmpty(r))for(var a=0;a=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},jS=function(n){WS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.sort=function(e,r,o,i,s,a){var l=this,u=this.gridOptionsService.get("groupMaintainOrder"),c=this.columnModel.getAllGridColumns().some(function(y){return y.isRowGroupActive()}),p={};o&&i&&(p=this.calculateDirtyNodes(i));var d=this.columnModel.isPivotMode(),h=this.gridOptionsService.getCallback("postSortRows"),f=function(y){var C;l.pullDownGroupDataForHideOpenParents(y.childrenAfterAggFilter,!0);var m=d&&y.leafGroup,w=u&&c&&!y.leafGroup&&!a;if(w){var E=(C=l.columnModel.getRowGroupColumns())===null||C===void 0?void 0:C[y.level+1],S=(E==null?void 0:E.getSort())===null,R=y.childrenAfterAggFilter.slice(0);if(y.childrenAfterSort&&!S){var O={};y.childrenAfterSort.forEach(function(A,M){O[A.id]=M}),R.sort(function(A,M){var N,I;return((N=O[A.id])!==null&&N!==void 0?N:0)-((I=O[M.id])!==null&&I!==void 0?I:0)})}y.childrenAfterSort=R}else!r||m?y.childrenAfterSort=y.childrenAfterAggFilter.slice(0):o?y.childrenAfterSort=l.doDeltaSort(y,p,s,e):y.childrenAfterSort=l.rowNodeSorter.doFullSort(y.childrenAfterAggFilter,e);if(y.sibling&&(y.sibling.childrenAfterSort=y.childrenAfterSort),l.updateChildIndexes(y),h){var b={nodes:y.childrenAfterSort};h(b)}};s&&s.forEachChangedNodeDepthFirst(f),this.updateGroupDataForHideOpenParents(s)},t.prototype.calculateDirtyNodes=function(e){var r={},o=function(i){i&&i.forEach(function(s){return r[s.id]=!0})};return e&&e.forEach(function(i){o(i.add),o(i.update),o(i.remove)}),r},t.prototype.doDeltaSort=function(e,r,o,i){var s=this,a=e.childrenAfterAggFilter,l=e.childrenAfterSort;if(!l)return this.rowNodeSorter.doFullSort(a,i);var u={},c=[];a.forEach(function(f){r[f.id]||!o.canSkip(f)?c.push(f):u[f.id]=!0});var p=l.filter(function(f){return u[f.id]}),d=function(f,y){return{currentPos:y,rowNode:f}},h=c.map(d).sort(function(f,y){return s.rowNodeSorter.compareRowNodes(i,f,y)});return this.mergeSortedArrays(i,h,p.map(d)).map(function(f){var y=f.rowNode;return y})},t.prototype.mergeSortedArrays=function(e,r,o){for(var i=[],s=0,a=0;s=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},zS=function(n){US(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.filter=function(e){var r=this.filterManager.isChildFilterPresent();this.filterNodes(r,e)},t.prototype.filterNodes=function(e,r){var o=this,i=function(u,c){u.hasChildren()&&e&&!c?u.childrenAfterFilter=u.childrenAfterGroup.filter(function(p){var d=p.childrenAfterFilter&&p.childrenAfterFilter.length>0,h=p.data&&o.filterManager.doesRowPassFilter({rowNode:p});return d||h}):u.childrenAfterFilter=u.childrenAfterGroup,u.sibling&&(u.sibling.childrenAfterFilter=u.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var s=function(u,c){if(u.childrenAfterGroup)for(var p=0;p=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},$S=function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return i},YS=function(n){KS(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){var e=this;this.rowModel.getType()==="clientSide"&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",function(){return e.onRowDataUpdated()}))},t.prototype.isActive=function(){var e=this.gridOptionsService.exists("getRowId"),r=this.gridOptionsService.get("resetRowDataOnUpdate");return r?!1:e},t.prototype.setRowData=function(e){var r=this.createTransactionForRowData(e);if(r){var o=$S(r,2),i=o[0],s=o[1];this.clientSideRowModel.updateRowData(i,s)}},t.prototype.createTransactionForRowData=function(e){if(j.missing(this.clientSideRowModel)){console.error("AG Grid: ImmutableService only works with ClientSideRowModel");return}var r=this.gridOptionsService.getCallback("getRowId");if(r==null){console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!");return}var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),s=this.gridOptionsService.get("suppressMaintainUnsortedOrder"),a=s?void 0:{};return j.exists(e)&&e.forEach(function(l,u){var c=r({data:l,level:0}),p=i[c];if(a&&(a[c]=u),p){var d=p.data!==l;d&&o.update.push(l),i[c]=void 0}else o.add.push(l)}),j.iterateObject(i,function(l,u){u&&o.remove.push(u.data)}),[o,a]},t.prototype.onRowDataUpdated=function(){var e=this.gridOptionsService.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))},Io([v("rowModel")],t.prototype,"rowModel",void 0),Io([v("rowRenderer")],t.prototype,"rowRenderer",void 0),Io([v("selectionService")],t.prototype,"selectionService",void 0),Io([F],t.prototype,"postConstruct",null),t=Io([x("immutableService")],t),t}(D),qS="31.1.1",QS={version:qS,moduleName:G.ClientSideRowModelModule,rowModel:"clientSide",beans:[xS,GS,HS,kS,jS,zS,YS]},XS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ia=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tc=function(n){XS(t,n);function t(e,r,o){var i=n.call(this,e)||this;return i.parentCache=r,i.params=o,i.startRow=e*o.blockSize,i.endRow=i.startRow+o.blockSize,i}return t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,r,o){j.exists(r)?e.setDataAndId(r,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,r=this.createLoadParams();if(j.missing(this.params.datasource.getRows)){console.warn("AG Grid: datasource is missing getRows method");return}window.setTimeout(function(){e.params.datasource.getRows(r)},0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){var e={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.getGridCommonParams().context};return e},t.prototype.forEachNode=function(e,r,o){var i=this;this.rowNodes.forEach(function(s,a){var l=i.startRow+a;l=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,o)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},ia([v("beans")],t.prototype,"beans",void 0),ia([F],t.prototype,"postConstruct",null),ia([we],t.prototype,"destroyRowNodes",null),t}(Ms),ZS=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),zi=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},JS=function(n,t){return function(e,r){t(e,r,n)}},ew=function(n){ZS(t,n);function t(e){var r=n.call(this)||this;return r.lastRowIndexKnown=!1,r.blocks={},r.blockCount=0,r.rowCount=e.initialRowCount,r.params=e,r}return t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,r){r===void 0&&(r=!1);var o=Math.floor(e/this.params.blockSize),i=this.blocks[o];if(!i){if(r)return;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var r=this.createBean(new tc(e,this,this.params));return this.blocks[r.getId()]=r,this.blockCount++,this.purgeBlocksIfNeeded(r),this.params.rowNodeBlockLoader.addBlock(r),r},t.prototype.refreshCache=function(){var e=this.blockCount==0;if(e){this.purgeCache();return}this.getBlocksInOrder().forEach(function(r){return r.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(r){return e.destroyBlock(r)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,r){this.isAlive()&&(this.logger.log("onPageLoaded: page = ".concat(e.getId(),", lastRow = ").concat(r)),this.checkRowCount(e,r),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var r=this,o=this.getBlocksInOrder().filter(function(u){return u!=e}),i=function(u,c){return c.getLastAccessed()-u.getLastAccessed()};o.sort(i);var s=this.params.maxBlocksInCache>0,a=s?this.params.maxBlocksInCache-1:null,l=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach(function(u,c){var p=u.getState()===tc.STATE_WAITING_TO_LOAD&&c>=l,d=s?c>=a:!1;if(p||d){if(r.isBlockCurrentlyDisplayed(u)||r.isBlockFocused(u))return;r.removeBlockFromCache(u)}})},t.prototype.isBlockFocused=function(e){var r=this.focusService.getFocusCellToUseAfterRefresh();if(!r||r.rowPinned!=null)return!1;var o=e.getStartRow(),i=e.getEndRow(),s=r.rowIndex>=o&&r.rowIndex=0)this.rowCount=r,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(e.getId()+1)*this.params.blockSize,i=o+this.params.overflowSize;this.rowCount=e.rowCount&&r.push(o)}),r.length>0&&r.forEach(function(o){return e.destroyBlock(o)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(r){return e.removeBlockFromCache(r)}),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,r){var o=this,i=[],s=-1,a=!1,l=new Dr;j.missing(e)&&(a=!0);var u=!1;this.getBlocksInOrder().forEach(function(p){if(!u){if(a&&s+1!==p.getId()){u=!0;return}s=p.getId(),p.forEachNode(function(d){var h=d===e||d===r;(a||h)&&i.push(d),h&&(a=!a)},l,o.rowCount)}});var c=u||a;return c?[]:i},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,zi([v("rowRenderer")],t.prototype,"rowRenderer",void 0),zi([v("focusService")],t.prototype,"focusService",void 0),zi([JS(0,Ye("loggerFactory"))],t.prototype,"setBeans",null),zi([we],t.prototype,"destroyAllBlocks",null),t}(D),tw=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qt=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},rw=function(n){tw(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,r,o,i){return!1},t.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){this.gridOptionsService.exists("initialGroupOrderComparator")&&j.warnOnce("initialGroupOrderComparator cannot be used with Infinite Row Model as sorting is done on the server side")},t.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,g.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,g.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,g.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this)),this.addManagedPropertyListener("datasource",function(){return e.setDatasource(e.gridOptionsService.get("datasource"))}),this.addManagedPropertyListener("cacheBlockSize",function(){return e.resetCache()}),this.addManagedPropertyListener("rowHeight",function(){e.rowHeight=e.gridOptionsService.getRowHeightAsNumber(),e.cacheParams.rowHeight=e.rowHeight,e.updateRowHeights()})},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){var e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()},t.prototype.isSortModelDifferent=function(){return!j.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return"infinite"},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,r){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,r):[]},t.prototype.reset=function(){if(this.datasource){var e=this.gridOptionsService.getCallback("getRowId"),r=e!=null;r||this.selectionService.reset("rowDataChanged"),this.resetCache()}},t.prototype.createModelUpdatedEvent=function(){return{type:g.EVENT_MODEL_UPDATED,newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.gridOptionsService.get("infiniteInitialRowCount"),maxBlocksInCache:this.gridOptionsService.get("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.gridOptionsService.get("cacheOverflowSize"),blockSize:this.gridOptionsService.get("cacheBlockSize"),lastAccessedSequence:new Dr},this.infiniteCache=this.createBean(new ew(this.cacheParams)),this.eventService.dispatchEventOnce({type:g.EVENT_ROW_COUNT_READY});var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.updateRowHeights=function(){var e=this;this.forEachNode(function(o){o.setRowHeight(e.rowHeight),o.setRowTop(e.rowHeight*o.rowIndex)});var r=this.createModelUpdatedEvent();this.eventService.dispatchEvent(r)},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var r;return this.forEachNode(function(o){o.id===e&&(r=o)}),r},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(this.rowHeight!==0){var r=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return r>o?o:r}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){var r=this.getRowNode(e.id);return!!r},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1},t.prototype.setRowCount=function(e,r){this.infiniteCache&&this.infiniteCache.setRowCount(e,r)},Qt([v("filterManager")],t.prototype,"filterManager",void 0),Qt([v("sortController")],t.prototype,"sortController",void 0),Qt([v("selectionService")],t.prototype,"selectionService",void 0),Qt([v("rowRenderer")],t.prototype,"rowRenderer",void 0),Qt([v("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Qt([F],t.prototype,"init",null),Qt([we],t.prototype,"destroyDatasource",null),t=Qt([x("rowModel")],t),t}(D),ow="31.1.1",iw={version:ow,moduleName:G.InfiniteRowModelModule,rowModel:"infinite",beans:[rw]},nw=function(){function n(){}return n.prototype.setBeans=function(t){this.beans=t},n.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return(t==null||!t.length)&&(t=this.getDefaultFileName()),t.indexOf(".")===-1?"".concat(t,".").concat(e):t},n.prototype.getData=function(t){var e=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(e,t)},n.prototype.getDefaultFileName=function(){return"export.".concat(this.getDefaultFileExtension())},n}(),sw=function(){function n(t){this.groupColumns=[];var e=t.columnModel,r=t.valueService,o=t.gridOptionsService,i=t.valueFormatterService,s=t.valueParserService,a=t.processCellCallback,l=t.processHeaderCallback,u=t.processGroupHeaderCallback,c=t.processRowGroupCallback;this.columnModel=e,this.valueService=r,this.gridOptionsService=o,this.valueFormatterService=i,this.valueParserService=s,this.processCellCallback=a,this.processHeaderCallback=l,this.processGroupHeaderCallback=u,this.processRowGroupCallback=c}return n.prototype.prepare=function(t){this.groupColumns=t.filter(function(e){return!!e.getColDef().showRowGroup})},n.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return e??""},n.prototype.extractRowCellValue=function(t,e,r,o,i){var s=this.gridOptionsService.get("groupHideOpenParents"),a=(!s||i.footer)&&this.shouldRenderGroupSummaryCell(i,t,e)?this.createValueForGroupNode(t,i):this.valueService.getValue(t,i),l=this.processCell({accumulatedRowIndex:r,rowNode:i,column:t,value:a,processCellCallback:this.processCellCallback,type:o});return l},n.prototype.shouldRenderGroupSummaryCell=function(t,e,r){var o,i=t&&t.group;if(!i)return!1;var s=this.groupColumns.indexOf(e);if(s!==-1){if(((o=t.groupData)===null||o===void 0?void 0:o[e.getId()])!=null||this.gridOptionsService.isRowModelType("serverSide")&&t.group)return!0;if(t.footer&&t.level===-1){var a=e.getColDef(),l=a==null||a.showRowGroup===!0;return l||a.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var u=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return r===0&&u},n.prototype.getHeaderName=function(t,e){return t?t(this.gridOptionsService.addGridCommonParams({column:e})):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},n.prototype.createValueForGroupNode=function(t,e){var r=this;if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gridOptionsService.addGridCommonParams({column:t,node:e}));var o=this.gridOptionsService.get("treeData"),i=this.gridOptionsService.get("suppressGroupMaintainValueType"),s=function(c){var p,d;if(o||i)return c.key;var h=(p=c.groupData)===null||p===void 0?void 0:p[t.getId()];return!h||!c.rowGroupColumn||c.rowGroupColumn.getColDef().useValueFormatterForExport===!1?h:(d=r.valueFormatterService.formatValue(c.rowGroupColumn,c,h))!==null&&d!==void 0?d:h},a=e.footer,l=[s(e)];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,l.push(s(e));var u=l.reverse().join(" -> ");return a?"Total ".concat(u):u},n.prototype.processCell=function(t){var e=this,r,o=t.accumulatedRowIndex,i=t.rowNode,s=t.column,a=t.value,l=t.processCellCallback,u=t.type;return l?{value:(r=l(this.gridOptionsService.addGridCommonParams({accumulatedRowIndex:o,column:s,node:i,value:a,type:u,parseValue:function(c){return e.valueParserService.parseValue(s,i,c,e.valueService.getValue(s,i))},formatValue:function(c){var p;return(p=e.valueFormatterService.formatValue(s,i,c))!==null&&p!==void 0?p:c}})))!==null&&r!==void 0?r:""}:s.getColDef().useValueFormatterForExport!==!1?{value:a??"",valueFormatted:this.valueFormatterService.formatValue(s,i,a)}:{value:a??""}},n}(),aw=function(){function n(){}return n.download=function(t,e){var r=document.defaultView||window;if(!r){console.warn("AG Grid: There is no `window` associated with the current `document`");return}var o=document.createElement("a"),i=r.URL.createObjectURL(e);o.setAttribute("href",i),o.setAttribute("download",t),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:r})),document.body.removeChild(o),r.setTimeout(function(){r.URL.revokeObjectURL(i)},0)},n}(),lw=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),rc=`\r +`,uw=function(n){lw(t,n);function t(e){var r=n.call(this,e)||this;r.isFirstLine=!0,r.result="";var o=e.suppressQuotes,i=e.columnSeparator;return r.suppressQuotes=o,r.columnSeparator=i,r}return t.prototype.addCustomContent=function(e){var r=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,rc),this.result+=e):e.forEach(function(o){r.beginNewLine(),o.forEach(function(i,s){s!==0&&(r.result+=r.columnSeparator),r.result+=r.putInQuotes(i.data.value||""),i.mergeAcross&&r.appendEmptyCells(i.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,r,o,i){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(r),this.appendEmptyCells(i)},t.prototype.appendEmptyCells=function(e){for(var r=1;r<=e;r++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,r){r!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,r,o){var i;r!=0&&(this.result+=this.columnSeparator);var s=this.extractRowCellValue(e,r,r,"csv",o);this.result+=this.putInQuotes((i=s.valueFormatted)!==null&&i!==void 0?i:s.value)},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var r;typeof e=="string"?r=e:typeof e.toString=="function"?r=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),r="");var o=r.replace(/"/g,'""');return'"'+o+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=rc),this.isFirstLine=!1},t}(sw),cw=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Xt=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},pw=function(n){cw(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var r=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},r,e)},t.prototype.export=function(e){if(this.isExportSuppressed()){console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");return}var r=this.getMergedParams(e),o=this.getData(r),i=new Blob(["\uFEFF",o],{type:"text/plain"}),s=typeof r.fileName=="function"?r.fileName(this.gridOptionsService.getGridCommonParams()):r.fileName;aw.download(this.getFileName(s),i)},t.prototype.exportDataAsCsv=function(e){this.export(e)},t.prototype.getDataAsCsv=function(e,r){r===void 0&&(r=!1);var o=r?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var r=this,o=r.columnModel,i=r.valueService,s=r.gridOptionsService,a=r.valueFormatterService,l=r.valueParserService,u=e,c=u.processCellCallback,p=u.processHeaderCallback,d=u.processGroupHeaderCallback,h=u.processRowGroupCallback,f=u.suppressQuotes,y=u.columnSeparator;return new uw({columnModel:o,valueService:i,gridOptionsService:s,valueFormatterService:a,valueParserService:l,processCellCallback:c||void 0,processHeaderCallback:p||void 0,processGroupHeaderCallback:d||void 0,processRowGroupCallback:h||void 0,suppressQuotes:f||!1,columnSeparator:y||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.get("suppressCsvExport")},Xt([v("columnModel")],t.prototype,"columnModel",void 0),Xt([v("valueService")],t.prototype,"valueService",void 0),Xt([v("gridSerializer")],t.prototype,"gridSerializer",void 0),Xt([v("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Xt([v("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Xt([v("valueParserService")],t.prototype,"valueParserService",void 0),Xt([F],t.prototype,"postConstruct",null),t=Xt([x("csvCreator")],t),t}(nw),dw=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Zt=function(n,t,e,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(i=(o<3?s(i):o>3?s(t,e,i):s(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},oc;(function(n){n[n.HEADER_GROUPING=0]="HEADER_GROUPING",n[n.HEADER=1]="HEADER",n[n.BODY=2]="BODY"})(oc||(oc={}));var hw=function(n){dw(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.serialize=function(e,r){r===void 0&&(r={});var o=r.allColumns,i=r.columnKeys,s=r.skipRowGroups,a=this.getColumnsToExport(o,s,i),l=j.compose(this.prepareSession(a),this.prependContent(r),this.exportColumnGroups(r,a),this.exportHeaders(r,a),this.processPinnedTopRows(r,a),this.processRows(r,a),this.processPinnedBottomRows(r,a),this.appendContent(r));return l(e).parse()},t.prototype.processRow=function(e,r,o,i){var s=r.shouldRowBeSkipped||function(){return!1},a=this.gridOptionsService.get("groupRemoveSingleChildren"),l=this.gridOptionsService.get("groupRemoveLowestSingleChildren"),u=r.rowPositions!=null,c=u||!!r.onlySelected,p=this.gridOptionsService.get("groupHideOpenParents")&&!c,d=this.columnModel.isPivotMode()?i.leafGroup:!i.group,h=!!i.footer;r.skipRowGroups;var f=l&&i.leafGroup,y=i.allChildrenCount===1&&(a||f);if(!(!d&&!h&&(r.skipRowGroups||y||p)||r.onlySelected&&!i.isSelected()||r.skipPinnedTop&&i.rowPinned==="top"||r.skipPinnedBottom&&i.rowPinned==="bottom")){var C=i.level===-1;if(!(C&&!d&&!h)){var m=s(this.gridOptionsService.addGridCommonParams({node:i}));if(!m){var w=e.onNewBodyRow(i);if(o.forEach(function(S,R){w.onColumn(S,R,i)}),r.getCustomContentBelowRow){var E=r.getCustomContentBelowRow(this.gridOptionsService.addGridCommonParams({node:i}));E&&e.addCustomContent(E)}}}}},t.prototype.appendContent=function(e){return function(r){var o=e.appendContent;return o&&r.addCustomContent(o),r}},t.prototype.prependContent=function(e){return function(r){var o=e.prependContent;return o&&r.addCustomContent(o),r}},t.prototype.prepareSession=function(e){return function(r){return r.prepare(e),r}},t.prototype.exportColumnGroups=function(e,r){var o=this;return function(i){if(!e.skipColumnGroupHeaders){var s=new Pa,a=o.displayedGroupCreator.createDisplayedGroups(r,s,null);o.recursivelyAddHeaderGroups(a,i,e.processGroupHeaderCallback)}return i}},t.prototype.exportHeaders=function(e,r){return function(o){if(!e.skipColumnHeaders){var i=o.onNewHeaderRow();r.forEach(function(s,a){i.onColumn(s,a,void 0)})}return o}},t.prototype.processPinnedTopRows=function(e,r){var o=this;return function(i){var s=o.processRow.bind(o,i,e,r);return e.rowPositions?e.rowPositions.filter(function(a){return a.rowPinned==="top"}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return o.pinnedRowModel.getPinnedTopRow(a.rowIndex)}).forEach(s):o.pinnedRowModel.forEachPinnedTopRow(s),i}},t.prototype.processRows=function(e,r){var o=this;return function(i){var s=o.rowModel,a=s.getType(),l=a==="clientSide",u=a==="serverSide",c=!l&&e.onlySelected,p=o.processRow.bind(o,i,e,r),d=e.exportedRows,h=d===void 0?"filteredAndSorted":d;if(e.rowPositions)e.rowPositions.filter(function(y){return y.rowPinned==null}).sort(function(y,C){return y.rowIndex-C.rowIndex}).map(function(y){return s.getRow(y.rowIndex)}).forEach(p);else if(o.columnModel.isPivotMode())l?s.forEachPivotNode(p,!0):u?s.forEachNodeAfterFilterAndSort(p,!0):s.forEachNode(p);else if(e.onlySelectedAllPages||c){var f=o.selectionService.getSelectedNodes();o.replicateSortedOrder(f),f.forEach(p)}else h==="all"?s.forEachNode(p):l||u?s.forEachNodeAfterFilterAndSort(p,!0):s.forEachNode(p);return i}},t.prototype.replicateSortedOrder=function(e){var r=this,o=this.sortController.getSortOptions(),i=function(s,a){var l,u,c,p;return s.rowIndex!=null&&a.rowIndex!=null?s.rowIndex-a.rowIndex:s.level===a.level?((l=s.parent)===null||l===void 0?void 0:l.id)===((u=a.parent)===null||u===void 0?void 0:u.id)?r.rowNodeSorter.compareRowNodes(o,{rowNode:s,currentPos:(c=s.rowIndex)!==null&&c!==void 0?c:-1},{rowNode:a,currentPos:(p=a.rowIndex)!==null&&p!==void 0?p:-1}):i(s.parent,a.parent):s.level>a.level?i(s.parent,a):i(s,a.parent)};e.sort(i)},t.prototype.processPinnedBottomRows=function(e,r){var o=this;return function(i){var s=o.processRow.bind(o,i,e,r);return e.rowPositions?e.rowPositions.filter(function(a){return a.rowPinned==="bottom"}).sort(function(a,l){return a.rowIndex-l.rowIndex}).map(function(a){return o.pinnedRowModel.getPinnedBottomRow(a.rowIndex)}).forEach(s):o.pinnedRowModel.forEachPinnedBottomRow(s),i}},t.prototype.getColumnsToExport=function(e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);var i=this.columnModel.isPivotMode();if(o&&o.length)return this.columnModel.getGridColumns(o);var s=this.gridOptionsService.get("treeData"),a=[];return e&&!i?a=this.columnModel.getAllGridColumns():a=this.columnModel.getAllDisplayedColumns(),r&&!s&&(a=a.filter(function(l){return l.getColId()!==Er})),a},t.prototype.recursivelyAddHeaderGroups=function(e,r,o){var i=[];e.forEach(function(s){var a=s;a.getChildren&&a.getChildren().forEach(function(l){return i.push(l)})}),e.length>0&&e[0]instanceof se&&this.doAddHeaderHeader(r,e,o),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,r,o)},t.prototype.doAddHeaderHeader=function(e,r,o){var i=this,s=e.onNewHeaderGroupingRow(),a=0;r.forEach(function(l){var u=l,c;o?c=o(i.gridOptionsService.addGridCommonParams({columnGroup:u})):c=i.columnModel.getDisplayNameForColumnGroup(u,"header");var p=u.getLeafColumns().reduce(function(d,h,f,y){var C=j.last(d),m=h.getColumnGroupShow()==="open";return m?(!C||C[1]!=null)&&(C=[f],d.push(C)):C&&C[1]==null&&(C[1]=f-1),f===y.length-1&&C&&C[1]==null&&(C[1]=f),d},[]);s.onColumn(u,c||"",a++,u.getLeafColumns().length-1,p)})},Zt([v("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Zt([v("columnModel")],t.prototype,"columnModel",void 0),Zt([v("rowModel")],t.prototype,"rowModel",void 0),Zt([v("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Zt([v("selectionService")],t.prototype,"selectionService",void 0),Zt([v("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Zt([v("sortController")],t.prototype,"sortController",void 0),t=Zt([x("gridSerializer")],t),t}(D),fw="31.1.1",vw={version:fw,moduleName:G.CsvExportModule,beans:[pw,hw]};j.utf8_encode;var gw=[QS,iw,vw];X.registerModules(gw);const yw=`\r + \r + \r +`,Cw=`\r + \r + \r +`,ic=`\r +\r +\r +`,mw=`\r +\r +\r +`,nc=`\r + \r + \r + \r +`,sc=`\r + \r + \r + \r + \r + \r + \r +`,Sw=`\r + \r + \r +\r +`,ww=`\r + \r + \r + \r + \r + \r + \r + \r +`,Ew=`\r + \r + \r + \r + \r +`,_w=`\r +\r +\r +\r +`,Rw=Vs.prototype.setFocusedCell;Vs.prototype.setFocusedCell=function(n){return n.preventScrollOnBrowserFocus==null&&(n.preventScrollOnBrowserFocus=!0),Rw.call(this,n)};const Ow=(n,t)=>{if(n.getDisplayedRowCount()===0)return;const e=n.paginationGetPageSize()*n.paginationGetCurrentPage(),o=n.getDisplayedRowAtIndex(e).rowTop,i=Math.min(n.paginationGetPageSize()*(n.paginationGetCurrentPage()+1)-1,n.getDisplayedRowCount()-1),s=n.getDisplayedRowAtIndex(i),a=s.rowTop+s.rowHeight;let l;return n.forEachNodeAfterFilterAndSort(u=>{const c=u.rowTop,p=u.rowHeight;if(c0&&d{const r=n.paginationGetPageSize()*n.paginationGetCurrentPage(),i=n.getDisplayedRowAtIndex(r).rowTop;return e-(t.rowTop-i)},Tw=(n,t,e)=>na(n,t,e){let e;return function(...r){clearTimeout(e),e=setTimeout(()=>n.apply(this,r),t)}},Pw=n=>(n+"").replace(/[/][/].*$/gm,"").replace(/\s+/g,"").replace(/[/][*][^/*]*[*][/]/g,"").split("){",1)[0].replace(/^[^(]*[(]/,"").replace(/=[^,]+/g,"").split(",").filter(Boolean);var Dw={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const lc=n=>{let t;const e=new Set,r=(c,p)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const h=t;t=p??(typeof d!="object"||d===null)?d:Object.assign({},t,d),e.forEach(f=>f(t,h))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>u,subscribe:c=>(e.add(c),()=>e.delete(c)),destroy:()=>{(Dw?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),e.clear()}},u=t=n(r,o,l);return l},sa=n=>n?lc(n):lc,Aw=n=>{const t=sa()(()=>n),{getState:e,setState:r,subscribe:o}=t,i={refresh:async s=>{const{limit:a=1e3,offset:l=0}=s??{},u=e().status??"";return fetch(`/agent-scheduler/v1/history?status=${u}&limit=${a}&offset=${l}`).then(c=>c.json()).then(c=>(r({...c}),c))},onFilterStatus:s=>{r({status:s}),i.refresh()},bookmarkTask:async(s,a)=>fetch(`/agent-scheduler/v1/task/${s}/${a?"bookmark":"unbookmark"}`,{method:"POST"}).then(l=>l.json()),renameTask:async(s,a)=>fetch(`/agent-scheduler/v1/task/${s}/rename?name=${encodeURIComponent(a)}`,{method:"POST",headers:{"Content-Type":"application/json"}}).then(l=>l.json()),requeueTask:async s=>fetch(`/agent-scheduler/v1/task/${s}/requeue`,{method:"POST"}).then(a=>a.json()),requeueAndPin:async s=>fetch(`/agent-scheduler/v1/task/${s}/do-pin-and-requeue`,{method:"POST"}).then(a=>a.json()),requeueFailedTasks:async()=>fetch("/agent-scheduler/v1/task/requeue-failed",{method:"POST"}).then(s=>(i.refresh(),s.json())),clearHistory:async()=>fetch("/agent-scheduler/v1/history/clear",{method:"POST"}).then(s=>(i.refresh(),s.json()))};return{getState:e,setState:r,subscribe:o,...i}},bw=n=>{const t=sa()(()=>n),{getState:e,setState:r,subscribe:o}=t,i={refresh:async()=>fetch("/agent-scheduler/v1/queue?limit=1000").then(s=>s.json()).then(r),exportQueue:async()=>fetch("/agent-scheduler/v1/export").then(s=>s.json()),importQueue:async s=>fetch("/agent-scheduler/v1/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:s})}).then(l=>l.json()).then(l=>(setTimeout(()=>{i.refresh()},3e3),l)),pauseQueue:async()=>fetch("/agent-scheduler/v1/queue/pause",{method:"POST"}).then(s=>s.json()).then(s=>(setTimeout(()=>{i.refresh()},500),s)),resumeQueue:async()=>fetch("/agent-scheduler/v1/queue/resume",{method:"POST"}).then(s=>s.json()).then(s=>(setTimeout(()=>{i.refresh()},500),s)),clearQueue:async()=>fetch("/agent-scheduler/v1/queue/clear",{method:"POST"}).then(s=>s.json()).then(s=>(i.refresh(),s)),pinTask:async(s,a)=>fetch(`/agent-scheduler/v1/task/${s}/${a?"pin":"unpin"}`,{method:"POST"}).then(l=>l.json()),runTask:async s=>fetch(`/agent-scheduler/v1/task/${s}/run`,{method:"POST"}).then(a=>a.json()).then(a=>(setTimeout(()=>{i.refresh()},500),a)),moveTask:async(s,a)=>fetch(`/agent-scheduler/v1/task/${s}/move/${a}`,{method:"POST"}).then(l=>l.json()).then(l=>(i.refresh(),l)),updateTask:async(s,a)=>{const l={name:a.name,checkpoint:a.params.checkpoint,params:{prompt:a.params.prompt,negative_prompt:a.params.negative_prompt,sampler_name:a.params.sampler_name,steps:a.params.steps,cfg_scale:a.params.cfg_scale}};return fetch(`/agent-scheduler/v1/task/${s}`,{method:"PUT",body:JSON.stringify(l),headers:{"Content-Type":"application/json"}}).then(u=>u.json())},deleteTask:async s=>fetch(`/agent-scheduler/v1/task/${s}`,{method:"DELETE"}).then(a=>a.json())};return{getState:e,setState:r,subscribe:o,...i}},Fw=n=>{const t=sa(()=>n),{getState:e,setState:r,subscribe:o}=t;return{getState:e,setState:r,subscribe:o,...{setSelectedTab:s=>{r({selectedTab:s})},getSamplers:async()=>fetch("/agent-scheduler/v1/samplers").then(s=>s.json()),getCheckpoints:async()=>fetch("/agent-scheduler/v1/sd-models").then(s=>s.json())}}};let Ki;const lt=Fw({uiAsTab:!0,selectedTab:"pending"}),Ot=bw({current_task_id:null,total_pending_tasks:0,pending_tasks:[],paused:!1}),$i=Aw({total:0,tasks:[]}),uc=[],cc=["System"],mr={defaultColDef:{sortable:!1,filter:!0,resizable:!0,suppressMenu:!0},columnDefs:[{field:"name",headerName:"Task Id",cellDataType:"text",minWidth:240,maxWidth:240,pinned:"left",rowDrag:!0,valueGetter:({data:n})=>(n==null?void 0:n.name)??(n==null?void 0:n.id),cellClass:({data:n})=>{if(n!=null)return["cursor-pointer",`task-${n.status}`]}},{field:"type",headerName:"Type",minWidth:80,maxWidth:80,editable:!1},{field:"editing",editable:!1,hide:!0},{headerName:"Params",children:[{field:"params.prompt",headerName:"Prompt",cellDataType:"text",minWidth:200,maxWidth:400,autoHeight:!0,wrapText:!0,cellClass:"wrap-cell"},{field:"params.negative_prompt",headerName:"Negative Prompt",cellDataType:"text",minWidth:200,maxWidth:400,autoHeight:!0,wrapText:!0,cellClass:"wrap-cell"},{field:"params.checkpoint",headerName:"Checkpoint",cellDataType:"text",minWidth:150,maxWidth:300,valueFormatter:({value:n})=>n??"System",cellEditor:"agSelectCellEditor",cellEditorParams:()=>({values:cc})},{field:"params.sampler_name",headerName:"Sampler",cellDataType:"text",width:150,minWidth:150,cellEditor:"agSelectCellEditor",cellEditorParams:()=>({values:uc})},{field:"params.steps",headerName:"Steps",cellDataType:"number",minWidth:80,maxWidth:80,filter:"agNumberColumnFilter",cellEditor:"agNumberCellEditor",cellEditorParams:{min:1,max:150,precision:0,step:1}},{field:"params.cfg_scale",headerName:"CFG Scale",cellDataType:"number",width:100,minWidth:100,filter:"agNumberColumnFilter",cellEditor:"agNumberCellEditor",cellEditorParams:{min:1,max:30,precision:1,step:.5}},{field:"params.size",headerName:"Size",minWidth:110,maxWidth:110,editable:!1,valueGetter:({data:n})=>{const t=n==null?void 0:n.params;return t!=null?`${t.width} × ${t.height}`:void 0}},{field:"params.batch",headerName:"Batching",minWidth:100,maxWidth:100,editable:!1,valueGetter:({data:n})=>{const t=n==null?void 0:n.params;return t!=null?`${t.batch_size} × ${t.n_iter}`:"1 × 1"}}]},{field:"created_at",headerName:"Queued At",minWidth:180,editable:!1,valueFormatter:({value:n})=>n!=null?new Date(n).toLocaleString(document.documentElement.lang):""},{field:"updated_at",headerName:"Updated At",minWidth:180,editable:!1,valueFormatter:({value:n})=>n!=null?new Date(n).toLocaleString(document.documentElement.lang):""}],getRowId:({data:n})=>n.id,rowSelection:"single",animateRows:!0,pagination:!0,paginationAutoPageSize:!0,suppressCopyRowsToClipboard:!0,enableBrowserTooltips:!0};function pc(n){const t=gradioApp().querySelector(n);if(t==null)throw new Error(`Search container '${n}' not found.`);const e=t.getElementsByTagName("input")[0];if(e==null)throw new Error("Search input not found.");e.classList.add("ts-search-input");const r=document.createElement("div");return r.className="ts-search-icon",r.innerHTML=_w,e.parentElement.appendChild(r),e}async function Se(n){if(Ki==null){const t=await Promise.resolve().then(()=>Gw);Ki=new t.Notyf({position:{x:"center",y:"bottom"},duration:3e3})}n.success?Ki.success(n.message):Ki.error(n.message)}window.notify=Se,window.origRandomId=window.randomId;function dc(n,t,e){if(Object.keys(opts).length===0){setTimeout(()=>dc(n,t,e),500);return}const r=Pw(requestProgress),o=gradioApp().querySelector("#agent_scheduler_current_task_images");if(r.includes("progressbarContainer"))requestProgress(n,o,o,e);else{const i=document.createElement("div");i.className="progressDiv",o.parentElement.insertBefore(i,o),requestProgress(n,o,o,()=>{i.remove(),e()},s=>{const a=`${Math.round(s.progress*100)}%`,l=s.paused?"Paused":`ETA: ${Math.round(s.eta)}s`;i.innerText=`${a} ${l}`,i.style.background=`linear-gradient(to right, var(--primary-500) 0%, var(--primary-800) ${a}, var(--neutral-700) ${a})`})}window.randomId=()=>n,t==="txt2img"?submit():t==="img2img"&&submit_img2img(),window.randomId=window.origRandomId}function Lw(){const n=l=>{const u=gradioApp().querySelector(`#${l?"img2img_enqueue_wrapper":"txt2img_enqueue_wrapper"} input`);if(u!=null){const p=u.value;if(p==="Runtime Checkpoint"||p!=="Current Checkpoint")return p}const c=gradioApp().querySelector("#setting_sd_model_checkpoint input");return(c==null?void 0:c.value)??"Current Checkpoint"},t=gradioApp().querySelector("#txt2img_enqueue");window.submit_enqueue=(...l)=>{const u=create_submit_args(l);return u[0]=n(!1),u[1]=randomId(),window.randomId=window.origRandomId,t!=null&&(t.innerText="Queued",setTimeout(()=>{t.innerText="Enqueue",lt.getState().uiAsTab||lt.getState().selectedTab==="pending"&&Ot.refresh()},1e3)),u};const e=gradioApp().querySelector("#img2img_enqueue");window.submit_enqueue_img2img=(...l)=>{const u=create_submit_args(l);return u[0]=n(!0),u[1]=randomId(),u[2]=get_tab_index("mode_img2img"),window.randomId=window.origRandomId,e!=null&&(e.innerText="Queued",setTimeout(()=>{e.innerText="Enqueue",lt.getState().uiAsTab||lt.getState().selectedTab==="pending"&&Ot.refresh()},1e3)),u};const r=gradioApp().querySelector(".interrogate-col");r!=null&&r.childElementCount>2&&r.classList.add("has-queue-button");const o=gradioApp().querySelector("#setting_queue_keyboard_shortcut textarea");if(!o.value.includes("Disabled")){const l=o.value.split("+"),u=l.pop(),c=h=>{if(h.code!==u||l.includes("Shift")&&!h.shiftKey||l.includes("Alt")&&!h.altKey||l.includes("Command")&&!h.metaKey||(l.includes("Control")||l.includes("Ctrl"))&&!h.ctrlKey)return;h.preventDefault(),h.stopPropagation();const f=get_tab_index("tabs");f===0?t.click():f===1&&e.click()};window.addEventListener("keydown",c),gradioApp().querySelector("#txt2img_prompt textarea").addEventListener("keydown",c),gradioApp().querySelector("#img2img_prompt textarea").addEventListener("keydown",c)}Ot.subscribe((l,u)=>{const c=l.current_task_id;if(c!==u.current_task_id&&c!=null){const p=l.pending_tasks.find(d=>d.id===c);dc(c,p==null?void 0:p.type,Ot.refresh)}});const i=(l=!1)=>{const u=prompt("Enter task name");window.randomId=()=>u??window.origRandomId(),l?e.click():t.click()},s=(l=!1)=>{window.randomId=()=>"$$_queue_with_all_checkpoints_$$",l?e.click():t.click()};appendContextMenuOption("#txt2img_enqueue","Queue with task name",()=>i()),appendContextMenuOption("#txt2img_enqueue","Queue with all checkpoints",()=>s()),appendContextMenuOption("#img2img_enqueue","Queue with task name",()=>i(!0)),appendContextMenuOption("#img2img_enqueue","Queue with all checkpoints",()=>s(!0));const a=window.modalSaveImage;window.modalSaveImage=l=>{gradioApp().querySelector("#tab_agent_scheduler").style.display!=="none"?(gradioApp().querySelector("#agent_scheduler_save").click(),l.preventDefault()):a(l)}}function Mw(){lt.subscribe((e,r)=>{(!e.uiAsTab||e.selectedTab!==r.selectedTab)&&(e.selectedTab==="pending"?Ot.refresh():$i.refresh())});const n=new MutationObserver(e=>{e.forEach(r=>{const o=r.target;if(o.style.display!=="none")switch(o.id){case"tab_agent_scheduler":lt.getState().selectedTab==="pending"?Ot.refresh():$i.refresh();break;case"agent_scheduler_pending_tasks_tab":lt.setSelectedTab("pending");break;case"agent_scheduler_history_tab":lt.setSelectedTab("history");break}})}),t=gradioApp().querySelector("#tab_agent_scheduler");t!=null?n.observe(t,{attributeFilter:["style"]}):lt.setState({uiAsTab:!1}),n.observe(gradioApp().querySelector("#agent_scheduler_pending_tasks_tab"),{attributeFilter:["style"]}),n.observe(gradioApp().querySelector("#agent_scheduler_history_tab"),{attributeFilter:["style"]})}function Iw(){const n=Ot;lt.getSamplers().then(S=>uc.push(...S)),lt.getCheckpoints().then(S=>cc.push(...S)),gradioApp().querySelector("#agent_scheduler_action_reload").addEventListener("click",()=>n.refresh());const e=gradioApp().querySelector("#agent_scheduler_action_pause");e.addEventListener("click",()=>n.pauseQueue().then(Se));const r=gradioApp().querySelector("#agent_scheduler_action_resume");r.addEventListener("click",()=>n.resumeQueue().then(Se)),gradioApp().querySelector("#agent_scheduler_action_clear_queue").addEventListener("click",()=>{confirm("Are you sure you want to clear the queue?")&&n.clearQueue().then(Se)});const i=gradioApp().querySelector("#agent_scheduler_action_import"),s=gradioApp().querySelector("#agent_scheduler_import_file");i.addEventListener("click",()=>{s.click()}),s.addEventListener("change",S=>{if(S.target===null)return;const R=s.files;if(R==null||R.length===0)return;const O=R[0],b=new FileReader;b.onload=()=>{const A=b.result;n.importQueue(A).then(Se).then(()=>{s.value="",n.refresh()})},b.readAsText(O)}),gradioApp().querySelector("#agent_scheduler_action_export").addEventListener("click",()=>{n.exportQueue().then(S=>{const R="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(S)),O=document.createElement("a");O.setAttribute("href",R),O.setAttribute("download",`agent-scheduler-${Date.now()}.json`),O.click()})});const l=S=>{S.paused?(e.classList.add("hide","hidden"),r.classList.remove("hide","hidden")):(e.classList.remove("hide","hidden"),r.classList.add("hide","hidden"))};n.subscribe(l),l(n.getState());let u,c;const p=1.5*1e3,d=45/2,h=()=>{c!=null&&(clearTimeout(c),c=null)},f=(S,R)=>{if(u==null){h();return}const O=S.paginationGetPageSize()*S.paginationGetCurrentPage(),b=Math.min(S.paginationGetPageSize()*(S.paginationGetCurrentPage()+1)-1,S.getDisplayedRowCount()-1),A=u.rowIndex;if(A===O){if(na(S,u,R)>d){h();return}c==null&&(c=setTimeout(()=>{S.paginationGetCurrentPage()>0&&(S.paginationGoToPreviousPage(),m(S)),c=null},p))}else if(A===b){if(na(S,u,R){S.paginationGetCurrentPage(){h(),y=null,u!=null&&(u.setHighlighted(null),u=null)},m=(S,R)=>{if(R==null){if(y==null)return;R=y}else y=R;const O=Ow(S,R);if(O==null)return;const b=Tw(S,O,R);u!=null&&O.id!==u.id&&C(),O.setHighlighted(b),u=O,f(S,R)},w={...mr,editType:"fullRow",defaultColDef:{...mr.defaultColDef,editable:({data:S})=>(S==null?void 0:S.pinned)===!0,cellDataType:!1},columnDefs:[{field:"priority",hide:!0,sort:"asc"},{headerName:"Pin",field:"pinned",minWidth:55,maxWidth:55,pinned:"left",tooltipValueGetter:({value:S})=>S===!0?"Unpin":"Pin",cellClass:({value:S})=>["cursor-pointer","pt-3",S===!0?"ts-pinned":"ts-pin"],cellRenderer:({value:S})=>S===!0?mw:ic,onCellClicked:({api:S,data:R,value:O,event:b})=>{if(R==null)return;b!=null&&(b.stopPropagation(),b.preventDefault());const A=O===!0;n.pinTask(R.id,!A).then(M=>{Se(M),S.applyTransaction({update:[{...R,pinned:!A}]})})}},...mr.columnDefs,{headerName:"Action",pinned:"right",minWidth:110,maxWidth:110,resizable:!1,editable:!1,valueGetter:({data:S})=>S==null?void 0:S.id,cellClass:"pending-actions",cellRenderer:({api:S,value:R,data:O})=>{if(O==null||R==null)return;const b=document.createElement("div");return b.innerHTML=`
- `,b.querySelector("button.ts-btn-save").addEventListener("click",()=>{S.showLoadingOverlay(),Ot.updateTask(O.id,O).then(W=>{xe(W),S.hideOverlay(),S.stopEditing(!1)})}),b.querySelector("button.ts-btn-cancel").addEventListener("click",()=>S.stopEditing(!0)),b.querySelector("button.ts-btn-run").addEventListener("click",()=>{S.showLoadingOverlay(),n.runTask(R).then(()=>S.hideOverlay())}),b.querySelector("button.ts-btn-delete").addEventListener("click",()=>{S.showLoadingOverlay(),n.deleteTask(R).then(W=>{xe(W),S.applyTransaction({remove:[O]}),S.hideOverlay()})}),b}}],onColumnMoved:({api:S})=>{const R=S.getColumnState(),O=JSON.stringify(R);localStorage.setItem("agent_scheduler:queue_col_state",O)},onSortChanged:({api:S})=>{const R=S.getColumnState(),O=JSON.stringify(R);localStorage.setItem("agent_scheduler:queue_col_state",O)},onColumnResized:({api:S})=>{const R=S.getColumnState(),O=JSON.stringify(R);localStorage.setItem("agent_scheduler:queue_col_state",O)},onGridReady:({api:S})=>{cc("#agent_scheduler_action_search").addEventListener("keyup",sc(function(){S.updateGridOptions({quickFilterText:this.value})},200));const O=A=>{if(S.updateGridOptions({rowData:A.pending_tasks}),A.current_task_id!=null){const M=S.getRowNode(A.current_task_id);M!=null&&S.refreshCells({rowNodes:[M],force:!0})}S.clearFocusedCell(),S.autoSizeAllColumns()};n.subscribe(O),O(n.getState());const b=localStorage.getItem("agent_scheduler:queue_col_state");if(b!=null){const A=JSON.parse(b);S.applyColumnState({state:A,applyOrder:!0})}},onRowDragEnter:({api:S,y:R})=>C(S,R),onRowDragMove:({api:S,y:R})=>C(S,R),onRowDragLeave:()=>m(),onRowDragEnd:({api:S,node:R})=>{var ee,oe,Z;const O=u;if(O==null){m();return}const b=(ee=R.data)==null?void 0:ee.id,A=(oe=O.data)==null?void 0:oe.id;if(b==null||A==null||b===A){m();return}let M=-1,N=-1;const I=[...n.getState().pending_tasks].sort((te,Q)=>te.priority-Q.priority);for(let te=0;te{m(),S.hideOverlay()})},onRowEditingStarted:({api:S,data:R,node:O})=>{R!=null&&(O.setDataValue("editing",!0),S.refreshCells({rowNodes:[O],force:!0}))},onRowEditingStopped:({api:S,data:R,node:O})=>{R!=null&&(O.setDataValue("editing",!1),S.refreshCells({rowNodes:[O],force:!0}))},onRowValueChanged:({api:S,data:R})=>{R!=null&&(S.showLoadingOverlay(),Ot.updateTask(R.id,R).then(O=>{xe(O),S.hideOverlay()}))}},E=gradioApp().querySelector("#agent_scheduler_pending_tasks_grid");if(typeof E.dataset.pageSize=="string"){const S=parseInt(E.dataset.pageSize,10);S>0&&(w.paginationAutoPageSize=!1,w.paginationPageSize=S)}Xu(E,w)}function Mw(){const n=$i;gradioApp().querySelector("#agent_scheduler_action_refresh_history").addEventListener("click",()=>n.refresh()),gradioApp().querySelector("#agent_scheduler_action_clear_history").addEventListener("click",()=>{confirm("Are you sure you want to clear the history?")&&n.clearHistory().then(xe)}),gradioApp().querySelector("#agent_scheduler_action_requeue").addEventListener("click",()=>{n.requeueFailedTasks().then(xe)});const o=gradioApp().querySelector("#agent_scheduler_history_selected_task textarea"),i=gradioApp().querySelector("#agent_scheduler_history_selected_image textarea");gradioApp().querySelector("#agent_scheduler_history_gallery").addEventListener("click",u=>{const c=u.target;if((c==null?void 0:c.tagName)==="IMG"){const p=Array.prototype.indexOf.call(c.parentElement.parentElement.children,c.parentElement);i.value=p.toString(),i.dispatchEvent(new Event("input",{bubbles:!0}))}}),window.agent_scheduler_status_filter_changed=u=>{n.onFilterStatus(u==null?void 0:u.toLowerCase())};const a={...Cr,readOnlyEdit:!0,defaultColDef:{...Cr.defaultColDef,sortable:!0,editable:({colDef:u})=>(u==null?void 0:u.field)==="name"},columnDefs:[{headerName:"",field:"bookmarked",minWidth:55,maxWidth:55,pinned:"left",sort:"desc",tooltipValueGetter:({value:u})=>u===!0?"Unbookmark":"Bookmark",cellClass:({value:u})=>["cursor-pointer","pt-3",u===!0?"ts-bookmarked":"ts-bookmark"],cellRenderer:({value:u})=>u===!0?yw:gw,onCellClicked:({api:u,data:c,value:p,event:d})=>{if(c==null)return;d!=null&&(d.stopPropagation(),d.preventDefault());const h=p===!0;n.bookmarkTask(c.id,!h).then(f=>{xe(f),u.applyTransaction({update:[{...c,bookmarked:!h}]})})}},{field:"priority",hide:!0,sort:"desc"},{...Cr.columnDefs[0],rowDrag:!1},...Cr.columnDefs.slice(1),{headerName:"Action",pinned:"right",minWidth:110,maxWidth:110,resizable:!1,valueGetter:({data:u})=>u==null?void 0:u.id,cellRenderer:({api:u,data:c,value:p})=>{if(c==null||p==null)return;const d=document.createElement("div");return d.innerHTML=` -
+ `,b.querySelector("button.ts-btn-save").addEventListener("click",()=>{S.showLoadingOverlay(),Ot.updateTask(O.id,O).then(W=>{Se(W),S.hideOverlay(),S.stopEditing(!1)})}),b.querySelector("button.ts-btn-cancel").addEventListener("click",()=>S.stopEditing(!0)),b.querySelector("button.ts-btn-run").addEventListener("click",()=>{S.showLoadingOverlay(),n.runTask(R).then(()=>S.hideOverlay())}),b.querySelector("button.ts-btn-delete").addEventListener("click",()=>{S.showLoadingOverlay(),n.deleteTask(R).then(W=>{Se(W),S.applyTransaction({remove:[O]}),S.hideOverlay()})}),b}}],onColumnMoved:({api:S})=>{const R=S.getColumnState(),O=JSON.stringify(R);localStorage.setItem("agent_scheduler:queue_col_state",O)},onSortChanged:({api:S})=>{const R=S.getColumnState(),O=JSON.stringify(R);localStorage.setItem("agent_scheduler:queue_col_state",O)},onColumnResized:({api:S})=>{const R=S.getColumnState(),O=JSON.stringify(R);localStorage.setItem("agent_scheduler:queue_col_state",O)},onGridReady:({api:S})=>{pc("#agent_scheduler_action_search").addEventListener("keyup",ac(function(){S.updateGridOptions({quickFilterText:this.value})},200));const O=A=>{if(S.updateGridOptions({rowData:A.pending_tasks}),A.current_task_id!=null){const M=S.getRowNode(A.current_task_id);M!=null&&S.refreshCells({rowNodes:[M],force:!0})}S.clearFocusedCell(),S.autoSizeAllColumns()};n.subscribe(O),O(n.getState());const b=localStorage.getItem("agent_scheduler:queue_col_state");if(b!=null){const A=JSON.parse(b);S.applyColumnState({state:A,applyOrder:!0})}},onRowDragEnter:({api:S,y:R})=>m(S,R),onRowDragMove:({api:S,y:R})=>m(S,R),onRowDragLeave:()=>C(),onRowDragEnd:({api:S,node:R})=>{var ee,oe,J;const O=u;if(O==null){C();return}const b=(ee=R.data)==null?void 0:ee.id,A=(oe=O.data)==null?void 0:oe.id;if(b==null||A==null||b===A){C();return}let M=-1,N=-1;const I=[...n.getState().pending_tasks].sort((te,Q)=>te.priority-Q.priority);for(let te=0;te{C(),S.hideOverlay()})},onRowEditingStarted:({api:S,data:R,node:O})=>{R!=null&&(O.setDataValue("editing",!0),S.refreshCells({rowNodes:[O],force:!0}))},onRowEditingStopped:({api:S,data:R,node:O})=>{R!=null&&(O.setDataValue("editing",!1),S.refreshCells({rowNodes:[O],force:!0}))},onRowValueChanged:({api:S,data:R})=>{R!=null&&(S.showLoadingOverlay(),Ot.updateTask(R.id,R).then(O=>{Se(O),S.hideOverlay()}))}},E=gradioApp().querySelector("#agent_scheduler_pending_tasks_grid");if(typeof E.dataset.pageSize=="string"){const S=parseInt(E.dataset.pageSize,10);S>0&&(w.paginationAutoPageSize=!1,w.paginationPageSize=S)}Xu(E,w)}function xw(){const n=$i;gradioApp().querySelector("#agent_scheduler_action_refresh_history").addEventListener("click",()=>n.refresh()),gradioApp().querySelector("#agent_scheduler_action_clear_history").addEventListener("click",()=>{confirm("Are you sure you want to clear the history?")&&n.clearHistory().then(Se)}),gradioApp().querySelector("#agent_scheduler_action_requeue").addEventListener("click",()=>{n.requeueFailedTasks().then(Se)});const o=gradioApp().querySelector("#agent_scheduler_history_selected_task textarea"),i=gradioApp().querySelector("#agent_scheduler_history_selected_image textarea");gradioApp().querySelector("#agent_scheduler_history_gallery").addEventListener("click",u=>{const c=u.target;if((c==null?void 0:c.tagName)==="IMG"){const p=Array.prototype.indexOf.call(c.parentElement.parentElement.children,c.parentElement);i.value=p.toString(),i.dispatchEvent(new Event("input",{bubbles:!0}))}}),window.agent_scheduler_status_filter_changed=u=>{n.onFilterStatus(u==null?void 0:u.toLowerCase())};const a={...mr,readOnlyEdit:!0,defaultColDef:{...mr.defaultColDef,sortable:!0,editable:({colDef:u})=>(u==null?void 0:u.field)==="name"},columnDefs:[{headerName:"",field:"bookmarked",minWidth:55,maxWidth:55,pinned:"left",sort:"desc",tooltipValueGetter:({value:u})=>u===!0?"Unbookmark":"Bookmark",cellClass:({value:u})=>["cursor-pointer","pt-3",u===!0?"ts-bookmarked":"ts-bookmark"],cellRenderer:({value:u})=>u===!0?Cw:yw,onCellClicked:({api:u,data:c,value:p,event:d})=>{if(c==null)return;d!=null&&(d.stopPropagation(),d.preventDefault());const h=p===!0;n.bookmarkTask(c.id,!h).then(f=>{Se(f),u.applyTransaction({update:[{...c,bookmarked:!h}]})})}},{field:"priority",hide:!0,sort:"desc"},{...mr.columnDefs[0],rowDrag:!1},...mr.columnDefs.slice(1),{headerName:"Action",pinned:"right",minWidth:110,maxWidth:110,resizable:!1,valueGetter:({data:u})=>u==null?void 0:u.id,cellRenderer:({api:u,data:c,value:p})=>{if(c==null||p==null)return;const d=document.createElement("div");return d.innerHTML=` +
+
- `,d.querySelector("button.ts-btn-run").addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),n.requeueTask(p).then(xe)}),d.querySelector("button.ts-btn-delete").addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),u.showLoadingOverlay(),Ot.deleteTask(p).then(m=>{xe(m),u.applyTransaction({remove:[c]}),u.hideOverlay()})}),d}}],rowSelection:"single",suppressRowDeselection:!0,onColumnMoved:({api:u})=>{const c=u.getColumnState(),p=JSON.stringify(c);localStorage.setItem("agent_scheduler:history_col_state",p)},onSortChanged:({api:u})=>{const c=u.getColumnState(),p=JSON.stringify(c);localStorage.setItem("agent_scheduler:history_col_state",p)},onColumnResized:({api:u})=>{const c=u.getColumnState(),p=JSON.stringify(c);localStorage.setItem("agent_scheduler:history_col_state",p)},onGridReady:({api:u})=>{cc("#agent_scheduler_action_search_history").addEventListener("keyup",sc(function(){u.updateGridOptions({quickFilterText:this.value})},200));const p=h=>{u.updateGridOptions({rowData:h.tasks}),u.clearFocusedCell(),u.autoSizeAllColumns()};n.subscribe(p),p(n.getState());const d=localStorage.getItem("agent_scheduler:history_col_state");if(d!=null){const h=JSON.parse(d);u.applyColumnState({state:h,applyOrder:!0})}},onSelectionChanged:({api:u})=>{const[c]=u.getSelectedRows();o.value=c.id,o.dispatchEvent(new Event("input",{bubbles:!0}))},onCellEditRequest:({api:u,data:c,colDef:p,newValue:d})=>{if(p.field!=="name")return;const h=d;h!=null&&(u.showLoadingOverlay(),$i.renameTask(c.id,h).then(f=>{xe(f);const y={...c,name:h};u.applyTransaction({update:[y]}),u.hideOverlay()}))}},l=gradioApp().querySelector("#agent_scheduler_history_tasks_grid");if(typeof l.dataset.pageSize=="string"){const u=parseInt(l.dataset.pageSize,10);u>0&&(a.paginationAutoPageSize=!1,a.paginationPageSize=u)}Xu(l,a)}let dc=!1;onUiLoaded(function n(){if(gradioApp().querySelector("#agent_scheduler_tabs")==null){setTimeout(n,500);return}dc||(bw(),Fw(),Lw(),Mw(),dc=!0)});/*! ***************************************************************************** + `,d.querySelector("button.ts-btn-run").addEventListener("click",C=>{C.preventDefault(),C.stopPropagation(),n.requeueTask(p).then(Se)}),d.querySelector("button.ts-btn-run-and-pin").addEventListener("click",C=>{C.preventDefault(),C.stopPropagation(),n.requeueAndPin(p).then(Se)}),d.querySelector("button.ts-btn-delete").addEventListener("click",C=>{C.preventDefault(),C.stopPropagation(),u.showLoadingOverlay(),Ot.deleteTask(p).then(m=>{Se(m),u.applyTransaction({remove:[c]}),u.hideOverlay()})}),d}}],rowSelection:"single",suppressRowDeselection:!0,onColumnMoved:({api:u})=>{const c=u.getColumnState(),p=JSON.stringify(c);localStorage.setItem("agent_scheduler:history_col_state",p)},onSortChanged:({api:u})=>{const c=u.getColumnState(),p=JSON.stringify(c);localStorage.setItem("agent_scheduler:history_col_state",p)},onColumnResized:({api:u})=>{const c=u.getColumnState(),p=JSON.stringify(c);localStorage.setItem("agent_scheduler:history_col_state",p)},onGridReady:({api:u})=>{pc("#agent_scheduler_action_search_history").addEventListener("keyup",ac(function(){u.updateGridOptions({quickFilterText:this.value})},200));const p=h=>{u.updateGridOptions({rowData:h.tasks}),u.clearFocusedCell(),u.autoSizeAllColumns()};n.subscribe(p),p(n.getState());const d=localStorage.getItem("agent_scheduler:history_col_state");if(d!=null){const h=JSON.parse(d);u.applyColumnState({state:h,applyOrder:!0})}},onSelectionChanged:({api:u})=>{const[c]=u.getSelectedRows();o.value=c.id,o.dispatchEvent(new Event("input",{bubbles:!0}))},onCellEditRequest:({api:u,data:c,colDef:p,newValue:d})=>{if(p.field!=="name")return;const h=d;h!=null&&(u.showLoadingOverlay(),$i.renameTask(c.id,h).then(f=>{Se(f);const y={...c,name:h};u.applyTransaction({update:[y]}),u.hideOverlay()}))}},l=gradioApp().querySelector("#agent_scheduler_history_tasks_grid");if(typeof l.dataset.pageSize=="string"){const u=parseInt(l.dataset.pageSize,10);u>0&&(a.paginationAutoPageSize=!1,a.paginationPageSize=u)}Xu(l,a)}let hc=!1;onUiLoaded(function n(){if(gradioApp().querySelector("#agent_scheduler_tabs")==null){setTimeout(n,500);return}hc||(Lw(),Mw(),Iw(),xw(),hc=!0)});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -352,4 +361,4 @@ For more info see: https://www.ag-grid.com/javascript-grid/packages/`);return er LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** */var rt=function(){return rt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r*{flex:none}.ag-column-drop-empty .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-vertical-empty-message{display:block}.ag-column-drop.ag-column-drop-horizontal{white-space:nowrap;overflow:hidden}.ag-column-drop-cell-button{cursor:pointer}.ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header{position:relative}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{display:flex;align-items:center}.ag-filter-toolpanel-header>*,.ag-filter-toolpanel-search>*{display:flex;align-items:center}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden}.ag-row-animation .ag-row{transition:transform .4s,top .4s}.ag-row-animation .ag-row.ag-after-created{transition:transform .4s,top .4s,height .4s}.ag-row-no-animation .ag-row{transition:none}.ag-row{white-space:nowrap;width:100%}.ag-row-loading{display:flex;align-items:center}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{display:flex;align-items:center}.ag-cell{display:inline-block;position:absolute;white-space:nowrap;height:100%}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-all}.ag-cell-wrapper{display:flex;align-items:center}.ag-cell-wrapper.ag-row-group{align-items:flex-start}.ag-sparkline-wrapper{position:absolute;height:100%;width:100%;left:0;top:0}.ag-full-width-row .ag-cell-wrapper.ag-row-group{height:100%;align-items:center}.ag-cell-inline-editing{z-index:1}.ag-cell-inline-editing .ag-cell-wrapper,.ag-cell-inline-editing .ag-cell-edit-wrapper,.ag-cell-inline-editing .ag-cell-editor,.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,.ag-cell-inline-editing .ag-cell-editor input{height:100%;width:100%;line-height:normal}.ag-cell .ag-icon{display:inline-block;vertical-align:middle}.ag-set-filter-item{display:flex;align-items:center;height:100%}.ag-set-filter-item-checkbox{display:flex;overflow:hidden;height:100%}.ag-set-filter-group-icons{display:block}.ag-set-filter-group-icons>*{cursor:pointer}.ag-filter-body-wrapper{display:flex;flex-direction:column}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{position:relative;display:flex;flex:1 1 auto;height:100%}.ag-floating-filter-full-body{display:flex;flex:1 1 auto;height:100%;width:100%;align-items:center;overflow:hidden}.ag-floating-filter-full-body>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%}.ag-floating-filter-input>*{flex:1 1 auto}.ag-floating-filter-button{display:flex;flex:none}.ag-set-floating-filter-input input[disabled]{pointer-events:none}.ag-dnd-ghost{position:absolute;display:inline-flex;align-items:center;cursor:move;white-space:nowrap;z-index:9999}.ag-overlay{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}.ag-overlay-panel{display:flex;height:100%;width:100%}.ag-overlay-wrapper{display:flex;flex:none;width:100%;height:100%;align-items:center;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-popup-child{z-index:5;top:0}.ag-popup-editor{position:absolute;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-large-text-input{display:block}.ag-virtual-list-item{position:absolute;width:100%}.ag-floating-top{overflow:hidden;white-space:nowrap;width:100%;position:relative;display:flex}.ag-pinned-left-floating-top,.ag-pinned-right-floating-top{display:inline-block;overflow:hidden;position:relative;min-width:0px}.ag-floating-bottom{overflow:hidden;white-space:nowrap;width:100%;position:relative;display:flex}.ag-pinned-left-floating-bottom,.ag-pinned-right-floating-bottom{display:inline-block;overflow:hidden;position:relative;min-width:0px}.ag-sticky-top{position:absolute;display:flex;width:100%}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{position:relative;height:100%;overflow:hidden}.ag-sticky-top-full-width-container{overflow:hidden;width:100%;height:100%}.ag-dialog,.ag-panel{display:flex;flex-direction:column;position:relative;overflow:hidden}.ag-panel-title-bar{display:flex;flex:none;align-items:center;cursor:default}.ag-panel-title-bar-title{flex:1 1 auto}.ag-panel-title-bar-buttons{display:flex}.ag-panel-title-bar-button{cursor:pointer}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;position:relative;overflow:hidden}.ag-dialog{position:absolute}.ag-resizer{position:absolute;pointer-events:none;z-index:1;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-resizer.ag-resizer-topLeft{top:0;left:0;height:5px;width:5px;cursor:nwse-resize}.ag-resizer.ag-resizer-top{top:0;left:5px;right:5px;height:5px;cursor:ns-resize}.ag-resizer.ag-resizer-topRight{top:0;right:0;height:5px;width:5px;cursor:nesw-resize}.ag-resizer.ag-resizer-right{top:5px;right:0;bottom:5px;width:5px;cursor:ew-resize}.ag-resizer.ag-resizer-bottomRight{bottom:0;right:0;height:5px;width:5px;cursor:nwse-resize}.ag-resizer.ag-resizer-bottom{bottom:0;left:5px;right:5px;height:5px;cursor:ns-resize}.ag-resizer.ag-resizer-bottomLeft{bottom:0;left:0;height:5px;width:5px;cursor:nesw-resize}.ag-resizer.ag-resizer-left{left:0;top:5px;bottom:5px;width:5px;cursor:ew-resize}.ag-tooltip,.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip:not(.ag-tooltip-interactive),.ag-tooltip-custom:not(.ag-tooltip-interactive){pointer-events:none}.ag-value-slide-out{margin-right:5px;opacity:1;transition:opacity 3s,margin-right 3s;transition-timing-function:linear}.ag-value-slide-out-end{margin-right:10px;opacity:0}.ag-opacity-zero{opacity:0!important}.ag-menu{max-height:100%;overflow-y:auto;position:absolute;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-menu-column-select-wrapper{height:265px;overflow:auto}.ag-menu-column-select-wrapper .ag-column-select{height:100%}.ag-dialog .ag-panel-content-wrapper .ag-column-select{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-menu-list{display:table;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{width:100%;display:flex;flex-wrap:nowrap}.ag-compact-menu-option-text{white-space:nowrap;flex:1 1 auto}.ag-rich-select{cursor:default;outline:none;height:100%}.ag-rich-select-value{display:flex;align-items:center;height:100%}.ag-rich-select-value .ag-picker-field-display{overflow:hidden;text-overflow:ellipsis}.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder{opacity:.5}.ag-rich-select-list{position:relative}.ag-rich-select-list .ag-loading-text{min-height:2rem}.ag-rich-select-row{display:flex;flex:1 1 auto;align-items:center;white-space:nowrap;overflow:hidden;height:100%}.ag-rich-select-field-input{flex:1 1 auto}.ag-rich-select-field-input .ag-input-field-input{padding:0!important;border:none!important;box-shadow:none!important;text-overflow:ellipsis}.ag-rich-select-field-input .ag-input-field-input::-moz-placeholder{opacity:.8}.ag-rich-select-field-input .ag-input-field-input::placeholder{opacity:.8}.ag-autocomplete{align-items:center;display:flex}.ag-autocomplete>*{flex:1 1 auto}.ag-autocomplete-list-popup{position:absolute;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-autocomplete-list{position:relative}.ag-autocomplete-virtual-list-item{display:flex}.ag-autocomplete-row{display:flex;flex:1 1 auto;align-items:center;overflow:hidden}.ag-autocomplete-row-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-paging-panel{align-items:center;display:flex;justify-content:flex-end}.ag-paging-page-summary-panel{display:flex;align-items:center}.ag-paging-button{position:relative}.ag-disabled .ag-paging-page-summary-panel{pointer-events:none}.ag-tool-panel-wrapper{display:flex;overflow-y:auto;overflow-x:hidden;cursor:default;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-column-select-column,.ag-column-select-column-group,.ag-select-agg-func-item{position:relative;align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;height:100%}.ag-column-select-column>*,.ag-column-select-column-group>*,.ag-select-agg-func-item>*{flex:none}.ag-select-agg-func-item,.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize{right:-3px}.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize,.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize{left:-3px}.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize{right:-3px}.ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}.ag-header-group-cell{display:flex;align-items:center;height:100%;position:absolute}.ag-header-group-cell-no-group.ag-header-span-height .ag-header-cell-resize{display:none}.ag-cell-label-container{display:flex;justify-content:space-between;flex-direction:row-reverse;align-items:center;height:100%;width:100%;padding:5px 0}.ag-right-aligned-header .ag-cell-label-container{flex-direction:row}.ag-right-aligned-header .ag-header-cell-text{text-align:end}.ag-side-bar{display:flex;flex-direction:row-reverse}.ag-side-bar-left{order:-1;flex-direction:row}.ag-side-button-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;white-space:nowrap;outline:none;cursor:pointer}.ag-side-button-label{writing-mode:vertical-lr}.ag-status-bar{display:flex;justify-content:space-between;overflow:hidden}.ag-status-panel{display:inline-flex}.ag-status-name-value{white-space:nowrap}.ag-status-bar-left,.ag-status-bar-center,.ag-status-bar-right{display:inline-flex}.ag-icon{display:block;speak:none}.ag-group{position:relative;width:100%}.ag-group-title-bar{display:flex;align-items:center}.ag-group-title{display:block;flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ag-group-title-bar .ag-group-title{cursor:default}.ag-group-toolbar{display:flex;align-items:center}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-group-container-horizontal{flex-direction:row;flex-wrap:wrap}.ag-group-container-vertical{flex-direction:column}.ag-column-group-icons{display:block}.ag-column-group-icons>*{cursor:pointer}.ag-group-item-alignment-stretch .ag-group-item{align-items:stretch}.ag-group-item-alignment-start .ag-group-item{align-items:flex-start}.ag-group-item-alignment-end .ag-group-item{align-items:flex-end}.ag-toggle-button-icon{transition:right .3s;position:absolute;top:-1px}.ag-input-field,.ag-select{display:flex;flex-direction:row;align-items:center}.ag-input-field-input{flex:1 1 auto}.ag-floating-filter-input .ag-input-field-input[type=date]{width:1px}.ag-range-field,.ag-angle-select{display:flex;align-items:center}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{display:block;position:relative}.ag-angle-select-child-circle{position:absolute}.ag-slider-wrapper{display:flex}.ag-slider-wrapper .ag-input-field,.ag-picker-field-display{flex:1 1 auto}.ag-picker-field{display:flex;align-items:center}.ag-picker-field-icon{display:flex;border:0;padding:0;margin:0;cursor:pointer}.ag-picker-field-wrapper{overflow:hidden}.ag-label-align-right .ag-label{order:1}.ag-label-align-right>*{flex:none}.ag-label-align-top{flex-direction:column;align-items:flex-start}.ag-label-align-top>*{align-self:stretch}.ag-label-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.ag-color-panel{width:100%;display:flex;flex-direction:column;text-align:center}.ag-spectrum-color{flex:1 1 auto;position:relative;overflow:hidden;cursor:default}.ag-spectrum-fill{position:absolute;top:0;left:0;right:0;bottom:0}.ag-spectrum-val{cursor:pointer}.ag-spectrum-dragger{position:absolute;pointer-events:none;cursor:pointer}.ag-spectrum-hue{cursor:default;background:linear-gradient(to left,#ff0000 3%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.ag-spectrum-alpha{cursor:default}.ag-spectrum-hue-background{width:100%;height:100%}.ag-spectrum-alpha-background{background-image:linear-gradient(to right,rgba(0,0,0,0),rgb(0,0,0));width:100%;height:100%}.ag-spectrum-tool{cursor:pointer}.ag-spectrum-slider{position:absolute;pointer-events:none}.ag-recent-colors{display:flex}.ag-recent-color{cursor:pointer}.ag-ltr .ag-column-select-indent-1{padding-left:20px}.ag-rtl .ag-column-select-indent-1{padding-right:20px}.ag-ltr .ag-set-filter-indent-1{padding-left:20px}.ag-rtl .ag-set-filter-indent-1{padding-right:20px}.ag-ltr .ag-row-group-indent-1{padding-left:20px}.ag-rtl .ag-row-group-indent-1{padding-right:20px}.ag-ltr .ag-column-select-indent-2{padding-left:40px}.ag-rtl .ag-column-select-indent-2{padding-right:40px}.ag-ltr .ag-set-filter-indent-2{padding-left:40px}.ag-rtl .ag-set-filter-indent-2{padding-right:40px}.ag-ltr .ag-row-group-indent-2{padding-left:40px}.ag-rtl .ag-row-group-indent-2{padding-right:40px}.ag-ltr .ag-column-select-indent-3{padding-left:60px}.ag-rtl .ag-column-select-indent-3{padding-right:60px}.ag-ltr .ag-set-filter-indent-3{padding-left:60px}.ag-rtl .ag-set-filter-indent-3{padding-right:60px}.ag-ltr .ag-row-group-indent-3{padding-left:60px}.ag-rtl .ag-row-group-indent-3{padding-right:60px}.ag-ltr .ag-column-select-indent-4{padding-left:80px}.ag-rtl .ag-column-select-indent-4{padding-right:80px}.ag-ltr .ag-set-filter-indent-4{padding-left:80px}.ag-rtl .ag-set-filter-indent-4{padding-right:80px}.ag-ltr .ag-row-group-indent-4{padding-left:80px}.ag-rtl .ag-row-group-indent-4{padding-right:80px}.ag-ltr .ag-column-select-indent-5{padding-left:100px}.ag-rtl .ag-column-select-indent-5{padding-right:100px}.ag-ltr .ag-set-filter-indent-5{padding-left:100px}.ag-rtl .ag-set-filter-indent-5{padding-right:100px}.ag-ltr .ag-row-group-indent-5{padding-left:100px}.ag-rtl .ag-row-group-indent-5{padding-right:100px}.ag-ltr .ag-column-select-indent-6{padding-left:120px}.ag-rtl .ag-column-select-indent-6{padding-right:120px}.ag-ltr .ag-set-filter-indent-6{padding-left:120px}.ag-rtl .ag-set-filter-indent-6{padding-right:120px}.ag-ltr .ag-row-group-indent-6{padding-left:120px}.ag-rtl .ag-row-group-indent-6{padding-right:120px}.ag-ltr .ag-column-select-indent-7{padding-left:140px}.ag-rtl .ag-column-select-indent-7{padding-right:140px}.ag-ltr .ag-set-filter-indent-7{padding-left:140px}.ag-rtl .ag-set-filter-indent-7{padding-right:140px}.ag-ltr .ag-row-group-indent-7{padding-left:140px}.ag-rtl .ag-row-group-indent-7{padding-right:140px}.ag-ltr .ag-column-select-indent-8{padding-left:160px}.ag-rtl .ag-column-select-indent-8{padding-right:160px}.ag-ltr .ag-set-filter-indent-8{padding-left:160px}.ag-rtl .ag-set-filter-indent-8{padding-right:160px}.ag-ltr .ag-row-group-indent-8{padding-left:160px}.ag-rtl .ag-row-group-indent-8{padding-right:160px}.ag-ltr .ag-column-select-indent-9{padding-left:180px}.ag-rtl .ag-column-select-indent-9{padding-right:180px}.ag-ltr .ag-set-filter-indent-9{padding-left:180px}.ag-rtl .ag-set-filter-indent-9{padding-right:180px}.ag-ltr .ag-row-group-indent-9{padding-left:180px}.ag-rtl .ag-row-group-indent-9{padding-right:180px}.ag-ltr{direction:ltr}.ag-ltr .ag-body,.ag-ltr .ag-floating-top,.ag-ltr .ag-floating-bottom,.ag-ltr .ag-header,.ag-ltr .ag-sticky-top,.ag-ltr .ag-body-viewport,.ag-ltr .ag-body-horizontal-scroll{flex-direction:row}.ag-rtl{direction:rtl}.ag-rtl .ag-body,.ag-rtl .ag-floating-top,.ag-rtl .ag-floating-bottom,.ag-rtl .ag-header,.ag-rtl .ag-sticky-top,.ag-rtl .ag-body-viewport,.ag-rtl .ag-body-horizontal-scroll{flex-direction:row-reverse}.ag-rtl .ag-icon-contracted,.ag-rtl .ag-icon-expanded,.ag-rtl .ag-icon-tree-closed{display:block;transform:rotate(180deg)}.ag-body .ag-body-viewport{-webkit-overflow-scrolling:touch}.ag-layout-print.ag-body{display:block;height:unset}.ag-layout-print.ag-root-wrapper{display:inline-block}.ag-layout-print .ag-body-vertical-scroll,.ag-layout-print .ag-body-horizontal-scroll{display:none}.ag-layout-print.ag-force-vertical-scroll{overflow-y:visible!important}@media print{.ag-root-wrapper.ag-layout-print{display:table}.ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,.ag-root-wrapper.ag-layout-print .ag-root,.ag-root-wrapper.ag-layout-print .ag-body-viewport,.ag-root-wrapper.ag-layout-print .ag-center-cols-container,.ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,.ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,.ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport{height:auto!important;overflow:hidden!important;display:block!important}.ag-root-wrapper.ag-layout-print .ag-row,.ag-root-wrapper.ag-layout-print .ag-cell{-moz-column-break-inside:avoid;break-inside:avoid}}[class^=ag-],[class^=ag-]:focus,[class^=ag-]:after,[class^=ag-]:before{box-sizing:border-box;outline:none}[class^=ag-]::-ms-clear{display:none}.ag-checkbox .ag-input-wrapper,.ag-radio-button .ag-input-wrapper{overflow:visible}.ag-range-field .ag-input-wrapper{height:100%}.ag-toggle-button{flex:none;width:unset;min-width:unset}.ag-button{border-radius:0;color:var(--ag-foreground-color)}.ag-button:hover{background-color:transparent}.ag-ltr .ag-label-align-right .ag-label{margin-left:var(--ag-grid-size)}.ag-rtl .ag-label-align-right .ag-label{margin-right:var(--ag-grid-size)}input[class^=ag-]{margin:0;background-color:var(--ag-background-color)}textarea[class^=ag-],select[class^=ag-]{background-color:var(--ag-background-color)}input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]{font-size:inherit;line-height:inherit;color:inherit;font-family:inherit;border:var(--ag-borders-input) var(--ag-input-border-color)}input[class^=ag-]:not([type]):disabled,input[class^=ag-][type=text]:disabled,input[class^=ag-][type=number]:disabled,input[class^=ag-][type=tel]:disabled,input[class^=ag-][type=date]:disabled,input[class^=ag-][type=datetime-local]:disabled,textarea[class^=ag-]:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}input[class^=ag-]:not([type]):focus,input[class^=ag-][type=text]:focus,input[class^=ag-][type=number]:focus,input[class^=ag-][type=tel]:focus,input[class^=ag-][type=date]:focus,input[class^=ag-][type=datetime-local]:focus,textarea[class^=ag-]:focus{outline:none;box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-input-focus-border-color)}input[class^=ag-]:not([type]):invalid,input[class^=ag-][type=text]:invalid,input[class^=ag-][type=number]:invalid,input[class^=ag-][type=tel]:invalid,input[class^=ag-][type=date]:invalid,input[class^=ag-][type=datetime-local]:invalid,textarea[class^=ag-]:invalid{border:var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid)}input[class^=ag-][type=number]:not(.ag-number-field-input-stepper){-moz-appearance:textfield}input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button,input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[class^=ag-][type=range]{padding:0}input[class^=ag-][type=button]:focus,button[class^=ag-]:focus{box-shadow:var(--ag-input-focus-box-shadow)}.ag-drag-handle{color:var(--ag-secondary-foreground-color)}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item:focus-visible{outline:none}.ag-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-select-list{background-color:var(--ag-background-color);overflow-y:auto;overflow-x:hidden;border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-list-item{display:flex;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-list-item.ag-active-item{background-color:var(--ag-row-hover-color)}.ag-select-list-item{-moz-user-select:none;-webkit-user-select:none;user-select:none;cursor:default}.ag-ltr .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-select-list-item span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ag-row-drag,.ag-selection-checkbox,.ag-group-expanded,.ag-group-contracted{color:var(--ag-secondary-foreground-color)}.ag-ltr .ag-row-drag,.ag-ltr .ag-selection-checkbox,.ag-ltr .ag-group-expanded,.ag-ltr .ag-group-contracted{margin-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-row-drag,.ag-rtl .ag-selection-checkbox,.ag-rtl .ag-group-expanded,.ag-rtl .ag-group-contracted{margin-left:var(--ag-cell-widget-spacing)}.ag-cell-wrapper>*:not(.ag-cell-value):not(.ag-group-value){--ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));--ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));height:min(var(--ag-internal-calculated-line-height),var(--ag-internal-padded-row-height));display:flex;align-items:center;flex:none}.ag-group-expanded,.ag-group-contracted{cursor:pointer}.ag-group-title-bar-icon{cursor:pointer;flex:none;color:var(--ag-secondary-foreground-color)}.ag-ltr .ag-group-child-count{margin-left:2px}.ag-rtl .ag-group-child-count{margin-right:2px}.ag-group-title-bar{background-color:var(--ag-subheader-background-color);padding:var(--ag-grid-size)}.ag-group-toolbar{padding:var(--ag-grid-size);background-color:var(--ag-subheader-toolbar-background-color)}.ag-disabled-group-title-bar,.ag-disabled-group-container{opacity:.5}.group-item{margin:calc(var(--ag-grid-size) * .5) 0}.ag-label{white-space:nowrap}.ag-ltr .ag-label{margin-right:var(--ag-grid-size)}.ag-rtl .ag-label{margin-left:var(--ag-grid-size)}.ag-label-align-top .ag-label{margin-bottom:calc(var(--ag-grid-size) * .5)}.ag-angle-select[disabled]{color:var(--ag-disabled-foreground-color);pointer-events:none}.ag-angle-select[disabled] .ag-angle-select-field{opacity:.4}.ag-ltr .ag-slider-field,.ag-ltr .ag-angle-select-field{margin-right:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-slider-field,.ag-rtl .ag-angle-select-field{margin-left:calc(var(--ag-grid-size) * 2)}.ag-angle-select-parent-circle{width:24px;height:24px;border-radius:12px;border:solid 1px;border-color:var(--ag-border-color);background-color:var(--ag-background-color)}.ag-angle-select-child-circle{top:4px;left:12px;width:6px;height:6px;margin-left:-3px;margin-top:-4px;border-radius:3px;background-color:var(--ag-secondary-foreground-color)}.ag-picker-field-wrapper{border:var(--ag-borders);border-color:var(--ag-border-color);border-radius:5px;background-color:var(--ag-background-color)}.ag-picker-field-wrapper:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-picker-field-wrapper.ag-picker-has-focus,.ag-picker-field-wrapper:focus-within{outline:none;box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-input-focus-border-color)}.ag-picker-field-button{background-color:var(--ag-background-color);color:var(--ag-secondary-foreground-color)}.ag-dialog.ag-color-dialog{border-radius:5px}.ag-color-picker .ag-picker-field-display{height:var(--ag-icon-size)}.ag-color-picker .ag-picker-field-wrapper{max-width:45px;min-width:45px}.ag-color-panel{padding:var(--ag-grid-size)}.ag-spectrum-color{background-color:red;border-radius:2px}.ag-spectrum-tools{padding:10px}.ag-spectrum-sat{background-image:linear-gradient(to right,white,rgba(204,154,129,0))}.ag-spectrum-val{background-image:linear-gradient(to top,black,rgba(204,154,129,0))}.ag-spectrum-dragger{border-radius:12px;height:12px;width:12px;border:1px solid white;background:black;box-shadow:0 0 2px #0000003d}.ag-spectrum-hue-background,.ag-spectrum-alpha-background{border-radius:2px}.ag-spectrum-tool{margin-bottom:10px;height:11px;border-radius:2px}.ag-spectrum-slider{margin-top:-12px;width:13px;height:13px;border-radius:13px;background-color:#f8f8f8;box-shadow:0 1px 4px #0000005e}.ag-recent-color{margin:0 3px}.ag-recent-color:first-child{margin-left:0}.ag-recent-color:last-child{margin-right:0}.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),.ag-recent-color:focus-visible:not(:disabled):not([readonly]){box-shadow:var(--ag-input-focus-box-shadow)}.ag-dnd-ghost{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);overflow:hidden;text-overflow:ellipsis;border:var(--ag-borders-secondary) var(--ag-secondary-border-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height)!important;line-height:var(--ag-header-height);margin:0;padding:0 calc(var(--ag-grid-size) * 2);transform:translateY(calc(var(--ag-grid-size) * 2))}.ag-dnd-ghost-icon{margin-right:var(--ag-grid-size);color:var(--ag-foreground-color)}.ag-popup-child:not(.ag-tooltip-custom){box-shadow:var(--ag-popup-shadow)}.ag-select .ag-picker-field-wrapper{min-height:var(--ag-list-item-height);cursor:default}.ag-ltr .ag-select .ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-select .ag-picker-field-wrapper{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-ltr .ag-select .ag-picker-field-wrapper{padding-right:var(--ag-grid-size)}.ag-rtl .ag-select .ag-picker-field-wrapper{padding-left:var(--ag-grid-size)}.ag-select.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-select:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-select .ag-picker-field-display{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-select .ag-picker-field-icon{display:flex;align-items:center}.ag-select.ag-disabled{opacity:.5}.ag-rich-select-value,.ag-rich-select-list{background-color:var(--ag-background-color)}.ag-rich-select-list{width:100%;height:auto;border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-rich-select-list .ag-loading-text{padding:var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing)}.ag-rich-select-value{border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color);padding-top:0;padding-bottom:0}.ag-ltr .ag-rich-select-value{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-rich-select-value{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-ltr .ag-rich-select-value{padding-right:var(--ag-grid-size)}.ag-rtl .ag-rich-select-value{padding-left:var(--ag-grid-size)}.ag-ltr .ag-rich-select-field-input{left:calc(var(--ag-cell-horizontal-padding))}.ag-rtl .ag-rich-select-field-input{right:calc(var(--ag-cell-horizontal-padding))}.ag-popup-editor .ag-rich-select-value{height:var(--ag-row-height);min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-rich-select-virtual-list-item:focus-visible:after{content:none}.ag-rich-select-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-ltr .ag-rich-select-row{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-rich-select-row{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row-text-highlight{font-weight:700}.ag-autocomplete{width:100%}.ag-autocomplete-list{width:100%;min-width:200px;height:calc(var(--ag-row-height) * 6.5)}.ag-autocomplete-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-autocomplete-virtual-list-item:focus-visible:after{content:none}.ag-autocomplete-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-autocomplete-row-label{margin:0px var(--ag-widget-container-horizontal-padding)}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-dragging-range-handle .ag-dialog,.ag-dragging-fill-handle .ag-dialog{opacity:.7;pointer-events:none}.ag-dialog{border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color);box-shadow:var(--ag-popup-shadow)}.ag-panel{background-color:var(--ag-panel-background-color);border-color:var(--ag-panel-border-color)}.ag-panel-title-bar{color:var(--ag-header-foreground-color);height:var(--ag-header-height);padding:var(--ag-grid-size) var(--ag-cell-horizontal-padding);border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-panel-title-bar-button{margin-left:var(--ag-grid-size)}.ag-rtl .ag-panel-title-bar-button{margin-right:var(--ag-grid-size)}.ag-tooltip{background-color:var(--ag-tooltip-background-color);color:var(--ag-foreground-color);padding:var(--ag-grid-size);border:var(--ag-borders) var(--ag-border-color);border-radius:var(--ag-card-radius);white-space:normal}.ag-tooltip.ag-tooltip-animate,.ag-tooltip-custom.ag-tooltip-animate{transition:opacity 1s}.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding{opacity:0}.ag-ltr .ag-column-select-indent-1{padding-left:calc(1 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-1{padding-right:calc(1 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-2{padding-left:calc(2 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-2{padding-right:calc(2 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-3{padding-left:calc(3 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-3{padding-right:calc(3 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-4{padding-left:calc(4 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-4{padding-right:calc(4 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-5{padding-left:calc(5 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-5{padding-right:calc(5 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-6{padding-left:calc(6 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-6{padding-right:calc(6 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-7{padding-left:calc(7 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-7{padding-right:calc(7 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-8{padding-left:calc(8 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-8{padding-right:calc(8 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-9{padding-left:calc(9 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-9{padding-right:calc(9 * var(--ag-column-select-indent-size))}.ag-column-select-header-icon{cursor:pointer}.ag-column-select-header-icon:focus-visible{outline:none}.ag-column-select-header-icon:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:0;left:0;display:block;width:calc(100% + -0px);height:calc(100% + -0px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-ltr .ag-column-group-icons:not(:last-child),.ag-ltr .ag-column-select-header-icon:not(:last-child),.ag-ltr .ag-column-select-header-checkbox:not(:last-child),.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),.ag-ltr .ag-column-select-checkbox:not(:last-child),.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),.ag-ltr .ag-column-select-column-label:not(:last-child){margin-right:var(--ag-widget-horizontal-spacing)}.ag-rtl .ag-column-group-icons:not(:last-child),.ag-rtl .ag-column-select-header-icon:not(:last-child),.ag-rtl .ag-column-select-header-checkbox:not(:last-child),.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),.ag-rtl .ag-column-select-checkbox:not(:last-child),.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),.ag-rtl .ag-column-select-column-label:not(:last-child){margin-left:var(--ag-widget-horizontal-spacing)}.ag-column-select-virtual-list-item:focus-visible{outline:none}.ag-column-select-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-select-column-group:not(:last-child),.ag-column-select-column:not(:last-child){margin-bottom:var(--ag-widget-vertical-spacing)}.ag-column-select-column-readonly,.ag-column-select-column-group-readonly{color:var(--ag-disabled-foreground-color);pointer-events:none}.ag-ltr .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-rtl .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding) * .5) 0px}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-rtl{text-align:right}.ag-root-wrapper{border-radius:var(--ag-wrapper-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-1{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-1{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1)}.ag-ltr .ag-row-group-indent-1{padding-left:calc(1 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-1{padding-right:calc(1 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-1 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-1 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-2{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-2{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2)}.ag-ltr .ag-row-group-indent-2{padding-left:calc(2 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-2{padding-right:calc(2 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-2 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-2 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-3{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-3{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3)}.ag-ltr .ag-row-group-indent-3{padding-left:calc(3 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-3{padding-right:calc(3 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-3 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-3 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-4{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-4{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4)}.ag-ltr .ag-row-group-indent-4{padding-left:calc(4 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-4{padding-right:calc(4 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-4 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-4 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-5{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-5{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5)}.ag-ltr .ag-row-group-indent-5{padding-left:calc(5 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-5{padding-right:calc(5 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-5 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-5 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-6{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-6{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6)}.ag-ltr .ag-row-group-indent-6{padding-left:calc(6 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-6{padding-right:calc(6 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-6 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-6 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-7{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-7{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7)}.ag-ltr .ag-row-group-indent-7{padding-left:calc(7 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-7{padding-right:calc(7 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-7 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-7 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-8{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-8{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8)}.ag-ltr .ag-row-group-indent-8{padding-left:calc(8 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-8{padding-right:calc(8 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-8 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-8 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-9{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-9{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9)}.ag-ltr .ag-row-group-indent-9{padding-left:calc(9 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-9{padding-right:calc(9 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-9 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-9 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-10{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-10{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10)}.ag-ltr .ag-row-group-indent-10{padding-left:calc(10 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-10{padding-right:calc(10 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-10 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-10 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-11{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-11{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11)}.ag-ltr .ag-row-group-indent-11{padding-left:calc(11 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-11{padding-right:calc(11 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-11 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-11 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-12{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-12{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12)}.ag-ltr .ag-row-group-indent-12{padding-left:calc(12 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-12{padding-right:calc(12 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-12 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-12 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-13{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-13{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13)}.ag-ltr .ag-row-group-indent-13{padding-left:calc(13 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-13{padding-right:calc(13 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-13 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-13 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-14{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-14{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14)}.ag-ltr .ag-row-group-indent-14{padding-left:calc(14 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-14{padding-right:calc(14 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-14 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-14 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-15{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-15{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15)}.ag-ltr .ag-row-group-indent-15{padding-left:calc(15 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-15{padding-right:calc(15 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-15 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-15 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-16{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-16{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16)}.ag-ltr .ag-row-group-indent-16{padding-left:calc(16 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-16{padding-right:calc(16 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-16 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-16 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-17{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-17{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17)}.ag-ltr .ag-row-group-indent-17{padding-left:calc(17 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-17{padding-right:calc(17 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-17 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-17 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-18{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-18{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18)}.ag-ltr .ag-row-group-indent-18{padding-left:calc(18 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-18{padding-right:calc(18 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-18 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-18 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-19{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-19{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19)}.ag-ltr .ag-row-group-indent-19{padding-left:calc(19 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-19{padding-right:calc(19 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-19 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-19 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-20{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-20{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20)}.ag-ltr .ag-row-group-indent-20{padding-left:calc(20 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-20{padding-right:calc(20 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-20 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-20 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-21{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-21{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21)}.ag-ltr .ag-row-group-indent-21{padding-left:calc(21 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-21{padding-right:calc(21 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-21 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-21 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-22{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-22{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22)}.ag-ltr .ag-row-group-indent-22{padding-left:calc(22 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-22{padding-right:calc(22 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-22 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-22 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-23{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-23{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23)}.ag-ltr .ag-row-group-indent-23{padding-left:calc(23 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-23{padding-right:calc(23 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-23 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-23 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-24{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-24{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24)}.ag-ltr .ag-row-group-indent-24{padding-left:calc(24 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-24{padding-right:calc(24 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-24 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-24 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-25{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-25{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25)}.ag-ltr .ag-row-group-indent-25{padding-left:calc(25 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-25{padding-right:calc(25 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-25 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-25 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-26{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-26{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26)}.ag-ltr .ag-row-group-indent-26{padding-left:calc(26 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-26{padding-right:calc(26 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-26 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-26 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-27{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-27{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27)}.ag-ltr .ag-row-group-indent-27{padding-left:calc(27 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-27{padding-right:calc(27 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-27 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-27 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-28{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-28{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28)}.ag-ltr .ag-row-group-indent-28{padding-left:calc(28 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-28{padding-right:calc(28 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-28 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-28 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-29{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-29{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29)}.ag-ltr .ag-row-group-indent-29{padding-left:calc(29 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-29{padding-right:calc(29 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-29 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-29 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-30{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-30{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30)}.ag-ltr .ag-row-group-indent-30{padding-left:calc(30 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-30{padding-right:calc(30 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-30 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-30 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-31{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-31{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31)}.ag-ltr .ag-row-group-indent-31{padding-left:calc(31 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-31{padding-right:calc(31 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-31 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-31 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-32{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-32{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32)}.ag-ltr .ag-row-group-indent-32{padding-left:calc(32 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-32{padding-right:calc(32 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-32 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-32 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-33{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-33{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33)}.ag-ltr .ag-row-group-indent-33{padding-left:calc(33 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-33{padding-right:calc(33 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-33 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-33 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-34{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-34{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34)}.ag-ltr .ag-row-group-indent-34{padding-left:calc(34 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-34{padding-right:calc(34 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-34 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-34 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-35{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-35{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35)}.ag-ltr .ag-row-group-indent-35{padding-left:calc(35 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-35{padding-right:calc(35 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-35 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-35 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-36{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-36{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36)}.ag-ltr .ag-row-group-indent-36{padding-left:calc(36 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-36{padding-right:calc(36 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-36 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-36 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-37{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-37{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37)}.ag-ltr .ag-row-group-indent-37{padding-left:calc(37 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-37{padding-right:calc(37 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-37 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-37 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-38{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-38{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38)}.ag-ltr .ag-row-group-indent-38{padding-left:calc(38 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-38{padding-right:calc(38 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-38 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-38 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-39{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-39{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39)}.ag-ltr .ag-row-group-indent-39{padding-left:calc(39 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-39{padding-right:calc(39 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-39 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-39 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-40{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-40{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40)}.ag-ltr .ag-row-group-indent-40{padding-left:calc(40 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-40{padding-right:calc(40 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-40 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-40 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-41{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-41{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41)}.ag-ltr .ag-row-group-indent-41{padding-left:calc(41 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-41{padding-right:calc(41 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-41 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-41 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-42{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-42{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42)}.ag-ltr .ag-row-group-indent-42{padding-left:calc(42 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-42{padding-right:calc(42 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-42 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-42 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-43{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-43{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43)}.ag-ltr .ag-row-group-indent-43{padding-left:calc(43 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-43{padding-right:calc(43 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-43 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-43 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-44{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-44{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44)}.ag-ltr .ag-row-group-indent-44{padding-left:calc(44 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-44{padding-right:calc(44 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-44 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-44 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-45{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-45{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45)}.ag-ltr .ag-row-group-indent-45{padding-left:calc(45 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-45{padding-right:calc(45 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-45 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-45 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-46{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-46{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46)}.ag-ltr .ag-row-group-indent-46{padding-left:calc(46 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-46{padding-right:calc(46 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-46 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-46 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-47{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-47{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47)}.ag-ltr .ag-row-group-indent-47{padding-left:calc(47 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-47{padding-right:calc(47 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-47 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-47 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-48{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-48{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48)}.ag-ltr .ag-row-group-indent-48{padding-left:calc(48 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-48{padding-right:calc(48 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-48 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-48 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-49{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-49{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49)}.ag-ltr .ag-row-group-indent-49{padding-left:calc(49 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-49{padding-right:calc(49 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-49 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-49 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-50{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-50{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50)}.ag-ltr .ag-row-group-indent-50{padding-left:calc(50 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-50{padding-right:calc(50 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-50 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-50 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-51{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-51{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51)}.ag-ltr .ag-row-group-indent-51{padding-left:calc(51 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-51{padding-right:calc(51 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-51 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-51 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-52{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-52{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52)}.ag-ltr .ag-row-group-indent-52{padding-left:calc(52 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-52{padding-right:calc(52 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-52 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-52 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-53{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-53{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53)}.ag-ltr .ag-row-group-indent-53{padding-left:calc(53 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-53{padding-right:calc(53 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-53 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-53 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-54{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-54{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54)}.ag-ltr .ag-row-group-indent-54{padding-left:calc(54 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-54{padding-right:calc(54 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-54 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-54 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-55{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-55{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55)}.ag-ltr .ag-row-group-indent-55{padding-left:calc(55 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-55{padding-right:calc(55 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-55 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-55 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-56{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-56{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56)}.ag-ltr .ag-row-group-indent-56{padding-left:calc(56 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-56{padding-right:calc(56 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-56 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-56 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-57{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-57{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57)}.ag-ltr .ag-row-group-indent-57{padding-left:calc(57 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-57{padding-right:calc(57 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-57 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-57 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-58{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-58{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58)}.ag-ltr .ag-row-group-indent-58{padding-left:calc(58 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-58{padding-right:calc(58 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-58 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-58 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-59{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-59{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59)}.ag-ltr .ag-row-group-indent-59{padding-left:calc(59 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-59{padding-right:calc(59 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-59 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-59 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-60{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-60{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60)}.ag-ltr .ag-row-group-indent-60{padding-left:calc(60 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-60{padding-right:calc(60 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-60 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-60 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-61{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-61{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61)}.ag-ltr .ag-row-group-indent-61{padding-left:calc(61 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-61{padding-right:calc(61 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-61 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-61 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-62{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-62{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62)}.ag-ltr .ag-row-group-indent-62{padding-left:calc(62 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-62{padding-right:calc(62 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-62 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-62 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-63{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-63{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63)}.ag-ltr .ag-row-group-indent-63{padding-left:calc(63 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-63{padding-right:calc(63 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-63 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-63 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-64{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-64{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64)}.ag-ltr .ag-row-group-indent-64{padding-left:calc(64 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-64{padding-right:calc(64 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-64 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-64 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-65{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-65{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65)}.ag-ltr .ag-row-group-indent-65{padding-left:calc(65 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-65{padding-right:calc(65 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-65 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-65 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-66{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-66{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66)}.ag-ltr .ag-row-group-indent-66{padding-left:calc(66 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-66{padding-right:calc(66 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-66 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-66 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-67{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-67{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67)}.ag-ltr .ag-row-group-indent-67{padding-left:calc(67 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-67{padding-right:calc(67 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-67 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-67 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-68{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-68{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68)}.ag-ltr .ag-row-group-indent-68{padding-left:calc(68 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-68{padding-right:calc(68 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-68 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-68 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-69{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-69{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69)}.ag-ltr .ag-row-group-indent-69{padding-left:calc(69 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-69{padding-right:calc(69 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-69 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-69 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-70{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-70{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70)}.ag-ltr .ag-row-group-indent-70{padding-left:calc(70 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-70{padding-right:calc(70 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-70 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-70 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-71{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-71{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71)}.ag-ltr .ag-row-group-indent-71{padding-left:calc(71 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-71{padding-right:calc(71 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-71 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-71 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-72{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-72{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72)}.ag-ltr .ag-row-group-indent-72{padding-left:calc(72 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-72{padding-right:calc(72 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-72 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-72 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-73{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-73{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73)}.ag-ltr .ag-row-group-indent-73{padding-left:calc(73 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-73{padding-right:calc(73 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-73 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-73 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-74{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-74{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74)}.ag-ltr .ag-row-group-indent-74{padding-left:calc(74 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-74{padding-right:calc(74 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-74 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-74 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-75{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-75{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75)}.ag-ltr .ag-row-group-indent-75{padding-left:calc(75 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-75{padding-right:calc(75 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-75 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-75 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-76{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-76{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76)}.ag-ltr .ag-row-group-indent-76{padding-left:calc(76 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-76{padding-right:calc(76 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-76 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-76 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-77{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-77{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77)}.ag-ltr .ag-row-group-indent-77{padding-left:calc(77 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-77{padding-right:calc(77 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-77 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-77 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-78{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-78{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78)}.ag-ltr .ag-row-group-indent-78{padding-left:calc(78 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-78{padding-right:calc(78 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-78 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-78 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-79{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-79{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79)}.ag-ltr .ag-row-group-indent-79{padding-left:calc(79 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-79{padding-right:calc(79 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-79 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-79 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-80{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-80{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80)}.ag-ltr .ag-row-group-indent-80{padding-left:calc(80 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-80{padding-right:calc(80 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-80 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-80 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-81{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-81{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81)}.ag-ltr .ag-row-group-indent-81{padding-left:calc(81 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-81{padding-right:calc(81 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-81 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-81 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-82{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-82{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82)}.ag-ltr .ag-row-group-indent-82{padding-left:calc(82 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-82{padding-right:calc(82 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-82 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-82 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-83{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-83{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83)}.ag-ltr .ag-row-group-indent-83{padding-left:calc(83 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-83{padding-right:calc(83 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-83 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-83 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-84{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-84{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84)}.ag-ltr .ag-row-group-indent-84{padding-left:calc(84 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-84{padding-right:calc(84 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-84 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-84 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-85{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-85{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85)}.ag-ltr .ag-row-group-indent-85{padding-left:calc(85 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-85{padding-right:calc(85 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-85 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-85 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-86{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-86{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86)}.ag-ltr .ag-row-group-indent-86{padding-left:calc(86 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-86{padding-right:calc(86 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-86 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-86 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-87{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-87{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87)}.ag-ltr .ag-row-group-indent-87{padding-left:calc(87 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-87{padding-right:calc(87 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-87 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-87 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-88{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-88{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88)}.ag-ltr .ag-row-group-indent-88{padding-left:calc(88 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-88{padding-right:calc(88 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-88 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-88 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-89{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-89{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89)}.ag-ltr .ag-row-group-indent-89{padding-left:calc(89 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-89{padding-right:calc(89 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-89 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-89 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-90{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-90{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90)}.ag-ltr .ag-row-group-indent-90{padding-left:calc(90 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-90{padding-right:calc(90 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-90 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-90 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-91{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-91{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91)}.ag-ltr .ag-row-group-indent-91{padding-left:calc(91 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-91{padding-right:calc(91 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-91 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-91 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-92{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-92{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92)}.ag-ltr .ag-row-group-indent-92{padding-left:calc(92 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-92{padding-right:calc(92 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-92 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-92 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-93{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-93{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93)}.ag-ltr .ag-row-group-indent-93{padding-left:calc(93 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-93{padding-right:calc(93 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-93 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-93 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-94{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-94{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94)}.ag-ltr .ag-row-group-indent-94{padding-left:calc(94 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-94{padding-right:calc(94 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-94 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-94 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-95{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-95{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95)}.ag-ltr .ag-row-group-indent-95{padding-left:calc(95 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-95{padding-right:calc(95 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-95 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-95 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-96{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-96{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96)}.ag-ltr .ag-row-group-indent-96{padding-left:calc(96 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-96{padding-right:calc(96 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-96 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-96 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-97{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-97{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97)}.ag-ltr .ag-row-group-indent-97{padding-left:calc(97 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-97{padding-right:calc(97 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-97 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-97 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-98{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-98{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98)}.ag-ltr .ag-row-group-indent-98{padding-left:calc(98 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-98{padding-right:calc(98 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-98 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-98 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-99{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-99{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99)}.ag-ltr .ag-row-group-indent-99{padding-left:calc(99 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-99{padding-right:calc(99 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-99 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-99 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row-group-leaf-indent{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-group-leaf-indent{margin-right:var(--ag-row-group-indent-size)}.ag-value-change-delta{padding-right:2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row{height:var(--ag-row-height);background-color:var(--ag-background-color);color:var(--ag-data-color);border-bottom:var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width)}.ag-row-highlight-above:after,.ag-row-highlight-below:after{content:"";position:absolute;width:calc(100% - 1px);height:1px;background-color:var(--ag-range-selection-border-color);left:1px}.ag-row-highlight-above:after{top:-1px}.ag-row-highlight-above.ag-row-first:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-row-selected:before{content:"";background-color:var(--ag-selected-row-background-color);display:block;position:absolute;top:0;left:0;right:0;bottom:0}.ag-row-hover:not(.ag-full-width-row):before,.ag-row-hover.ag-full-width-row.ag-row-group:before{content:"";background-color:var(--ag-row-hover-color);display:block;position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.ag-row-hover.ag-full-width-row.ag-row-group>*{position:relative}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-ltr .ag-right-aligned-cell{text-align:right}.ag-rtl .ag-right-aligned-cell{text-align:left}.ag-ltr .ag-right-aligned-cell .ag-cell-value,.ag-ltr .ag-right-aligned-cell .ag-group-value{margin-left:auto}.ag-rtl .ag-right-aligned-cell .ag-cell-value,.ag-rtl .ag-right-aligned-cell .ag-group-value{margin-right:auto}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{--ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));--ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));border:1px solid transparent;line-height:min(var(--ag-internal-calculated-line-height),var(--ag-internal-padded-row-height));padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px);-webkit-font-smoothing:subpixel-antialiased}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-cell-inline-editing{border:1px solid var(--ag-border-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:0;background-color:var(--ag-control-panel-background-color)}.ag-popup-editor .ag-large-text,.ag-autocomplete-list-popup{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background-color:var(--ag-control-panel-background-color);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-large-text-input textarea{resize:none}.ag-details-row{padding:calc(var(--ag-grid-size) * 5);background-color:var(--ag-background-color)}.ag-layout-auto-height .ag-center-cols-viewport,.ag-layout-auto-height .ag-center-cols-container,.ag-layout-print .ag-center-cols-viewport,.ag-layout-print .ag-center-cols-container{min-height:50px}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-overlay-loading-center{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size)}.ag-overlay-no-rows-wrapper.ag-layout-auto-height{padding-top:30px}.ag-loading{display:flex;height:100%;align-items:center}.ag-ltr .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-name:spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ag-floating-top{border-bottom:var(--ag-borders-critical) var(--ag-border-color)}.ag-floating-bottom{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-ltr .ag-cell{border-right:var(--ag-cell-horizontal-border)}.ag-rtl .ag-cell{border-left:var(--ag-cell-horizontal-border)}.ag-ltr .ag-cell{border-right-width:1px}.ag-rtl .ag-cell{border-left-width:1px}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell){border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell){border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-cell-range-selected:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important}.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2{background-color:var(--ag-range-selection-background-color-2)}.ag-cell-range-selected-3:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3{background-color:var(--ag-range-selection-background-color-3)}.ag-cell-range-selected-4:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4{background-color:var(--ag-range-selection-background-color-4)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,.ag-ltr .ag-cell-range-single-cell,.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,.ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,.ag-rtl .ag-cell-range-single-cell,.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-right,.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-right,.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-left,.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-left,.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{position:absolute;width:6px;height:6px;bottom:-1px;background-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-fill-handle,.ag-ltr .ag-range-handle{right:-1px}.ag-rtl .ag-fill-handle,.ag-rtl .ag-range-handle{left:-1px}.ag-fill-handle{cursor:cell}.ag-range-handle{cursor:nwse-resize}.ag-cell-inline-editing{border-color:var(--ag-input-focus-border-color)!important}.ag-menu{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background-color:var(--ag-menu-background-color);border-color:var(--ag-menu-border-color);padding:0}.ag-menu-list{cursor:default;padding:var(--ag-grid-size) 0}.ag-menu-separator{height:calc(var(--ag-grid-size) * 2 + 1px)}.ag-menu-separator-part:after{content:"";display:block;border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-menu-option-active,.ag-compact-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-menu-option-part,.ag-compact-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-grid-size) + 2px) 0}.ag-menu-option-disabled,.ag-compact-menu-option-disabled{opacity:.5}.ag-menu-option-icon,.ag-compact-menu-option-icon{width:var(--ag-icon-size)}.ag-ltr .ag-menu-option-icon,.ag-ltr .ag-compact-menu-option-icon{padding-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-menu-option-icon,.ag-rtl .ag-compact-menu-option-icon{padding-right:calc(var(--ag-grid-size) * 2)}.ag-menu-option-text,.ag-compact-menu-option-text{padding-left:calc(var(--ag-grid-size) * 2);padding-right:calc(var(--ag-grid-size) * 2)}.ag-ltr .ag-menu-option-shortcut,.ag-ltr .ag-compact-menu-option-shortcut{padding-right:var(--ag-grid-size)}.ag-rtl .ag-menu-option-shortcut,.ag-rtl .ag-compact-menu-option-shortcut{padding-left:var(--ag-grid-size)}.ag-ltr .ag-menu-option-popup-pointer,.ag-ltr .ag-compact-menu-option-popup-pointer{padding-right:var(--ag-grid-size)}.ag-rtl .ag-menu-option-popup-pointer,.ag-rtl .ag-compact-menu-option-popup-pointer{padding-left:var(--ag-grid-size)}.ag-tabs{min-width:var(--ag-tab-min-width)}.ag-tabs-header{display:flex}.ag-tab{border-bottom:var(--ag-selected-tab-underline-width) solid transparent;transition:border-bottom var(--ag-selected-tab-underline-transition-speed);display:flex;flex:none;align-items:center;justify-content:center;cursor:pointer}.ag-tab:focus-visible{outline:none}.ag-tab:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-tab-selected{border-bottom-color:var(--ag-selected-tab-underline-color)}.ag-menu-header{color:var(--ag-secondary-foreground-color)}.ag-filter-separator{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-filter-select .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}.ag-ltr .ag-filter-condition-operator-or{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-filter-condition-operator-or{margin-right:calc(var(--ag-grid-size) * 2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-set-filter-list,.ag-filter-no-matches{height:calc(var(--ag-list-item-height) * 6)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height) * 10)}.ag-set-filter-filter{margin-top:var(--ag-widget-container-vertical-padding);margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-item{padding:0px var(--ag-widget-container-horizontal-padding)}.ag-ltr .ag-set-filter-indent-1{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 1 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-1{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 1 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-2{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 2 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-2{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 2 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-3{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 3 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-3{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 3 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-4{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 4 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-4{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 4 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-5{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 5 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-5{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 5 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-6{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 6 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-6{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 6 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-7{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 7 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-7{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 7 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-8{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 8 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-8{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 8 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-9{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 9 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-9{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 9 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-rtl .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-ltr .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-menu .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{outline:none}.ag-filter-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-filter-apply-panel{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-filter-apply-panel-button{line-height:1.5}.ag-ltr .ag-filter-apply-panel-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-filter-apply-panel-button{margin-right:calc(var(--ag-grid-size) * 2)}.ag-simple-filter-body-wrapper{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));overflow-y:auto;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing))}.ag-simple-filter-body-wrapper>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-simple-filter-body-wrapper .ag-resizer-wrapper{margin:0}.ag-menu:not(.ag-tabs) .ag-filter .ag-simple-filter-body-wrapper,.ag-menu:not(.ag-tabs) .ag-filter>*:not(.ag-filter-wrapper){min-width:calc(var(--ag-menu-min-width) - 2px)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-multi-filter-menu-item{margin:var(--ag-grid-size) 0}.ag-multi-filter-group-title-bar{padding:calc(var(--ag-grid-size) * 2) var(--ag-grid-size);background-color:transparent}.ag-group-filter-field-select-wrapper{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing))}.ag-group-filter-field-select-wrapper>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-multi-filter-group-title-bar:focus-visible{outline:none}.ag-multi-filter-group-title-bar:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-side-bar{position:relative}.ag-tool-panel-wrapper{width:var(--ag-side-bar-panel-width);background-color:var(--ag-control-panel-background-color)}.ag-side-buttons{padding-top:calc(var(--ag-grid-size) * 4);width:calc(var(--ag-icon-size) + 4px);position:relative;overflow:hidden}button.ag-side-button-button{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;background:transparent;padding:calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;width:100%;margin:0;min-height:calc(var(--ag-grid-size) * 18);background-position-y:center;background-position-x:center;background-repeat:no-repeat;border:none;border-top:var(--ag-borders-side-button) var(--ag-border-color);border-bottom:var(--ag-borders-side-button) var(--ag-border-color)}button.ag-side-button-button:focus{box-shadow:none}.ag-side-button-button:focus-visible{outline:none}.ag-side-button-button:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-selected button.ag-side-button-button{background-color:var(--ag-side-button-selected-background-color)}.ag-side-button-icon-wrapper{margin-bottom:3px}.ag-ltr .ag-side-bar-left,.ag-rtl .ag-side-bar-right{border-right:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper{border-left:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-side-bar-left .ag-side-button-button,.ag-rtl .ag-side-bar-right .ag-side-button-button{border-right:var(--ag-selected-tab-underline-width) solid transparent;transition:border-right var(--ag-selected-tab-underline-transition-speed)}.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button{border-right-color:var(--ag-selected-tab-underline-color)}.ag-rtl .ag-side-bar-left,.ag-ltr .ag-side-bar-right{border-left:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper{border-right:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-side-bar-left .ag-side-button-button,.ag-ltr .ag-side-bar-right .ag-side-button-button{border-left:var(--ag-selected-tab-underline-width) solid transparent;transition:border-left var(--ag-selected-tab-underline-transition-speed)}.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button{border-left-color:var(--ag-selected-tab-underline-color)}.ag-filter-toolpanel-header{height:calc(var(--ag-grid-size) * 6)}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{padding:0 var(--ag-grid-size)}.ag-filter-toolpanel-header:focus-visible{outline:none}.ag-filter-toolpanel-header:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-filter-toolpanel-group.ag-has-filter>.ag-group-title-bar .ag-group-title:after{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:var(--ag-icon-font-code-filter, "");position:absolute}.ag-ltr .ag-filter-toolpanel-group.ag-has-filter>.ag-group-title-bar .ag-group-title:after{padding-left:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-group.ag-has-filter>.ag-group-title-bar .ag-group-title:after{padding-right:var(--ag-grid-size)}.ag-filter-toolpanel-group-level-0-header{height:calc(var(--ag-grid-size) * 8)}.ag-filter-toolpanel-group-item{margin-top:calc(var(--ag-grid-size) * .5);margin-bottom:calc(var(--ag-grid-size) * .5)}.ag-filter-toolpanel-search{height:var(--ag-header-height)}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-grid-size) * 4)}.ag-ltr .ag-filter-toolpanel-search-input{margin-right:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-search-input{margin-left:var(--ag-grid-size)}.ag-filter-toolpanel-group-level-0{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-ltr .ag-filter-toolpanel-expand,.ag-ltr .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-expand,.ag-rtl .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size))}.ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header{padding-left:var(--ag-grid-size)}.ag-filter-toolpanel-instance-filter{border-bottom:var(--ag-borders) var(--ag-border-color);border-top:var(--ag-borders) var(--ag-border-color);margin-top:var(--ag-grid-size)}.ag-ltr .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-grid-size)}.ag-set-filter-group-icons{color:var(--ag-secondary-foreground-color)}.ag-pivot-mode-panel{min-height:var(--ag-header-height);height:var(--ag-header-height);display:flex}.ag-pivot-mode-select{display:flex;align-items:center}.ag-ltr .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-select-header:focus-visible{outline:none}.ag-column-select-header:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-select-header{height:var(--ag-header-height);align-items:center;padding:0 var(--ag-widget-container-horizontal-padding);border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-panel-column-select{border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-group-icons,.ag-column-select-header-icon{color:var(--ag-secondary-foreground-color)}.ag-column-select-list .ag-list-item-hovered:after{content:"";position:absolute;left:0;right:0;height:1px;background-color:var(--ag-range-selection-border-color)}.ag-column-select-list .ag-item-highlight-top:after{top:0}.ag-column-select-list .ag-item-highlight-bottom:after{bottom:0}.ag-header,.ag-advanced-filter-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-row{color:var(--ag-header-foreground-color);height:var(--ag-header-height)}.ag-pinned-right-header{border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-pinned-left-header{border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon{margin-left:var(--ag-grid-size)}.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon{margin-right:var(--ag-grid-size)}.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon{margin-right:var(--ag-grid-size)}.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon{margin-left:var(--ag-grid-size)}.ag-header-cell,.ag-header-group-cell{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-header-cell.ag-header-cell-moving,.ag-header-group-cell.ag-header-cell-moving{background-color:var(--ag-header-cell-moving-background-color)}.ag-ltr .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell:focus-visible{outline:none}.ag-header-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-header-group-cell:focus-visible{outline:none}.ag-header-group-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-header-cell:focus-visible{outline:none}.ag-advanced-filter-header-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-header-icon{color:var(--ag-secondary-foreground-color)}.ag-header-expand-icon{cursor:pointer}.ag-ltr .ag-header-expand-icon{margin-left:4px}.ag-rtl .ag-header-expand-icon{margin-right:4px}.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total),.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-group-cell:not(.ag-column-resizing)+.ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,.ag-header-group-cell:not(.ag-column-resizing)+.ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,.ag-header-cell:not(.ag-column-resizing)+.ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,.ag-header-cell:not(.ag-column-resizing)+.ag-header-cell:not(.ag-column-hover).ag-column-resizing,.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,.ag-header-group-cell:first-of-type.ag-column-resizing,.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing{background-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell:before,.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):before{content:"";position:absolute;z-index:1;display:var(--ag-header-column-separator-display);width:var(--ag-header-column-separator-width);height:var(--ag-header-column-separator-height);top:calc(50% - var(--ag-header-column-separator-height) * .5);background-color:var(--ag-header-column-separator-color)}.ag-ltr .ag-header-cell:before,.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):before{right:0}.ag-rtl .ag-header-cell:before,.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):before{left:0}.ag-header-cell-resize{display:flex;align-items:center}.ag-header-cell-resize:after{content:"";position:absolute;z-index:1;display:var(--ag-header-column-resize-handle-display);width:var(--ag-header-column-resize-handle-width);height:var(--ag-header-column-resize-handle-height);top:calc(50% - var(--ag-header-column-resize-handle-height) * .5);background-color:var(--ag-header-column-resize-handle-color)}.ag-header-cell.ag-header-span-height .ag-header-cell-resize:after{height:calc(100% - var(--ag-grid-size) * 4);top:calc(var(--ag-grid-size) * 2)}.ag-ltr .ag-header-viewport .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-rtl .ag-header-viewport .ag-header-cell-resize:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-ltr .ag-header-select-all{margin-right:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-select-all{margin-left:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-floating-filter-button{margin-left:var(--ag-cell-widget-spacing)}.ag-rtl .ag-floating-filter-button{margin-right:var(--ag-cell-widget-spacing)}.ag-floating-filter-button-button{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;height:var(--ag-icon-size);padding:0;width:var(--ag-icon-size)}.ag-filter-loading{background-color:var(--ag-control-panel-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1}.ag-paging-panel{border-top:1px solid;border-top-color:var(--ag-border-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height)}.ag-paging-panel>*{margin:0 var(--ag-cell-horizontal-padding)}.ag-paging-panel>.ag-paging-page-size .ag-wrapper{min-width:calc(var(--ag-grid-size) * 10)}.ag-paging-button{cursor:pointer}.ag-paging-button.ag-disabled{cursor:default;color:var(--ag-disabled-foreground-color)}.ag-paging-button:focus-visible{outline:none}.ag-paging-button:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:0;left:0;display:block;width:calc(100% + -0px);height:calc(100% + -0px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-paging-button,.ag-paging-description{margin:0 var(--ag-grid-size)}.ag-status-bar{border-top:var(--ag-borders) var(--ag-border-color);color:var(--ag-disabled-foreground-color);padding-right:calc(var(--ag-grid-size) * 4);padding-left:calc(var(--ag-grid-size) * 4);line-height:1.5}.ag-status-name-value-value{color:var(--ag-foreground-color)}.ag-status-bar-center{text-align:center}.ag-status-name-value{margin-left:var(--ag-grid-size);margin-right:var(--ag-grid-size);padding-top:calc(var(--ag-grid-size) * 2);padding-bottom:calc(var(--ag-grid-size) * 2)}.ag-column-drop-cell{background:var(--ag-chip-background-color);border-radius:calc(var(--ag-grid-size) * 4);height:calc(var(--ag-grid-size) * 4);padding:0 calc(var(--ag-grid-size) * .5);border:1px solid var(--ag-chip-border-color)}.ag-column-drop-cell:focus-visible{outline:none}.ag-column-drop-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:2px;left:2px;display:block;width:calc(100% - 4px);height:calc(100% - 4px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-drop-cell-text{margin:0 var(--ag-grid-size)}.ag-column-drop-cell-button{min-width:calc(var(--ag-grid-size) * 4);margin:0 calc(var(--ag-grid-size) * .5);color:var(--ag-secondary-foreground-color)}.ag-column-drop-cell-drag-handle{margin-left:calc(var(--ag-grid-size) * 2)}.ag-column-drop-cell-ghost{opacity:.5}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height);border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child){border-right:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child){border-left:var(--ag-borders) var(--ag-border-color)}.ag-column-drop-horizontal-cell-separator{margin:0 var(--ag-grid-size);color:var(--ag-secondary-foreground-color)}.ag-column-drop-horizontal-empty-message{color:var(--ag-disabled-foreground-color)}.ag-ltr .ag-column-drop-horizontal-icon{margin-right:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal-icon{margin-left:var(--ag-cell-horizontal-padding)}.ag-column-drop-vertical-list{padding-bottom:var(--ag-grid-size);padding-right:var(--ag-grid-size);padding-left:var(--ag-grid-size)}.ag-column-drop-vertical-cell{margin-top:var(--ag-grid-size)}.ag-column-drop-vertical{min-height:50px;border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-drop-vertical.ag-last-column-drop{border-bottom:none}.ag-column-drop-vertical-icon{margin-left:var(--ag-grid-size);margin-right:var(--ag-grid-size)}.ag-column-drop-vertical-empty-message{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;color:var(--ag-disabled-foreground-color);margin-top:var(--ag-grid-size)}.ag-select-agg-func-popup{border:var(--ag-borders) var(--ag-border-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background:var(--ag-background-color);height:calc(var(--ag-grid-size) * 5 * 3.5);padding:0}.ag-select-agg-func-virtual-list-item{cursor:default}.ag-ltr .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-grid-size) * 2)}.ag-select-agg-func-virtual-list-item:hover{background-color:var(--ag-selected-row-background-color)}.ag-select-agg-func-virtual-list-item:focus-visible{outline:none}.ag-select-agg-func-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-sort-indicator-container{display:flex}.ag-ltr .ag-sort-indicator-icon{padding-left:var(--ag-grid-size)}.ag-rtl .ag-sort-indicator-icon{padding-right:var(--ag-grid-size)}.ag-chart{position:relative;display:flex;overflow:hidden;width:100%;height:100%}.ag-chart-components-wrapper{position:relative;display:flex;flex:1 1 auto;overflow:hidden}.ag-chart-title-edit{position:absolute;display:none;top:0;left:0;text-align:center}.ag-chart-title-edit.currently-editing{display:inline-block}.ag-chart-canvas-wrapper{position:relative;flex:1 1 auto;overflow:hidden}.ag-charts-canvas{display:block}.ag-chart-menu{position:absolute;top:16px;display:flex;flex-direction:column}.ag-ltr .ag-chart-menu{right:20px}.ag-rtl .ag-chart-menu{left:20px}.ag-chart-docked-container{position:relative;width:0;min-width:0;transition:min-width .4s}.ag-chart-menu-hidden~.ag-chart-docked-container{max-width:0;overflow:hidden}.ag-chart-tabbed-menu{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.ag-chart-tabbed-menu-header{flex:none;-moz-user-select:none;-webkit-user-select:none;user-select:none;cursor:default}.ag-chart-tabbed-menu-body{display:flex;flex:1 1 auto;align-items:stretch;overflow:hidden}.ag-chart-tab{width:100%;overflow:hidden;overflow-y:auto}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{position:relative;flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden}.ag-chart-settings-nav-bar{display:flex;align-items:center;width:100%;height:30px;padding:0 10px;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-chart-settings-card-selector{display:flex;align-items:center;justify-content:space-around;flex:1 1 auto;height:100%;padding:0 10px}.ag-chart-settings-card-item{cursor:pointer;width:10px;height:10px;background-color:#000;position:relative}.ag-chart-settings-card-item.ag-not-selected{opacity:.2}.ag-chart-settings-card-item:before{content:" ";display:block;position:absolute;background-color:transparent;left:50%;top:50%;margin-left:-10px;margin-top:-10px;width:20px;height:20px}.ag-chart-settings-prev,.ag-chart-settings-next{position:relative;flex:none}.ag-chart-settings-prev-button,.ag-chart-settings-next-button{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;opacity:0}.ag-chart-settings-mini-charts-container{position:relative;flex:1 1 auto;overflow-x:hidden;overflow-y:auto}.ag-chart-settings-mini-wrapper{position:absolute;top:0;left:0;display:flex;flex-direction:column;width:100%;min-height:100%;overflow:hidden}.ag-chart-settings-mini-wrapper.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}.ag-chart-mini-thumbnail{cursor:pointer}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;position:relative;-moz-user-select:none;-webkit-user-select:none;user-select:none;padding-bottom:16px}.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-empty-text{display:flex;top:0;width:100%;height:100%;align-items:center;justify-content:center;background-color:var(--ag-background-color)}.ag-chart .ag-chart-menu{display:none}.ag-chart-menu-hidden:hover .ag-chart-menu{display:block}.ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu{display:flex;flex-direction:row;top:8px;gap:20px;width:auto}.ag-ltr .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu{right:calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);justify-content:right}.ag-rtl .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu{left:calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);justify-content:left}.ag-chart-menu-close{display:none}.ag-chart-tool-panel-button-enable .ag-chart-menu-close{position:absolute;top:50%;transition:transform .33s ease-in-out;padding:0;display:block;cursor:pointer;border:none}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close{right:0}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close{left:0}.ag-chart-tool-panel-button-enable .ag-chart-menu-close .ag-icon{padding:14px 5px 14px 2px;width:auto;height:auto}.ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{content:"";position:absolute;top:-40px;bottom:-40px}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{right:0}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{left:0}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{left:-10px}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{right:-10px}.ag-chart-tool-panel-button-enable .ag-icon-menu{display:none}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close{transform:translate(3px,-50%)}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover{transform:translateY(-50%)}.ag-ltr .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover{transform:translate(5px,-50%)}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close{transform:translate(-3px,-50%)}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover{transform:translateY(-50%)}.ag-rtl .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover{transform:translate(-5px,-50%)}.ag-charts-font-size-color{display:flex;align-self:stretch;justify-content:space-between}.ag-charts-data-group-item{position:relative}.ag-chart-menu{border-radius:var(--ag-card-radius);background:var(--ag-background-color)}.ag-chart-menu-icon{opacity:.5;margin:2px 0;cursor:pointer;border-radius:var(--ag-card-radius);color:var(--ag-secondary-foreground-color)}.ag-chart-menu-icon:hover{opacity:1}.ag-chart-mini-thumbnail{border:1px solid var(--ag-secondary-border-color);border-radius:5px}.ag-chart-mini-thumbnail.ag-selected{border-color:var(--ag-minichart-selected-chart-color)}.ag-chart-settings-card-item{background:var(--ag-foreground-color);width:8px;height:8px;border-radius:4px}.ag-chart-settings-card-item.ag-selected{background-color:var(--ag-minichart-selected-page-color)}.ag-chart-data-column-drag-handle{margin-left:var(--ag-grid-size)}.ag-charts-settings-group-title-bar,.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding) * .5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group){height:var(--ag-list-item-height)}.ag-charts-data-group-container .ag-list-item-hovered:after{content:"";position:absolute;left:0;right:0;height:1px;background-color:var(--ag-range-selection-border-color)}.ag-charts-data-group-container .ag-item-highlight-top:after{top:0}.ag-charts-data-group-container .ag-item-highlight-bottom:after{bottom:0}.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-grid-size) * 2);padding:var(--ag-grid-size)}.ag-charts-format-top-level-group-item{margin:var(--ag-grid-size) 0}.ag-charts-format-sub-level-group-container{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing))}.ag-charts-format-sub-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-settings-group-container{padding:var(--ag-grid-size);row-gap:8px;display:grid;grid-template-columns:60px 1fr 60px 1fr 60px}.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+1){grid-column:1}.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+2){grid-column:3}.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+3){grid-column:5}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0}.ag-chart-menu-panel{background-color:var(--ag-control-panel-background-color)}.ag-ltr .ag-chart-menu-panel{border-left:solid 1px var(--ag-border-color)}.ag-rtl .ag-chart-menu-panel{border-right:solid 1px var(--ag-border-color)}.ag-date-time-list-page-title-bar{display:flex}.ag-date-time-list-page-title{flex-grow:1;text-align:center}.ag-date-time-list-page-column-labels-row,.ag-date-time-list-page-entries-row{display:flex}.ag-date-time-list-page-column-label,.ag-date-time-list-page-entry{flex-basis:0;flex-grow:1}.ag-date-time-list-page-entry{cursor:pointer;text-align:center}.ag-date-time-list-page-column-label{text-align:center}.ag-advanced-filter-header{position:relative;display:flex;align-items:center;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-advanced-filter{display:flex;align-items:center;width:100%}.ag-advanced-filter-apply-button,.ag-advanced-filter-builder-button{line-height:normal;white-space:nowrap}.ag-ltr .ag-advanced-filter-apply-button,.ag-ltr .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-advanced-filter-apply-button,.ag-rtl .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-button{display:flex;align-items:center;border:0;background-color:unset;color:var(--ag-foreground-color);font-size:var(--ag-font-size);font-weight:600}.ag-advanced-filter-builder-button:hover:not(:disabled){background-color:var(--ag-row-hover-color)}.ag-advanced-filter-builder-button:not(:disabled){cursor:pointer}.ag-advanced-filter-builder-button-label{margin-left:var(--ag-grid-size)}.ag-advanced-filter-builder{-moz-user-select:none;-webkit-user-select:none;user-select:none;width:100%;background-color:var(--ag-control-panel-background-color);display:flex;flex-direction:column}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-list .ag-list-item-hovered:after{content:"";position:absolute;left:0;right:0;height:1px;background-color:var(--ag-range-selection-border-color)}.ag-advanced-filter-builder-list .ag-item-highlight-top:after{top:0}.ag-advanced-filter-builder-list .ag-item-highlight-bottom:after{bottom:0}.ag-advanced-filter-builder-button-panel{display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-item-wrapper{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;overflow:hidden;padding-left:calc(var(--ag-icon-size) / 2);padding-right:var(--ag-icon-size)}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root:before{top:50%;height:50%}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-top,.ag-advanced-filter-builder-item-tree-line-vertical-bottom{position:relative;height:100%;display:flex;align-items:center}.ag-advanced-filter-builder-item-tree-line-horizontal:before,.ag-advanced-filter-builder-item-tree-line-horizontal:after,.ag-advanced-filter-builder-item-tree-line-vertical:before,.ag-advanced-filter-builder-item-tree-line-vertical:after,.ag-advanced-filter-builder-item-tree-line-vertical-top:before,.ag-advanced-filter-builder-item-tree-line-vertical-top:after,.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before,.ag-advanced-filter-builder-item-tree-line-vertical-bottom:after{content:"";position:absolute;height:100%}.ag-advanced-filter-builder-item-tree-line-horizontal:after{height:50%;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));top:0;left:calc(var(--ag-icon-size) / 2);border-bottom:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical:before{width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);top:0;left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical-top:before{height:50%;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);top:0;left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{height:calc((100% - 1.5 * var(--ag-icon-size)) / 2);width:calc(var(--ag-icon-size) / 2);top:calc((100% + 1.5 * var(--ag-icon-size)) / 2);left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-condition{padding-top:var(--ag-grid-size);padding-bottom:var(--ag-grid-size)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-pill-wrapper,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-tree-lines{display:flex;align-items:center;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0px var(--ag-grid-size)}.ag-advanced-filter-builder-pill{position:relative;border-radius:var(--ag-border-radius);padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);min-height:calc(100% - var(--ag-grid-size) * 3);min-width:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-pill .ag-picker-field-display{margin-right:var(--ag-grid-size)}.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty{color:var(--ag-disabled-foreground-color)}.ag-advanced-filter-builder-pill:focus-visible{outline:none}.ag-advanced-filter-builder-pill:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:-4px;left:-4px;display:block;width:calc(100% + 8px);height:calc(100% + 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-builder-item-button:focus-visible{outline:none}.ag-advanced-filter-builder-item-button:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:-4px;left:-4px;display:block;width:calc(100% + 8px);height:calc(100% + 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-builder-pill-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.ag-advanced-filter-builder-join-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-value-pill-color);cursor:text;max-width:140px}.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display{display:block}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-grid-size) * .5)}.ag-advanced-filter-builder-item-button{position:relative;cursor:pointer;color:var(--ag-secondary-foreground-color);opacity:50%}.ag-advanced-filter-builder-item-button-disabled{color:var(--ag-disabled-foreground-color);cursor:default}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-grid-size)}.ag-advanced-filter-builder-virtual-list-item{display:flex;cursor:default;height:var(--ag-list-item-height)}.ag-advanced-filter-builder-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button{opacity:100%}.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid{opacity:100%}.ag-advanced-filter-builder-invalid{margin:0 var(--ag-grid-size);color:var(--ag-invalid-color);cursor:default}.ag-input-field-input{width:100%;min-width:0}.ag-checkbox-input-wrapper{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-checkbox-background-color);border-radius:var(--ag-checkbox-border-radius);display:inline-block;vertical-align:middle;flex:none}.ag-checkbox-input-wrapper input{-webkit-appearance:none;opacity:0;width:100%;height:100%}.ag-checkbox-input-wrapper:focus-within,.ag-checkbox-input-wrapper:active{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-checkbox-input-wrapper.ag-disabled{opacity:.5}.ag-checkbox-input-wrapper:after{content:var(--ag-icon-font-code-checkbox-unchecked, "");color:var(--ag-checkbox-unchecked-color);display:var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper.ag-checked:after{content:var(--ag-icon-font-code-checkbox-checked, "");color:var(--ag-checkbox-checked-color);display:var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper.ag-indeterminate:after{content:var(--ag-icon-font-code-checkbox-indeterminate, "");color:var(--ag-checkbox-indeterminate-color);display:var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper:before{content:"";background:transparent center/contain no-repeat;position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, .9))}.ag-checkbox-input-wrapper.ag-checked:before{background-image:var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, .9))}.ag-checkbox-input-wrapper.ag-indeterminate:before{background-image:var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, .9))}.ag-toggle-button-input-wrapper{box-sizing:border-box;width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);max-width:var(--ag-toggle-button-width);height:var(--ag-toggle-button-height);background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height) * .5);position:relative;flex:none;border:var(--ag-toggle-button-border-width) solid;border-color:var(--ag-toggle-button-off-border-color)}.ag-toggle-button-input-wrapper input{opacity:0;height:100%;width:100%}.ag-toggle-button-input-wrapper:focus-within{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-toggle-button-input-wrapper.ag-disabled{opacity:.5}.ag-toggle-button-input-wrapper.ag-checked{background-color:var(--ag-toggle-button-on-background-color);border-color:var(--ag-toggle-button-on-border-color)}.ag-toggle-button-input-wrapper:before{content:" ";position:absolute;top:calc(0px - var(--ag-toggle-button-border-width));left:calc(0px - var(--ag-toggle-button-border-width));display:block;box-sizing:border-box;height:var(--ag-toggle-button-height);width:var(--ag-toggle-button-height);background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;transition:left .1s;border:var(--ag-toggle-button-border-width) solid;border-color:var(--ag-toggle-button-switch-border-color)}.ag-toggle-button-input-wrapper.ag-checked:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));border-color:var(--ag-toggle-button-on-border-color)}.ag-radio-button-input-wrapper{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-checkbox-background-color);border-radius:var(--ag-checkbox-border-radius);display:inline-block;vertical-align:middle;flex:none;border-radius:var(--ag-icon-size)}.ag-radio-button-input-wrapper input{-webkit-appearance:none;opacity:0;width:100%;height:100%}.ag-radio-button-input-wrapper:focus-within,.ag-radio-button-input-wrapper:active{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-radio-button-input-wrapper.ag-disabled{opacity:.5}.ag-radio-button-input-wrapper:after{content:var(--ag-icon-font-code-radio-button-off, "");color:var(--ag-checkbox-unchecked-color);display:var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-radio-button-input-wrapper.ag-checked:after{content:var(--ag-icon-font-code-radio-button-on, "");color:var(--ag-checkbox-checked-color);display:var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-radio-button-input-wrapper:before{content:"";background:transparent center/contain no-repeat;position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--ag-icon-image-radio-button-off, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, .9))}.ag-radio-button-input-wrapper.ag-checked:before{background-image:var(--ag-icon-image-radio-button-on, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, .9))}input[class^=ag-][type=range]{-webkit-appearance:none;width:100%;height:100%;background:none;overflow:visible}input[class^=ag-][type=range]::-webkit-slider-runnable-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius)}input[class^=ag-][type=range]::-moz-range-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius)}input[class^=ag-][type=range]::-ms-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius);color:transparent;width:calc(100% - 2px)}input[class^=ag-][type=range]::-webkit-slider-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size);transform:translateY(calc(var(--ag-icon-size) * -.5 + 1.5px))}input[class^=ag-][type=range]::-ms-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size)}input[class^=ag-][type=range]::-moz-ag-range-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size)}input[class^=ag-][type=range]:focus{outline:none}input[class^=ag-][type=range]:focus::-webkit-slider-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}input[class^=ag-][type=range]:focus::-ms-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}input[class^=ag-][type=range]:focus::-moz-ag-range-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}input[class^=ag-][type=range]:active::-webkit-slider-runnable-track{background-color:var(--ag-input-focus-border-color)}input[class^=ag-][type=range]:active::-moz-ag-range-track{background-color:var(--ag-input-focus-border-color)}input[class^=ag-][type=range]:active::-ms-track{background-color:var(--ag-input-focus-border-color)}input[class^=ag-][type=range]:disabled{opacity:.5}@font-face{font-family:agGridAlpine;src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABKwAAsAAAAAJ/QAABJeAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIlCBmAAi3AKqUyiKwE2AiQDgjwLgSAABCAFhEYHhTYb7iIzknRW3UVUT4rZ/yGByqEVyfAPCoGBVAeLaZy1NEUgHG5qbTJUKK65bieBiXNesm+H/kz+7nJIEpoE3+/3uufdH0AFMkIBQhFcAFDFl4Wp7lRoFLJTBairyjb/t/bs7+7IyjPxWfFndohimiiJSCNVMiXytQEpDCAvrmVSeEiuz2pkFBn71N4A+Wm1PT1ApaemJsEZHH5/+f6tHdlX0iFUPUx4GMD6rwoJUCiD0n6gbf7DMxAcRiRi0hbY+GfUHViJi8JIMPYbF2WBUbNyzToV4Wew7v2p+Q2nttnDYl+SMVtpv9Udg8AkSPCE8JUIINhyf8M0OkgJleAT1F9rn9lMECVwh0Do+Djd09O7O+/1mwWe9BJNJjTLkw0gWSBF/H9+qoBJ5ewpYHnuhCehSZhz9lwI2tDKfGldggS/ySJ7xa2c4LAIrw71XX9j8/dwVSZiNBZgxU9vjyOAYmM2fmTs/HXBtem9DVnY1aYBXmvH2vLiNPEwDZ7pGMQXnLspqOqmr35HOfc1nmWhOnqYTtK79FN1ACIqG+L4KNc3ptIoGJ3BZOFR6jSoyeZA2uEW/Kg0Uox9cJSCqQzHZrG6jlrCmF2LhltrBzr93NsyXa63ti00++IsHYRBsaTDZEVjphjJiWbL4WGcg0ePEm0cMZYdzU4EseHSeOJQtVjuje3dvVfRLidotoz6qjqNav9esYP8Ml9FVZfH5LTNn5BKVzYdaSwjmMG1CrNTV7WhSbfFeAub2LHLMM2GrgL3aGhX8qvT3fDYgM++Xm3jlN0bvZlKatdqU0v/7Kt6NBe6IXF61QdHXRhzpvHL2nvvu+feeOurH/5zuEIQJC1pHez9mmkTzOZF0UrjkOTu7rtmhwpXzGbWl/iZ0UxQbR0DrKpR+ciq6lSM+4P+jkyojXWwZ3FgdORyzEBMu8SodIFsDuRw+IF5oE+C+fXPQlDaYmGyrLapfFOZRs+iyBHP8i+qTHjaoa+FMmLF96bC77XDfZYj0YQ/q7GXrgpEzIYRnXelKdnYYH0yFobmHLKidfPkix3tKDYXr1+dR6VNiSzeH5uA8I4/qLpBQZOv0pzXLdEgt4b8ea1pNFbndOoZHKXvqEPtqvKouETvjjd2laxW6tIJnCC2pVD6AKq6PDv7nN3OBc5+xuWB7CR7gfuP33581xg8QIYkuLqjywujc36p/aWm/3E3N4Rs02aiq0Dh7AmoAXIgq5gvjnJAz34NRC69GuwPSol42MArH3371XF2hlqPvPH5V7yLv3KD/7pqXhMDo9Br7hqgLuvhQIYVj7LSJMOAgxuxbZxccXgIRtDpVkUSmY9fQFBIWERULNpgUkpaxp+OOXkFRSVlFVU1dQ1NLW0dXT19A0MjZWMTU0jYzNwCRD5cjeExobaRgfHOC+1DnRcOTvT2/Ov//379cL5v9NxFOzVLAemzCVeA2ls2BkyzNmCGjQCzbACYY+PAPOsEFtgFYJG1A0tsCFhm3cAqGwbW2CCwziaADdYLbLIeYItNATusA9hl/cAe6wL22SRwwM4Dh6wPOGKjwDE7B5z0uwh+ceiReAghCGEIEQhRCAkQEiEkQUiGkA9CfggFIBSEUAhCYQhFIBSFUAxCcQglIJSEUApCaQhlIJSFUA5CeQgVIFSEUAlCZQhVIFSFUA1CdQg1INSEUAtCbQh1INSFUA9CfQgNIDSE0AhCY9Zfpwn0maYQmkFobigJ/FpYYyMG1ZECIRVQjEtv+iWe4gl57ync886N+8wMZN1VvOwjGPddoCiRLhkjJQGOSC0zCeTItsw2iyxh/SLvgtJ8il0gJ/wYY+M0rrkojOGCVIpgfwTJPbXQCkiibIX7NB8LhaIBkX6OqBbFUhInXGmSpNmU9ROBQFIS67k0ImUIkQRKaCYRMMh5AJJM5oEYLkb8kaT3L1HTisBeByai2GnmmsjNFxz6MNQrKEIQLyDiGXfdKwg6T3aAKFjaBqf3MqpUx2ZspWOrQN2xha/6DcxNwTBIcAiRALxXKXIMtMiCWgXp5TnY6fw7sZhcW8Sl/cJHrZAggV7HmUPCfCtVSJ9eQIXQjyhbIghFzMaspsCd1mWc95N5N5B0fp4ET6nJLNttrVAhYtyrw21QJdpYs/D0DtHQRtF+iTATabO1Vkx0yCkWnNzH+CqLgjukEhj5Dz5LeJ429s68i8gziy+d5bIyjFRTqZzkh1ozVXK0AeyTY1bZhDLMAT2VcM3V0RGOouapsTJ4tF9M1/mTyagqmZS8rGgdmWi+tmqh91eSqSK3y+Qy0Ba1uO83b/tXIhiJW+IyB6MvILhvX7wXs/ItLPIIJ/eFsb7awLKW5WVXVq6UyqBSoY/iw8o8cN2kV6s5YRRKj9RfGpPwrPXanB5Ib7fMeVqWyrDleG+1b25Ig3OxLa7KREVTCBYs3FJSJeMOTGCrkclxAPBCsajQXl4uWvm8XTyvDBOS3ywUAYj2gz5Mzdd1W3OzOWVoWGiakvDx/+UsLBfV2BFlwEoVciJIaxMhchGXnzqrQoUPphaosiRUtKpNV6lsUiUvqinzUcpquc6iMFL5faOrX7eFgmZymN+2oBHxESZBiLhKUEzIVl2WXfeoLYhiCXIxYSA4gAM/NBEYXDhnYWAmiJEbPYrrlIWwZsqfu8UJJRcWKbx5Fu2UOdMSAd+7cebz9Z3A4nUc5UnyXAgf+nFoW41mW4XYhkM/bIRzuJJh+AVULSMILynK1qh3UE2aCkhIAlV+vn1xjaFHgCGIfZhgAqaWtFhmT5w5rOSkqlSq4pSdWIGrRNM0EF5uSq/bEaZB0/yNGSTjL2W5+lrbJWkGE7zmbB3yl2GWdzhGkPOfDBm1LPWa8jrCRM3brAd8pthufNS7ftis09wavUg/71VqOekod7ERmLcRry1HbfkNg5WVwR8zupXK4T+KDqlUQz9l96nVY38XktQnObzsqN7QbN5zh+GOW6ysJ2gxet1hQuV684o9ZhdYlyiTjpuanYnhPpyIEQfpnx1KRF4Crn5ZYhYNE4aBb70RgA/7Q9ReHuRBHsxDaq20Haw9traNVXla32uyb5afS2c2vKsGc0nj5/fwiQ5yq6xobiZdiLJtwZcFEwJdcLIemnrYnGJ0PSKmgGclPfWaGo9HbpLlQ/umhMHT2y/+emJwQylqXN3/8ScO4jDFV1CWAqHRybUkiBgbxdoEFxM9UWA2zwz4/X0nvi+4b99FnBecduy2w70lhbOV4mxaGMUIKdrbewWCDAFkcfUi2lPCosPIc5lG8x59/79mIgHOA45RbaICdh6Tmccu+Mt8d5/HLGD/5eMnu6ttn6ALEtvIfYBt8SoJVaJ4K3knqa6W1EiAtVdDcPBdcuj8JV8H+O44uxLMzRMTL13cvz8xKd7bRvHZ4hOeXEeoLQX0b46NDPfO9PfLioq0tMJCL+nBLl28NBs2NbX9HmbtAjHgYo3e3w7U2+9ENNFBsRipimqtUU0FWFb4sqsT69e3NwgU5OQLV3DhobwX4rRrLuDKcwEXXODCcwVFlF3jXYPnjIzMyMjMNA8mCJvDzsANAXPp/7LSqs0t0fM4zzLPQE+hJ1P9vMZ8t3jb9u/q2u9xSrxXuNFPuM39KoMd9ktmRmWB7/qizV3OVyGmliEeJvq9q+pCK2mGlotUp2OlTgKBdSOpZ45kbWVuYU+6+sKEuJ1Uv2bLfQNjvgmp3/IlcxD8zP6yMBFr15j3rVobnPSng8kq/ayxSAuL4Ysm3SHbvY+RFVbeYF5HrE4g6FjRl602dRgeybWi3vDDE/pMRDBtwGg8yVSn31yOCCfTsEAqJnRHjCo8dyBG44QX1uZWeGY70fy2EA+ABdI87Pvjba50M+RXGEfljO6jCM6zJrkmSQrolIWsfkcvbB+KTwLd+MUYmi8N8/6WLmXUrl63fcNqC66hscvrkExuZu8d9Dze0N/AOCFxQ3rtyX0m263MrBiCRn4d41sdvKGToQlsUbAqjf2o+744lkPXFTwe5pXPl0dV1Nslk72ZUTlnbyhKc6jr+SCPrqizTQ4Oik8sKcBfj0oLtA4vKGpmxqXGuY73MihxZHIshUHQy6+hpdtReSiNx0sMds2yCi+kqNgOiBVv+cNvebJ3uqSgyDo8+7TB/9gmV9TLo6ZZrkS2c1axTQ76Ru5dGDffJIy4wFzguaD7mCJjKrizqZyfqv7D7h9/glf0UyeFE7UJXH2OvkBhTk8v4SjEXAn3mJisicrxjybMLOE8Ig6bw1JwqVzxQQlXUoUcyVuxGZyp5rK54rdOOBiZD08WGGLNvjLdxOG9RjPeezDeleeFweeuNguuI8kjQfksVl65+UKQ62yuCzau4+QkNKl6/y4fYryTtMkXRQCbBHrCd+6vXgkTvbVRhJmh9AT6YnxqToU77R4zIoV2O9H54SCnpibjVxwuIgKH+1Vv2fTTNvOXaL8A9U6QiCOSiLjqzhwRcA5KGzPnVKkCYJnuO/HxPeg4mwX/2D9ppTifRfnami+r272e6M/2SaDEx1MSfLKDylwHlpZsXMsSTCEpKOpCEPjl+hnlx5SP52ddwEWuUhwOxBp/6/qtC3z69IdxclTSL0EhRbJ7N94mOKn1kkyzrqhg11gox+EHe/v4g3/FxpaV6GhbuQUnX1zX1vb334p/dvjvXJC8lMtzy00I1tZVxRZ6Fcb72ir2Ev9QWT5dXoZA0/Et0WRytB5iJ1uP/IUt5hIQ/wusex/EeqTzEO9MM8E/fH3d2NCE5vyk4SipU4Gi6ajiuy1e5NgYb1HldwrnC0IVXU/oFntW9Jn2sXrixvoT8IW2pInzhh5fpQ3367nc4w3ielzmi9trzQXtEjedFG/hNTbB9NOJFdUd//ixcSNrhDkeGe5SqXuGR851802WSu8t53hcD4msW/zVxhxmJp2eycz5KXnuPpOew/zJVx+eP4wuj4ws/46cSd+R/1zUWzbFjlER40tZ3ETIh380g+d8dhlz3Dn2Qw6VA//ISIkqBPIiYnQlwfmftL8TQm5urc3r15GRwUEODhERoIgQ5Yng6fS4TJGxWikXzp2bRDGIzGjZ9WBOYWjQnPk5Xvtz0tPxvPUtzR28NeFB0+0+nNWRzzHMES3Py42LGxmhHTkKBsu2Mm7niHtVVnZyR/jO4pqoYaLLy2ge6Rq8Q+F5m6cwSc7yeEuaP58exE2f//96H+A9mXiE+H7+Zkv5cCAAABlpYbsNcXGK5Na1SAnYvmmF0RzuKpuRU/YuNgD4/5GbkAdooz7k56JmgoQsTmuR8dhZD11ei0eOL8w2LEG0FK0Lkv8v7yIasCc0axb7NixwZrJu8i9iVKcMuUFkLUYawJ7RLLQJLHQCsh46I1pyPqsgCI4PK5X7EVPWThRyZlgtup5lHCoVaUjC57+7g74f7k3mG4a+xBMRDQBm6f99shlm7pfcDPDbJg7UlzQxs9tuj9t6EfHiKPG/APWvLytsPerdoLbaG0haCeCTQ24BLiKFFNJ2BQgnCSCJEwNDNSsxDT7osRT4gQGFOJFwZYYYbAQEOG194CANzTvGQxB+AHo0GwEMzU4yAklQAYVmD5gMveJQv5jKfNwO/8rB3sccCH6Dr1Gzdxb0df4Dl5Covemvg+7vFQhYC9h2WLZl8rcirnWcsH1JFHcUY2ozp3cw0o8i+W42c9ID9ybhmua9YoF1L8oCAn6D04GrIo0p5gq5/8ERCnzXEtK60bumNF4FFixAIGi1Bks9XEy8WyK7Tqt6LEGiXgoVlBBlSHeVw713wEi6N2bwsjszeXGOVvdMIXIeK6Nqju9LX4oNlKhQYwrTmMHsH0xzg8LafvhcFiLRWDyRTKUz2Vy+UCyVK9VavdFstTvdXn8wHI0n09l8wRRV0w3Tsh3XvQePnjx78erNJ5998dU33/3wc+1PH57BawmJtvRwmpdNvc2WCTIQG3NqlpOpCuZjSIvOzAd75blGIAsCjIG0wFlQRiWq8IHpmLjLwdGKt19gRSp7pklYGwGrTOdlYyaVsmn2tGleUTaLaeAr296ZlKwLj2p34YeuRF3GTVK45SqWGLFxxUWUn5CbLkw1q0hbEEwnW7GI8Y1ux9Y2kN/BWAQMK1CYVHcEla4bpVyIoibYp5ZOx5jmYJtcwA3CZi5qck1JdvLAFFItJ5zTN5O6oYok6pJzx54LUcPlR1ElJtgr92NCZ9OcLMET7YOVhHZupsAgDbObM2GAllS73uopA+3Upy4Bla9amig+uFMLk9+PI+uax4AIEjJXGNHow2ChewpV2dLEWa01AAA=);font-weight:400;font-style:normal}.ag-theme-alpine,.ag-theme-alpine-dark,.ag-theme-alpine-auto-dark{--ag-alpine-active-color: #2196f3;--ag-selected-row-background-color: rgba(33, 150, 243, .3);--ag-row-hover-color: rgba(33, 150, 243, .1);--ag-column-hover-color: rgba(33, 150, 243, .1);--ag-input-focus-border-color: rgba(33, 150, 243, .4);--ag-range-selection-background-color: rgba(33, 150, 243, .2);--ag-range-selection-background-color-2: rgba(33, 150, 243, .36);--ag-range-selection-background-color-3: rgba(33, 150, 243, .49);--ag-range-selection-background-color-4: rgba(33, 150, 243, .59);--ag-background-color: #fff;--ag-foreground-color: #181d1f;--ag-border-color: #babfc7;--ag-secondary-border-color: #dde2eb;--ag-header-background-color: #f8f8f8;--ag-tooltip-background-color: #f8f8f8;--ag-odd-row-background-color: #fcfcfc;--ag-control-panel-background-color: #f8f8f8;--ag-subheader-background-color: #fff;--ag-invalid-color: #e02525;--ag-checkbox-unchecked-color: #999;--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-checkbox-background-color: var(--ag-background-color);--ag-checkbox-checked-color: var(--ag-alpine-active-color);--ag-range-selection-border-color: var(--ag-alpine-active-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-input-border-color: var(--ag-border-color);--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-input-focus-box-shadow: 0 0 2px .1rem var(--ag-input-focus-border-color);--ag-panel-background-color: var(--ag-header-background-color);--ag-menu-background-color: var(--ag-header-background-color);--ag-disabled-foreground-color: rgba(24, 29, 31, .5);--ag-chip-background-color: rgba(24, 29, 31, .07);--ag-input-disabled-border-color: rgba(186, 191, 199, .3);--ag-input-disabled-background-color: rgba(186, 191, 199, .15);--ag-borders: solid 1px;--ag-border-radius: 3px;--ag-borders-side-button: none;--ag-side-button-selected-background-color: transparent;--ag-header-column-resize-handle-display: block;--ag-header-column-resize-handle-width: 2px;--ag-header-column-resize-handle-height: 30%;--ag-grid-size: 6px;--ag-icon-size: 16px;--ag-row-height: calc(var(--ag-grid-size) * 7);--ag-header-height: calc(var(--ag-grid-size) * 8);--ag-list-item-height: calc(var(--ag-grid-size) * 4);--ag-column-select-indent-size: var(--ag-icon-size);--ag-set-filter-indent-size: var(--ag-icon-size);--ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);--ag-toggle-button-height: 18px;--ag-toggle-button-width: 28px;--ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ag-font-size: 13px;--ag-icon-font-family: agGridAlpine;--ag-selected-tab-underline-color: var(--ag-alpine-active-color);--ag-selected-tab-underline-width: 2px;--ag-selected-tab-underline-transition-speed: .3s;--ag-tab-min-width: 240px;--ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, .4);--ag-popup-shadow: var(--ag-card-shadow);--ag-side-bar-panel-width: 250px}.ag-theme-alpine-dark{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, .5);--ag-modal-overlay-background-color: rgba(24, 29, 31, .66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;--ag-input-focus-box-shadow: 0 0 2px .5px rgba(255, 255, 255, .5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, .5);--ag-chip-background-color: rgba(255, 255, 255, .07);--ag-input-disabled-border-color: rgba(104, 104, 110, .3);--ag-input-disabled-background-color: rgba(104, 104, 110, .07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;color-scheme:dark}.ag-theme-alpine .ag-filter-toolpanel-header,.ag-theme-alpine .ag-filter-toolpanel-search,.ag-theme-alpine .ag-status-bar,.ag-theme-alpine .ag-header-row,.ag-theme-alpine .ag-panel-title-bar-title,.ag-theme-alpine .ag-multi-filter-group-title-bar,.ag-theme-alpine-dark .ag-filter-toolpanel-header,.ag-theme-alpine-dark .ag-filter-toolpanel-search,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-dark .ag-header-row,.ag-theme-alpine-dark .ag-panel-title-bar-title,.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,.ag-theme-alpine-auto-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-header-row,.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar{font-weight:700;color:var(--ag-header-foreground-color)}.ag-theme-alpine .ag-row,.ag-theme-alpine-dark .ag-row,.ag-theme-alpine-auto-dark .ag-row{font-size:calc(var(--ag-font-size) + 1px)}.ag-theme-alpine input[class^=ag-]:not([type]),.ag-theme-alpine input[class^=ag-][type=text],.ag-theme-alpine input[class^=ag-][type=number],.ag-theme-alpine input[class^=ag-][type=tel],.ag-theme-alpine input[class^=ag-][type=date],.ag-theme-alpine input[class^=ag-][type=datetime-local],.ag-theme-alpine textarea[class^=ag-],.ag-theme-alpine-dark input[class^=ag-]:not([type]),.ag-theme-alpine-dark input[class^=ag-][type=text],.ag-theme-alpine-dark input[class^=ag-][type=number],.ag-theme-alpine-dark input[class^=ag-][type=tel],.ag-theme-alpine-dark input[class^=ag-][type=date],.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark textarea[class^=ag-],.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark input[class^=ag-][type=text],.ag-theme-alpine-auto-dark input[class^=ag-][type=number],.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark input[class^=ag-][type=date],.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark textarea[class^=ag-]{min-height:calc(var(--ag-grid-size) * 4);border-radius:var(--ag-border-radius)}.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-ltr textarea[class^=ag-],.ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-ltr textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-]{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-rtl textarea[class^=ag-],.ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-rtl textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-]{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-tab,.ag-theme-alpine-dark .ag-tab,.ag-theme-alpine-auto-dark .ag-tab{padding:calc(var(--ag-grid-size) * 1.5);transition:color .4s;flex:1 1 auto}.ag-theme-alpine .ag-tab-selected,.ag-theme-alpine-dark .ag-tab-selected,.ag-theme-alpine-auto-dark .ag-tab-selected{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-menu,.ag-theme-alpine-dark .ag-menu,.ag-theme-alpine-auto-dark .ag-menu,.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select{background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-menu-header,.ag-theme-alpine-dark .ag-menu-header,.ag-theme-alpine-auto-dark .ag-menu-header{background-color:var(--ag-control-panel-background-color);padding-top:1px}.ag-theme-alpine .ag-tabs-header,.ag-theme-alpine-dark .ag-tabs-header,.ag-theme-alpine-auto-dark .ag-tabs-header{border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-theme-alpine .ag-charts-settings-group-title-bar,.ag-theme-alpine .ag-charts-data-group-title-bar,.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar{padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);line-height:calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px)}.ag-theme-alpine .ag-chart-mini-thumbnail,.ag-theme-alpine-dark .ag-chart-mini-thumbnail,.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail{background-color:var(--ag-background-color)}.ag-theme-alpine .ag-chart-settings-nav-bar,.ag-theme-alpine-dark .ag-chart-settings-nav-bar,.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar{margin-top:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar{padding-left:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar{padding-right:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group,.ag-theme-alpine-dark .ag-charts-format-sub-level-group,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group{border-left:dashed 1px;border-left-color:var(--ag-border-color);padding-left:var(--ag-grid-size);margin-bottom:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar{padding-top:0;padding-bottom:0;background:none;font-weight:700}.ag-theme-alpine .ag-charts-format-sub-level-group-container,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container{padding-bottom:0}.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child{margin-bottom:0}.ag-theme-alpine.ag-dnd-ghost,.ag-theme-alpine-dark.ag-dnd-ghost,.ag-theme-alpine-auto-dark.ag-dnd-ghost{font-size:calc(var(--ag-font-size) - 1px);font-weight:700}.ag-theme-alpine .ag-side-buttons,.ag-theme-alpine-dark .ag-side-buttons,.ag-theme-alpine-auto-dark .ag-side-buttons{width:calc(var(--ag-grid-size) * 5)}.ag-theme-alpine .ag-standard-button,.ag-theme-alpine-dark .ag-standard-button,.ag-theme-alpine-auto-dark .ag-standard-button{font-family:inherit;-moz-appearance:none;appearance:none;-webkit-appearance:none;border-radius:var(--ag-border-radius);border:1px solid;border-color:var(--ag-alpine-active-color);color:var(--ag-alpine-active-color);background-color:var(--ag-background-color);font-weight:600;padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-standard-button:hover,.ag-theme-alpine-dark .ag-standard-button:hover,.ag-theme-alpine-auto-dark .ag-standard-button:hover{border-color:var(--ag-alpine-active-color);background-color:var(--ag-row-hover-color)}.ag-theme-alpine .ag-standard-button:active,.ag-theme-alpine-dark .ag-standard-button:active,.ag-theme-alpine-auto-dark .ag-standard-button:active{border-color:var(--ag-alpine-active-color);background-color:var(--ag-alpine-active-color);color:var(--ag-background-color)}.ag-theme-alpine .ag-standard-button:disabled,.ag-theme-alpine-dark .ag-standard-button:disabled,.ag-theme-alpine-auto-dark .ag-standard-button:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-theme-alpine .ag-column-drop-vertical,.ag-theme-alpine-dark .ag-column-drop-vertical,.ag-theme-alpine-auto-dark .ag-column-drop-vertical{min-height:75px}.ag-theme-alpine .ag-column-drop-vertical-title-bar,.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar{padding:calc(var(--ag-grid-size) * 2);padding-bottom:0}.ag-theme-alpine .ag-column-drop-vertical-empty-message,.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message{display:flex;align-items:center;border:dashed 1px;border-color:var(--ag-border-color);margin:calc(var(--ag-grid-size) * 2);padding:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-column-drop-empty-message,.ag-theme-alpine-dark .ag-column-drop-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-empty-message{color:var(--ag-foreground-color);opacity:.75}.ag-theme-alpine .ag-status-bar,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-status-bar{font-weight:400}.ag-theme-alpine .ag-status-name-value-value,.ag-theme-alpine-dark .ag-status-name-value-value,.ag-theme-alpine-auto-dark .ag-status-name-value-value,.ag-theme-alpine .ag-paging-number,.ag-theme-alpine .ag-paging-row-summary-panel-number,.ag-theme-alpine-dark .ag-paging-number,.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,.ag-theme-alpine-auto-dark .ag-paging-number,.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number{font-weight:700}.ag-theme-alpine .ag-column-drop-cell-button,.ag-theme-alpine-dark .ag-column-drop-cell-button,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button{opacity:.5}.ag-theme-alpine .ag-column-drop-cell-button:hover,.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover{opacity:.75}.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip{opacity:.35}.ag-theme-alpine .ag-header-cell-menu-button:hover,.ag-theme-alpine .ag-header-cell-filter-button:hover,.ag-theme-alpine .ag-side-button-button:hover,.ag-theme-alpine .ag-tab:hover,.ag-theme-alpine .ag-panel-title-bar-button:hover,.ag-theme-alpine .ag-header-expand-icon:hover,.ag-theme-alpine .ag-column-group-icons:hover,.ag-theme-alpine .ag-set-filter-group-icons:hover,.ag-theme-alpine .ag-group-expanded .ag-icon:hover,.ag-theme-alpine .ag-group-contracted .ag-icon:hover,.ag-theme-alpine .ag-chart-settings-prev:hover,.ag-theme-alpine .ag-chart-settings-next:hover,.ag-theme-alpine .ag-group-title-bar-icon:hover,.ag-theme-alpine .ag-column-select-header-icon:hover,.ag-theme-alpine .ag-floating-filter-button-button:hover,.ag-theme-alpine .ag-filter-toolpanel-expand:hover,.ag-theme-alpine .ag-chart-menu-icon:hover,.ag-theme-alpine .ag-chart-menu-close:hover,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-dark .ag-side-button-button:hover,.ag-theme-alpine-dark .ag-tab:hover,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-dark .ag-header-expand-icon:hover,.ag-theme-alpine-dark .ag-column-group-icons:hover,.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-dark .ag-chart-settings-next:hover,.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-dark .ag-chart-menu-close:hover,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-auto-dark .ag-side-button-button:hover,.ag-theme-alpine-auto-dark .ag-tab:hover,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-close:hover{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine .ag-side-button-button:hover .ag-icon,.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon{color:inherit}.ag-theme-alpine .ag-filter-active .ag-icon-filter,.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-menu-close,.ag-theme-alpine-dark .ag-chart-menu-close,.ag-theme-alpine-auto-dark .ag-chart-menu-close{background:var(--ag-background-color)}.ag-theme-alpine .ag-chart-menu-close:hover .ag-icon,.ag-theme-alpine-dark .ag-chart-menu-close:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-chart-menu-close:hover .ag-icon{border-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-menu-close .ag-icon,.ag-theme-alpine-dark .ag-chart-menu-close .ag-icon,.ag-theme-alpine-auto-dark .ag-chart-menu-close .ag-icon{background:var(--ag-header-background-color);border:1px solid var(--ag-border-color);border-right:none}.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button{margin-left:calc(var(--ag-grid-size) * 2);margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button{margin-right:calc(var(--ag-grid-size) * 2);margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter{border:none;background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter{border-left:dashed 1px;border-left-color:var(--ag-border-color);margin-left:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter{border-right:dashed 1px;border-right-color:var(--ag-border-color);margin-right:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-set-filter-list,.ag-theme-alpine-dark .ag-set-filter-list,.ag-theme-alpine-auto-dark .ag-set-filter-list{padding-top:calc(var(--ag-grid-size) * .5);padding-bottom:calc(var(--ag-grid-size) * .5)}.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container{min-height:150px}.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-alpine-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-alpine-auto-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height{padding-top:60px}.ag-theme-alpine .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current{background-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-advanced-filter-builder-button,.ag-theme-alpine-dark .ag-advanced-filter-builder-button,.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button{padding:var(--ag-grid-size);font-weight:600}@keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@keyframes notyf-fadeinleft{0%{opacity:0;transform:translate(25%)}to{opacity:1;transform:translate(0)}}@keyframes notyf-fadeoutright{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(25%)}}@keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@keyframes ripple{0%{transform:scale(0) translateY(-45%) translate(13%)}to{transform:scale(1) translateY(-45%) translate(13%)}}.notyf{position:fixed;top:0;left:0;height:100%;width:100%;color:#fff;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;pointer-events:none;box-sizing:border-box;padding:20px}.notyf__icon--error,.notyf__icon--success{height:21px;width:21px;background:#fff;border-radius:50%;display:block;margin:0 auto;position:relative}.notyf__icon--error:after,.notyf__icon--error:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px;left:9px;height:12px;top:5px}.notyf__icon--error:after{transform:rotate(-45deg)}.notyf__icon--error:before{transform:rotate(45deg)}.notyf__icon--success:after,.notyf__icon--success:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px}.notyf__icon--success:after{height:6px;transform:rotate(-45deg);top:9px;left:6px}.notyf__icon--success:before{height:11px;transform:rotate(45deg);top:5px;left:10px}.notyf__toast{display:block;overflow:hidden;pointer-events:auto;animation:notyf-fadeinup .3s ease-in forwards;box-shadow:0 3px 7px #00000040;position:relative;padding:0 15px;border-radius:2px;max-width:300px;transform:translateY(25%);box-sizing:border-box;flex-shrink:0}.notyf__toast--disappear{transform:translateY(0);animation:notyf-fadeoutdown .3s forwards;animation-delay:.25s}.notyf__toast--disappear .notyf__icon,.notyf__toast--disappear .notyf__message{animation:notyf-fadeoutdown .3s forwards;opacity:1;transform:translateY(0)}.notyf__toast--disappear .notyf__dismiss{animation:notyf-fadeoutright .3s forwards;opacity:1;transform:translate(0)}.notyf__toast--disappear .notyf__message{animation-delay:.05s}.notyf__toast--upper{margin-bottom:20px}.notyf__toast--lower{margin-top:20px}.notyf__toast--dismissible .notyf__wrapper{padding-right:30px}.notyf__ripple{height:400px;width:400px;position:absolute;transform-origin:bottom right;right:0;top:0;border-radius:50%;transform:scale(0) translateY(-51%) translate(13%);z-index:5;animation:ripple .4s ease-out forwards}.notyf__wrapper{display:flex;align-items:center;padding-top:17px;padding-bottom:17px;padding-right:15px;border-radius:3px;position:relative;z-index:10}.notyf__icon{width:22px;text-align:center;font-size:1.3em;opacity:0;animation:notyf-fadeinup .3s forwards;animation-delay:.3s;margin-right:13px}.notyf__dismiss{position:absolute;top:0;right:0;height:100%;width:26px;margin-right:-15px;animation:notyf-fadeinleft .3s forwards;animation-delay:.35s;opacity:0}.notyf__dismiss-btn{background-color:#00000040;border:none;cursor:pointer;transition:opacity .2s ease,background-color .2s ease;outline:none;opacity:.35;height:100%;width:100%}.notyf__dismiss-btn:after,.notyf__dismiss-btn:before{content:"";background:#fff;height:12px;width:2px;border-radius:3px;position:absolute;left:calc(50% - 1px);top:calc(50% - 5px)}.notyf__dismiss-btn:after{transform:rotate(-45deg)}.notyf__dismiss-btn:before{transform:rotate(45deg)}.notyf__dismiss-btn:hover{opacity:.7;background-color:#00000026}.notyf__dismiss-btn:active{opacity:.8}.notyf__message{vertical-align:middle;position:relative;opacity:0;animation:notyf-fadeinup .3s forwards;animation-delay:.25s;line-height:1.5em}@media only screen and (max-width:480px){.notyf{padding:0}.notyf__ripple{height:600px;width:600px;animation-duration:.5s}.notyf__toast{max-width:none;border-radius:0;box-shadow:0 -2px 7px #00000021;width:100%}.notyf__dismiss{width:56px}}.ts-search-input{padding-left:calc(var(--input-padding) + 24px + var(--spacing-sm))!important}.ts-search-icon{pointer-events:none;position:absolute;top:var(--input-padding);bottom:var(--input-padding);left:var(--input-padding);display:flex;align-items:center;color:var(--body-text-color)}.ts-btn-action{margin:0!important}.ts-btn-action:first-child{border-top-left-radius:var(--button-small-radius);border-bottom-left-radius:var(--button-small-radius)}.ts-btn-action:last-child{border-top-right-radius:var(--button-small-radius);border-bottom-right-radius:var(--button-small-radius)}@keyframes blink{0%,to{color:var(--color-accent)}50%{color:var(--color-accent-soft)}}.ag-cell.task-running{color:var(--color-accent);animation:1s blink ease infinite}.ag-cell.task-failed{color:var(--error-text-color)}.ag-cell.task-interrupted{color:var(--body-text-color-subdued)}.\!visible{visibility:visible!important}.visible{visibility:visible}.mt-1{margin-top:.25rem}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.cursor-pointer{cursor:pointer}.pt-3{padding-top:.75rem}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@font-face{font-family:agGridAlpine;src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABKwAAsAAAAAJ/QAABJeAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIlCBmAAi3AKqUyiKwE2AiQDgjwLgSAABCAFhEYHhTYb7iIzknRW3UVUT4rZ/yGByqEVyfAPCoGBVAeLaZy1NEUgHG5qbTJUKK65bieBiXNesm+H/kz+7nJIEpoE3+/3uufdH0AFMkIBQhFcAFDFl4Wp7lRoFLJTBairyjb/t/bs7+7IyjPxWfFndohimiiJSCNVMiXytQEpDCAvrmVSeEiuz2pkFBn71N4A+Wm1PT1ApaemJsEZHH5/+f6tHdlX0iFUPUx4GMD6rwoJUCiD0n6gbf7DMxAcRiRi0hbY+GfUHViJi8JIMPYbF2WBUbNyzToV4Wew7v2p+Q2nttnDYl+SMVtpv9Udg8AkSPCE8JUIINhyf8M0OkgJleAT1F9rn9lMECVwh0Do+Djd09O7O+/1mwWe9BJNJjTLkw0gWSBF/H9+qoBJ5ewpYHnuhCehSZhz9lwI2tDKfGldggS/ySJ7xa2c4LAIrw71XX9j8/dwVSZiNBZgxU9vjyOAYmM2fmTs/HXBtem9DVnY1aYBXmvH2vLiNPEwDZ7pGMQXnLspqOqmr35HOfc1nmWhOnqYTtK79FN1ACIqG+L4KNc3ptIoGJ3BZOFR6jSoyeZA2uEW/Kg0Uox9cJSCqQzHZrG6jlrCmF2LhltrBzr93NsyXa63ti00++IsHYRBsaTDZEVjphjJiWbL4WGcg0ePEm0cMZYdzU4EseHSeOJQtVjuje3dvVfRLidotoz6qjqNav9esYP8Ml9FVZfH5LTNn5BKVzYdaSwjmMG1CrNTV7WhSbfFeAub2LHLMM2GrgL3aGhX8qvT3fDYgM++Xm3jlN0bvZlKatdqU0v/7Kt6NBe6IXF61QdHXRhzpvHL2nvvu+feeOurH/5zuEIQJC1pHez9mmkTzOZF0UrjkOTu7rtmhwpXzGbWl/iZ0UxQbR0DrKpR+ciq6lSM+4P+jkyojXWwZ3FgdORyzEBMu8SodIFsDuRw+IF5oE+C+fXPQlDaYmGyrLapfFOZRs+iyBHP8i+qTHjaoa+FMmLF96bC77XDfZYj0YQ/q7GXrgpEzIYRnXelKdnYYH0yFobmHLKidfPkix3tKDYXr1+dR6VNiSzeH5uA8I4/qLpBQZOv0pzXLdEgt4b8ea1pNFbndOoZHKXvqEPtqvKouETvjjd2laxW6tIJnCC2pVD6AKq6PDv7nN3OBc5+xuWB7CR7gfuP33581xg8QIYkuLqjywujc36p/aWm/3E3N4Rs02aiq0Dh7AmoAXIgq5gvjnJAz34NRC69GuwPSol42MArH3371XF2hlqPvPH5V7yLv3KD/7pqXhMDo9Br7hqgLuvhQIYVj7LSJMOAgxuxbZxccXgIRtDpVkUSmY9fQFBIWERULNpgUkpaxp+OOXkFRSVlFVU1dQ1NLW0dXT19A0MjZWMTU0jYzNwCRD5cjeExobaRgfHOC+1DnRcOTvT2/Ov//379cL5v9NxFOzVLAemzCVeA2ls2BkyzNmCGjQCzbACYY+PAPOsEFtgFYJG1A0tsCFhm3cAqGwbW2CCwziaADdYLbLIeYItNATusA9hl/cAe6wL22SRwwM4Dh6wPOGKjwDE7B5z0uwh+ceiReAghCGEIEQhRCAkQEiEkQUiGkA9CfggFIBSEUAhCYQhFIBSFUAxCcQglIJSEUApCaQhlIJSFUA5CeQgVIFSEUAlCZQhVIFSFUA1CdQg1INSEUAtCbQh1INSFUA9CfQgNIDSE0AhCY9Zfpwn0maYQmkFobigJ/FpYYyMG1ZECIRVQjEtv+iWe4gl57ync886N+8wMZN1VvOwjGPddoCiRLhkjJQGOSC0zCeTItsw2iyxh/SLvgtJ8il0gJ/wYY+M0rrkojOGCVIpgfwTJPbXQCkiibIX7NB8LhaIBkX6OqBbFUhInXGmSpNmU9ROBQFIS67k0ImUIkQRKaCYRMMh5AJJM5oEYLkb8kaT3L1HTisBeByai2GnmmsjNFxz6MNQrKEIQLyDiGXfdKwg6T3aAKFjaBqf3MqpUx2ZspWOrQN2xha/6DcxNwTBIcAiRALxXKXIMtMiCWgXp5TnY6fw7sZhcW8Sl/cJHrZAggV7HmUPCfCtVSJ9eQIXQjyhbIghFzMaspsCd1mWc95N5N5B0fp4ET6nJLNttrVAhYtyrw21QJdpYs/D0DtHQRtF+iTATabO1Vkx0yCkWnNzH+CqLgjukEhj5Dz5LeJ429s68i8gziy+d5bIyjFRTqZzkh1ozVXK0AeyTY1bZhDLMAT2VcM3V0RGOouapsTJ4tF9M1/mTyagqmZS8rGgdmWi+tmqh91eSqSK3y+Qy0Ba1uO83b/tXIhiJW+IyB6MvILhvX7wXs/ItLPIIJ/eFsb7awLKW5WVXVq6UyqBSoY/iw8o8cN2kV6s5YRRKj9RfGpPwrPXanB5Ib7fMeVqWyrDleG+1b25Ig3OxLa7KREVTCBYs3FJSJeMOTGCrkclxAPBCsajQXl4uWvm8XTyvDBOS3ywUAYj2gz5Mzdd1W3OzOWVoWGiakvDx/+UsLBfV2BFlwEoVciJIaxMhchGXnzqrQoUPphaosiRUtKpNV6lsUiUvqinzUcpquc6iMFL5faOrX7eFgmZymN+2oBHxESZBiLhKUEzIVl2WXfeoLYhiCXIxYSA4gAM/NBEYXDhnYWAmiJEbPYrrlIWwZsqfu8UJJRcWKbx5Fu2UOdMSAd+7cebz9Z3A4nUc5UnyXAgf+nFoW41mW4XYhkM/bIRzuJJh+AVULSMILynK1qh3UE2aCkhIAlV+vn1xjaFHgCGIfZhgAqaWtFhmT5w5rOSkqlSq4pSdWIGrRNM0EF5uSq/bEaZB0/yNGSTjL2W5+lrbJWkGE7zmbB3yl2GWdzhGkPOfDBm1LPWa8jrCRM3brAd8pthufNS7ftis09wavUg/71VqOekod7ERmLcRry1HbfkNg5WVwR8zupXK4T+KDqlUQz9l96nVY38XktQnObzsqN7QbN5zh+GOW6ysJ2gxet1hQuV684o9ZhdYlyiTjpuanYnhPpyIEQfpnx1KRF4Crn5ZYhYNE4aBb70RgA/7Q9ReHuRBHsxDaq20Haw9traNVXla32uyb5afS2c2vKsGc0nj5/fwiQ5yq6xobiZdiLJtwZcFEwJdcLIemnrYnGJ0PSKmgGclPfWaGo9HbpLlQ/umhMHT2y/+emJwQylqXN3/8ScO4jDFV1CWAqHRybUkiBgbxdoEFxM9UWA2zwz4/X0nvi+4b99FnBecduy2w70lhbOV4mxaGMUIKdrbewWCDAFkcfUi2lPCosPIc5lG8x59/79mIgHOA45RbaICdh6Tmccu+Mt8d5/HLGD/5eMnu6ttn6ALEtvIfYBt8SoJVaJ4K3knqa6W1EiAtVdDcPBdcuj8JV8H+O44uxLMzRMTL13cvz8xKd7bRvHZ4hOeXEeoLQX0b46NDPfO9PfLioq0tMJCL+nBLl28NBs2NbX9HmbtAjHgYo3e3w7U2+9ENNFBsRipimqtUU0FWFb4sqsT69e3NwgU5OQLV3DhobwX4rRrLuDKcwEXXODCcwVFlF3jXYPnjIzMyMjMNA8mCJvDzsANAXPp/7LSqs0t0fM4zzLPQE+hJ1P9vMZ8t3jb9u/q2u9xSrxXuNFPuM39KoMd9ktmRmWB7/qizV3OVyGmliEeJvq9q+pCK2mGlotUp2OlTgKBdSOpZ45kbWVuYU+6+sKEuJ1Uv2bLfQNjvgmp3/IlcxD8zP6yMBFr15j3rVobnPSng8kq/ayxSAuL4Ysm3SHbvY+RFVbeYF5HrE4g6FjRl602dRgeybWi3vDDE/pMRDBtwGg8yVSn31yOCCfTsEAqJnRHjCo8dyBG44QX1uZWeGY70fy2EA+ABdI87Pvjba50M+RXGEfljO6jCM6zJrkmSQrolIWsfkcvbB+KTwLd+MUYmi8N8/6WLmXUrl63fcNqC66hscvrkExuZu8d9Dze0N/AOCFxQ3rtyX0m263MrBiCRn4d41sdvKGToQlsUbAqjf2o+744lkPXFTwe5pXPl0dV1Nslk72ZUTlnbyhKc6jr+SCPrqizTQ4Oik8sKcBfj0oLtA4vKGpmxqXGuY73MihxZHIshUHQy6+hpdtReSiNx0sMds2yCi+kqNgOiBVv+cNvebJ3uqSgyDo8+7TB/9gmV9TLo6ZZrkS2c1axTQ76Ru5dGDffJIy4wFzguaD7mCJjKrizqZyfqv7D7h9/glf0UyeFE7UJXH2OvkBhTk8v4SjEXAn3mJisicrxjybMLOE8Ig6bw1JwqVzxQQlXUoUcyVuxGZyp5rK54rdOOBiZD08WGGLNvjLdxOG9RjPeezDeleeFweeuNguuI8kjQfksVl65+UKQ62yuCzau4+QkNKl6/y4fYryTtMkXRQCbBHrCd+6vXgkTvbVRhJmh9AT6YnxqToU77R4zIoV2O9H54SCnpibjVxwuIgKH+1Vv2fTTNvOXaL8A9U6QiCOSiLjqzhwRcA5KGzPnVKkCYJnuO/HxPeg4mwX/2D9ppTifRfnami+r272e6M/2SaDEx1MSfLKDylwHlpZsXMsSTCEpKOpCEPjl+hnlx5SP52ddwEWuUhwOxBp/6/qtC3z69IdxclTSL0EhRbJ7N94mOKn1kkyzrqhg11gox+EHe/v4g3/FxpaV6GhbuQUnX1zX1vb334p/dvjvXJC8lMtzy00I1tZVxRZ6Fcb72ir2Ev9QWT5dXoZA0/Et0WRytB5iJ1uP/IUt5hIQ/wusex/EeqTzEO9MM8E/fH3d2NCE5vyk4SipU4Gi6ajiuy1e5NgYb1HldwrnC0IVXU/oFntW9Jn2sXrixvoT8IW2pInzhh5fpQ3367nc4w3ielzmi9trzQXtEjedFG/hNTbB9NOJFdUd//ixcSNrhDkeGe5SqXuGR851802WSu8t53hcD4msW/zVxhxmJp2eycz5KXnuPpOew/zJVx+eP4wuj4ws/46cSd+R/1zUWzbFjlER40tZ3ETIh380g+d8dhlz3Dn2Qw6VA//ISIkqBPIiYnQlwfmftL8TQm5urc3r15GRwUEODhERoIgQ5Yng6fS4TJGxWikXzp2bRDGIzGjZ9WBOYWjQnPk5Xvtz0tPxvPUtzR28NeFB0+0+nNWRzzHMES3Py42LGxmhHTkKBsu2Mm7niHtVVnZyR/jO4pqoYaLLy2ge6Rq8Q+F5m6cwSc7yeEuaP58exE2f//96H+A9mXiE+H7+Zkv5cCAAABlpYbsNcXGK5Na1SAnYvmmF0RzuKpuRU/YuNgD4/5GbkAdooz7k56JmgoQsTmuR8dhZD11ei0eOL8w2LEG0FK0Lkv8v7yIasCc0axb7NixwZrJu8i9iVKcMuUFkLUYawJ7RLLQJLHQCsh46I1pyPqsgCI4PK5X7EVPWThRyZlgtup5lHCoVaUjC57+7g74f7k3mG4a+xBMRDQBm6f99shlm7pfcDPDbJg7UlzQxs9tuj9t6EfHiKPG/APWvLytsPerdoLbaG0haCeCTQ24BLiKFFNJ2BQgnCSCJEwNDNSsxDT7osRT4gQGFOJFwZYYYbAQEOG194CANzTvGQxB+AHo0GwEMzU4yAklQAYVmD5gMveJQv5jKfNwO/8rB3sccCH6Dr1Gzdxb0df4Dl5Covemvg+7vFQhYC9h2WLZl8rcirnWcsH1JFHcUY2ozp3cw0o8i+W42c9ID9ybhmua9YoF1L8oCAn6D04GrIo0p5gq5/8ERCnzXEtK60bumNF4FFixAIGi1Bks9XEy8WyK7Tqt6LEGiXgoVlBBlSHeVw713wEi6N2bwsjszeXGOVvdMIXIeK6Nqju9LX4oNlKhQYwrTmMHsH0xzg8LafvhcFiLRWDyRTKUz2Vy+UCyVK9VavdFstTvdXn8wHI0n09l8wRRV0w3Tsh3XvQePnjx78erNJ5998dU33/3wc+1PH57BawmJtvRwmpdNvc2WCTIQG3NqlpOpCuZjSIvOzAd75blGIAsCjIG0wFlQRiWq8IHpmLjLwdGKt19gRSp7pklYGwGrTOdlYyaVsmn2tGleUTaLaeAr296ZlKwLj2p34YeuRF3GTVK45SqWGLFxxUWUn5CbLkw1q0hbEEwnW7GI8Y1ux9Y2kN/BWAQMK1CYVHcEla4bpVyIoibYp5ZOx5jmYJtcwA3CZi5qck1JdvLAFFItJ5zTN5O6oYok6pJzx54LUcPlR1ElJtgr92NCZ9OcLMET7YOVhHZupsAgDbObM2GAllS73uopA+3Upy4Bla9amig+uFMLk9+PI+uax4AIEjJXGNHow2ChewpV2dLEWa01AAA=);font-weight:400;font-style:normal}.ag-theme-alpine,.ag-theme-gradio,.ag-theme-alpine-dark,.dark .ag-theme-gradio,.ag-theme-alpine-auto-dark{--ag-alpine-active-color: #2196f3;--ag-selected-row-background-color: rgba(33, 150, 243, .3);--ag-row-hover-color: rgba(33, 150, 243, .1);--ag-column-hover-color: rgba(33, 150, 243, .1);--ag-input-focus-border-color: rgba(33, 150, 243, .4);--ag-range-selection-background-color: rgba(33, 150, 243, .2);--ag-range-selection-background-color-2: rgba(33, 150, 243, .36);--ag-range-selection-background-color-3: rgba(33, 150, 243, .49);--ag-range-selection-background-color-4: rgba(33, 150, 243, .59);--ag-background-color: #fff;--ag-foreground-color: #181d1f;--ag-border-color: #babfc7;--ag-secondary-border-color: #dde2eb;--ag-header-background-color: #f8f8f8;--ag-tooltip-background-color: #f8f8f8;--ag-odd-row-background-color: #fcfcfc;--ag-control-panel-background-color: #f8f8f8;--ag-subheader-background-color: #fff;--ag-invalid-color: #e02525;--ag-checkbox-unchecked-color: #999;--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-checkbox-background-color: var(--ag-background-color);--ag-checkbox-checked-color: var(--ag-alpine-active-color);--ag-range-selection-border-color: var(--ag-alpine-active-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-input-border-color: var(--ag-border-color);--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-input-focus-box-shadow: 0 0 2px .1rem var(--ag-input-focus-border-color);--ag-panel-background-color: var(--ag-header-background-color);--ag-menu-background-color: var(--ag-header-background-color);--ag-disabled-foreground-color: rgba(24, 29, 31, .5);--ag-chip-background-color: rgba(24, 29, 31, .07);--ag-input-disabled-border-color: rgba(186, 191, 199, .3);--ag-input-disabled-background-color: rgba(186, 191, 199, .15);--ag-borders: solid 1px;--ag-border-radius: 3px;--ag-borders-side-button: none;--ag-side-button-selected-background-color: transparent;--ag-header-column-resize-handle-display: block;--ag-header-column-resize-handle-width: 2px;--ag-header-column-resize-handle-height: 30%;--ag-grid-size: 6px;--ag-icon-size: 16px;--ag-row-height: calc(var(--ag-grid-size) * 7);--ag-header-height: calc(var(--ag-grid-size) * 8);--ag-list-item-height: calc(var(--ag-grid-size) * 4);--ag-column-select-indent-size: var(--ag-icon-size);--ag-set-filter-indent-size: var(--ag-icon-size);--ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);--ag-toggle-button-height: 18px;--ag-toggle-button-width: 28px;--ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ag-font-size: 13px;--ag-icon-font-family: agGridAlpine;--ag-selected-tab-underline-color: var(--ag-alpine-active-color);--ag-selected-tab-underline-width: 2px;--ag-selected-tab-underline-transition-speed: .3s;--ag-tab-min-width: 240px;--ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, .4);--ag-popup-shadow: var(--ag-card-shadow);--ag-side-bar-panel-width: 250px}.ag-theme-alpine-dark,.dark .ag-theme-gradio{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, .5);--ag-modal-overlay-background-color: rgba(24, 29, 31, .66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;--ag-input-focus-box-shadow: 0 0 2px .5px rgba(255, 255, 255, .5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, .5);--ag-chip-background-color: rgba(255, 255, 255, .07);--ag-input-disabled-border-color: rgba(104, 104, 110, .3);--ag-input-disabled-background-color: rgba(104, 104, 110, .07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;color-scheme:dark}@media (prefers-color-scheme: dark){.ag-theme-alpine-auto-dark{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, .5);--ag-modal-overlay-background-color: rgba(24, 29, 31, .66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;--ag-input-focus-box-shadow: 0 0 2px .5px rgba(255, 255, 255, .5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, .5);--ag-chip-background-color: rgba(255, 255, 255, .07);--ag-input-disabled-border-color: rgba(104, 104, 110, .3);--ag-input-disabled-background-color: rgba(104, 104, 110, .07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;color-scheme:dark}}.ag-theme-alpine .ag-filter-toolpanel-header,.ag-theme-gradio .ag-filter-toolpanel-header,.ag-theme-alpine .ag-filter-toolpanel-search,.ag-theme-gradio .ag-filter-toolpanel-search,.ag-theme-alpine .ag-status-bar,.ag-theme-gradio .ag-status-bar,.ag-theme-alpine .ag-header-row,.ag-theme-gradio .ag-header-row,.ag-theme-alpine .ag-panel-title-bar-title,.ag-theme-gradio .ag-panel-title-bar-title,.ag-theme-alpine .ag-multi-filter-group-title-bar,.ag-theme-gradio .ag-multi-filter-group-title-bar,.ag-theme-alpine-dark .ag-filter-toolpanel-header,.ag-theme-alpine-dark .ag-filter-toolpanel-search,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-dark .ag-header-row,.ag-theme-alpine-dark .ag-panel-title-bar-title,.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,.ag-theme-alpine-auto-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-header-row,.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar{font-weight:700;color:var(--ag-header-foreground-color)}.ag-theme-alpine .ag-row,.ag-theme-gradio .ag-row,.ag-theme-alpine-dark .ag-row,.ag-theme-alpine-auto-dark .ag-row{font-size:calc(var(--ag-font-size) + 1px)}.ag-theme-alpine input[class^=ag-]:not([type]),.ag-theme-gradio input[class^=ag-]:not([type]),.ag-theme-alpine input[class^=ag-][type=text],.ag-theme-gradio input[class^=ag-][type=text],.ag-theme-alpine input[class^=ag-][type=number],.ag-theme-gradio input[class^=ag-][type=number],.ag-theme-alpine input[class^=ag-][type=tel],.ag-theme-gradio input[class^=ag-][type=tel],.ag-theme-alpine input[class^=ag-][type=date],.ag-theme-gradio input[class^=ag-][type=date],.ag-theme-alpine input[class^=ag-][type=datetime-local],.ag-theme-gradio input[class^=ag-][type=datetime-local],.ag-theme-alpine textarea[class^=ag-],.ag-theme-gradio textarea[class^=ag-],.ag-theme-alpine-dark input[class^=ag-]:not([type]),.ag-theme-alpine-dark input[class^=ag-][type=text],.ag-theme-alpine-dark input[class^=ag-][type=number],.ag-theme-alpine-dark input[class^=ag-][type=tel],.ag-theme-alpine-dark input[class^=ag-][type=date],.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark textarea[class^=ag-],.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark input[class^=ag-][type=text],.ag-theme-alpine-auto-dark input[class^=ag-][type=number],.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark input[class^=ag-][type=date],.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark textarea[class^=ag-]{min-height:calc(var(--ag-grid-size) * 4);border-radius:var(--ag-border-radius)}.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]),.ag-theme-gradio .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine .ag-ltr input[class^=ag-][type=text],.ag-theme-gradio .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine .ag-ltr input[class^=ag-][type=number],.ag-theme-gradio .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine .ag-ltr input[class^=ag-][type=tel],.ag-theme-gradio .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine .ag-ltr input[class^=ag-][type=date],.ag-theme-gradio .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-gradio .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-ltr textarea[class^=ag-],.ag-theme-gradio .ag-ltr textarea[class^=ag-],.ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-ltr textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-]{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]),.ag-theme-gradio .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine .ag-rtl input[class^=ag-][type=text],.ag-theme-gradio .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine .ag-rtl input[class^=ag-][type=number],.ag-theme-gradio .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine .ag-rtl input[class^=ag-][type=tel],.ag-theme-gradio .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine .ag-rtl input[class^=ag-][type=date],.ag-theme-gradio .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-gradio .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-rtl textarea[class^=ag-],.ag-theme-gradio .ag-rtl textarea[class^=ag-],.ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-rtl textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-]{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-tab,.ag-theme-gradio .ag-tab,.ag-theme-alpine-dark .ag-tab,.ag-theme-alpine-auto-dark .ag-tab{padding:calc(var(--ag-grid-size) * 1.5);transition:color .4s;flex:1 1 auto}.ag-theme-alpine .ag-tab-selected,.ag-theme-gradio .ag-tab-selected,.ag-theme-alpine-dark .ag-tab-selected,.ag-theme-alpine-auto-dark .ag-tab-selected{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-menu,.ag-theme-gradio .ag-menu,.ag-theme-alpine-dark .ag-menu,.ag-theme-alpine-auto-dark .ag-menu,.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,.ag-theme-gradio .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select{background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-menu-header,.ag-theme-gradio .ag-menu-header,.ag-theme-alpine-dark .ag-menu-header,.ag-theme-alpine-auto-dark .ag-menu-header{background-color:var(--ag-control-panel-background-color);padding-top:1px}.ag-theme-alpine .ag-tabs-header,.ag-theme-gradio .ag-tabs-header,.ag-theme-alpine-dark .ag-tabs-header,.ag-theme-alpine-auto-dark .ag-tabs-header{border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-theme-alpine .ag-charts-settings-group-title-bar,.ag-theme-gradio .ag-charts-settings-group-title-bar,.ag-theme-alpine .ag-charts-data-group-title-bar,.ag-theme-gradio .ag-charts-data-group-title-bar,.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,.ag-theme-gradio .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar{padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);line-height:calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px)}.ag-theme-alpine .ag-chart-mini-thumbnail,.ag-theme-gradio .ag-chart-mini-thumbnail,.ag-theme-alpine-dark .ag-chart-mini-thumbnail,.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail{background-color:var(--ag-background-color)}.ag-theme-alpine .ag-chart-settings-nav-bar,.ag-theme-gradio .ag-chart-settings-nav-bar,.ag-theme-alpine-dark .ag-chart-settings-nav-bar,.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon,.ag-theme-gradio .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon,.ag-theme-gradio .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,.ag-theme-gradio .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar{margin-top:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-gradio .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar{padding-left:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-gradio .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar{padding-right:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group,.ag-theme-gradio .ag-charts-format-sub-level-group,.ag-theme-alpine-dark .ag-charts-format-sub-level-group,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group{border-left:dashed 1px;border-left-color:var(--ag-border-color);padding-left:var(--ag-grid-size);margin-bottom:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,.ag-theme-gradio .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar{padding-top:0;padding-bottom:0;background:none;font-weight:700}.ag-theme-alpine .ag-charts-format-sub-level-group-container,.ag-theme-gradio .ag-charts-format-sub-level-group-container,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container{padding-bottom:0}.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,.ag-theme-gradio .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child{margin-bottom:0}.ag-theme-alpine.ag-dnd-ghost,.ag-dnd-ghost.ag-theme-gradio,.ag-theme-alpine-dark.ag-dnd-ghost,.ag-theme-alpine-auto-dark.ag-dnd-ghost{font-size:calc(var(--ag-font-size) - 1px);font-weight:700}.ag-theme-alpine .ag-side-buttons,.ag-theme-gradio .ag-side-buttons,.ag-theme-alpine-dark .ag-side-buttons,.ag-theme-alpine-auto-dark .ag-side-buttons{width:calc(var(--ag-grid-size) * 5)}.ag-theme-alpine .ag-standard-button,.ag-theme-gradio .ag-standard-button,.ag-theme-alpine-dark .ag-standard-button,.ag-theme-alpine-auto-dark .ag-standard-button{font-family:inherit;-moz-appearance:none;appearance:none;-webkit-appearance:none;border-radius:var(--ag-border-radius);border:1px solid;border-color:var(--ag-alpine-active-color);color:var(--ag-alpine-active-color);background-color:var(--ag-background-color);font-weight:600;padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-standard-button:hover,.ag-theme-gradio .ag-standard-button:hover,.ag-theme-alpine-dark .ag-standard-button:hover,.ag-theme-alpine-auto-dark .ag-standard-button:hover{border-color:var(--ag-alpine-active-color);background-color:var(--ag-row-hover-color)}.ag-theme-alpine .ag-standard-button:active,.ag-theme-gradio .ag-standard-button:active,.ag-theme-alpine-dark .ag-standard-button:active,.ag-theme-alpine-auto-dark .ag-standard-button:active{border-color:var(--ag-alpine-active-color);background-color:var(--ag-alpine-active-color);color:var(--ag-background-color)}.ag-theme-alpine .ag-standard-button:disabled,.ag-theme-gradio .ag-standard-button:disabled,.ag-theme-alpine-dark .ag-standard-button:disabled,.ag-theme-alpine-auto-dark .ag-standard-button:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-theme-alpine .ag-column-drop-vertical,.ag-theme-gradio .ag-column-drop-vertical,.ag-theme-alpine-dark .ag-column-drop-vertical,.ag-theme-alpine-auto-dark .ag-column-drop-vertical{min-height:75px}.ag-theme-alpine .ag-column-drop-vertical-title-bar,.ag-theme-gradio .ag-column-drop-vertical-title-bar,.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar{padding:calc(var(--ag-grid-size) * 2);padding-bottom:0}.ag-theme-alpine .ag-column-drop-vertical-empty-message,.ag-theme-gradio .ag-column-drop-vertical-empty-message,.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message{display:flex;align-items:center;border:dashed 1px;border-color:var(--ag-border-color);margin:calc(var(--ag-grid-size) * 2);padding:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-column-drop-empty-message,.ag-theme-gradio .ag-column-drop-empty-message,.ag-theme-alpine-dark .ag-column-drop-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-empty-message{color:var(--ag-foreground-color);opacity:.75}.ag-theme-alpine .ag-status-bar,.ag-theme-gradio .ag-status-bar,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-status-bar{font-weight:400}.ag-theme-alpine .ag-status-name-value-value,.ag-theme-gradio .ag-status-name-value-value,.ag-theme-alpine-dark .ag-status-name-value-value,.ag-theme-alpine-auto-dark .ag-status-name-value-value,.ag-theme-alpine .ag-paging-number,.ag-theme-gradio .ag-paging-number,.ag-theme-alpine .ag-paging-row-summary-panel-number,.ag-theme-gradio .ag-paging-row-summary-panel-number,.ag-theme-alpine-dark .ag-paging-number,.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,.ag-theme-alpine-auto-dark .ag-paging-number,.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number{font-weight:700}.ag-theme-alpine .ag-column-drop-cell-button,.ag-theme-gradio .ag-column-drop-cell-button,.ag-theme-alpine-dark .ag-column-drop-cell-button,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button{opacity:.5}.ag-theme-alpine .ag-column-drop-cell-button:hover,.ag-theme-gradio .ag-column-drop-cell-button:hover,.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover{opacity:.75}.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-gradio .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-gradio .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip{opacity:.35}.ag-theme-alpine .ag-header-cell-menu-button:hover,.ag-theme-gradio .ag-header-cell-menu-button:hover,.ag-theme-alpine .ag-header-cell-filter-button:hover,.ag-theme-gradio .ag-header-cell-filter-button:hover,.ag-theme-alpine .ag-side-button-button:hover,.ag-theme-gradio .ag-side-button-button:hover,.ag-theme-alpine .ag-tab:hover,.ag-theme-gradio .ag-tab:hover,.ag-theme-alpine .ag-panel-title-bar-button:hover,.ag-theme-gradio .ag-panel-title-bar-button:hover,.ag-theme-alpine .ag-header-expand-icon:hover,.ag-theme-gradio .ag-header-expand-icon:hover,.ag-theme-alpine .ag-column-group-icons:hover,.ag-theme-gradio .ag-column-group-icons:hover,.ag-theme-alpine .ag-set-filter-group-icons:hover,.ag-theme-gradio .ag-set-filter-group-icons:hover,.ag-theme-alpine .ag-group-expanded .ag-icon:hover,.ag-theme-gradio .ag-group-expanded .ag-icon:hover,.ag-theme-alpine .ag-group-contracted .ag-icon:hover,.ag-theme-gradio .ag-group-contracted .ag-icon:hover,.ag-theme-alpine .ag-chart-settings-prev:hover,.ag-theme-gradio .ag-chart-settings-prev:hover,.ag-theme-alpine .ag-chart-settings-next:hover,.ag-theme-gradio .ag-chart-settings-next:hover,.ag-theme-alpine .ag-group-title-bar-icon:hover,.ag-theme-gradio .ag-group-title-bar-icon:hover,.ag-theme-alpine .ag-column-select-header-icon:hover,.ag-theme-gradio .ag-column-select-header-icon:hover,.ag-theme-alpine .ag-floating-filter-button-button:hover,.ag-theme-gradio .ag-floating-filter-button-button:hover,.ag-theme-alpine .ag-filter-toolpanel-expand:hover,.ag-theme-gradio .ag-filter-toolpanel-expand:hover,.ag-theme-alpine .ag-chart-menu-icon:hover,.ag-theme-gradio .ag-chart-menu-icon:hover,.ag-theme-alpine .ag-chart-menu-close:hover,.ag-theme-gradio .ag-chart-menu-close:hover,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-dark .ag-side-button-button:hover,.ag-theme-alpine-dark .ag-tab:hover,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-dark .ag-header-expand-icon:hover,.ag-theme-alpine-dark .ag-column-group-icons:hover,.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-dark .ag-chart-settings-next:hover,.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-dark .ag-chart-menu-close:hover,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-auto-dark .ag-side-button-button:hover,.ag-theme-alpine-auto-dark .ag-tab:hover,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-close:hover{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-gradio .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-gradio .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine .ag-side-button-button:hover .ag-icon,.ag-theme-gradio .ag-side-button-button:hover .ag-icon,.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-gradio .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-gradio .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon{color:inherit}.ag-theme-alpine .ag-filter-active .ag-icon-filter,.ag-theme-gradio .ag-filter-active .ag-icon-filter,.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-menu-close,.ag-theme-gradio .ag-chart-menu-close,.ag-theme-alpine-dark .ag-chart-menu-close,.ag-theme-alpine-auto-dark .ag-chart-menu-close{background:var(--ag-background-color)}.ag-theme-alpine .ag-chart-menu-close:hover .ag-icon,.ag-theme-gradio .ag-chart-menu-close:hover .ag-icon,.ag-theme-alpine-dark .ag-chart-menu-close:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-chart-menu-close:hover .ag-icon{border-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-menu-close .ag-icon,.ag-theme-gradio .ag-chart-menu-close .ag-icon,.ag-theme-alpine-dark .ag-chart-menu-close .ag-icon,.ag-theme-alpine-auto-dark .ag-chart-menu-close .ag-icon{background:var(--ag-header-background-color);border:1px solid var(--ag-border-color);border-right:none}.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-gradio .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button,.ag-theme-gradio .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button{margin-left:calc(var(--ag-grid-size) * 2);margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button,.ag-theme-gradio .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button{margin-right:calc(var(--ag-grid-size) * 2);margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-gradio .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-gradio .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-filter-toolpanel-instance-filter,.ag-theme-gradio .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter{border:none;background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-gradio .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter{border-left:dashed 1px;border-left-color:var(--ag-border-color);margin-left:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-gradio .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter{border-right:dashed 1px;border-right-color:var(--ag-border-color);margin-right:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-set-filter-list,.ag-theme-gradio .ag-set-filter-list,.ag-theme-alpine-dark .ag-set-filter-list,.ag-theme-alpine-auto-dark .ag-set-filter-list{padding-top:calc(var(--ag-grid-size) * .5);padding-bottom:calc(var(--ag-grid-size) * .5)}.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-gradio .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,.ag-theme-gradio .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,.ag-theme-gradio .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-print .ag-center-cols-container,.ag-theme-gradio .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container{min-height:150px}.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-gradio .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-alpine-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-alpine-auto-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height{padding-top:60px}.ag-theme-alpine .ag-date-time-list-page-entry-is-current,.ag-theme-gradio .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current{background-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-advanced-filter-builder-button,.ag-theme-gradio .ag-advanced-filter-builder-button,.ag-theme-alpine-dark .ag-advanced-filter-builder-button,.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button{padding:var(--ag-grid-size);font-weight:600}.ag-theme-gradio,.dark .ag-theme-gradio{--ag-alpine-active-color: var(--color-accent);--ag-selected-row-background-color: var(--table-row-focus);--ag-modal-overlay-background-color: transparent;--ag-row-hover-color: transparent;--ag-column-hover-color: transparent;--ag-input-focus-border-color: var(--input-border-color-focus);--ag-background-color: var(--table-even-background-fill);--ag-foreground-color: var(--body-text-color);--ag-border-color: var(--border-color-primary);--ag-secondary-border-color: var(--border-color-primary);--ag-header-background-color: var(--table-even-background-fill);--ag-tooltip-background-color: var(--table-even-background-fill);--ag-odd-row-background-color: var(--table-even-background-fill);--ag-control-panel-background-color: var(--table-even-background-fill);--ag-invalid-color: var(--error-text-color);--ag-input-border-color: var(--input-border-color);--ag-disabled-foreground-color: var(--body-text-color-subdued);--ag-row-border-color: var(--border-color-primary);--ag-row-height: 45px;--ag-header-height: 45px;--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2)}.ag-theme-gradio>*,.dark .ag-theme-gradio>*{--body-text-color: "inherit"}.ag-theme-gradio .ag-root-wrapper,.dark .ag-theme-gradio .ag-root-wrapper{border-radius:var(--table-radius)}.ag-theme-gradio .ag-row-even,.dark .ag-theme-gradio .ag-row-even{background:var(--table-odd-background-fill)}.ag-theme-gradio .ag-row-highlight-above:after,.ag-theme-gradio .ag-row-highlight-below:after,.dark .ag-theme-gradio .ag-row-highlight-above:after,.dark .ag-theme-gradio .ag-row-highlight-below:after{width:100%;height:2px;left:0;z-index:3}.ag-theme-gradio .ag-row-highlight-above:after,.dark .ag-theme-gradio .ag-row-highlight-above:after{top:-1.5px}.ag-theme-gradio .ag-row-highlight-above.ag-row-first:after,.dark .ag-theme-gradio .ag-row-highlight-above.ag-row-first:after{top:0}.ag-theme-gradio .ag-row-highlight-below:after,.dark .ag-theme-gradio .ag-row-highlight-below:after{bottom:-1.5px}.ag-theme-gradio .ag-row-highlight-below.ag-row-last:after,.dark .ag-theme-gradio .ag-row-highlight-below.ag-row-last:after{bottom:0}.ag-theme-gradio .cell-span,.dark .ag-theme-gradio .cell-span{border-bottom-color:var(--ag-border-color)}.ag-theme-gradio .cell-not-span,.dark .ag-theme-gradio .cell-not-span{opacity:0}.ag-theme-gradio .ag-input-field-input,.dark .ag-theme-gradio .ag-input-field-input,.ag-theme-gradio .ag-select .ag-picker-field-wrapper,.dark .ag-theme-gradio .ag-select .ag-picker-field-wrapper{background-color:var(--input-background-fill)}.ag-center-cols-viewport{scrollbar-width:none;-ms-overflow-style:none}.ag-center-cols-viewport::-webkit-scrollbar{display:none}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{overflow-x:hidden}.ag-overlay{z-index:5}.notyf{font-family:var(--font)}.notyf .notyf__toast{padding:0 16px;border-radius:6px}.notyf .notyf__toast.notyf__toast--success .notyf__ripple{background-color:#22c55e!important}.notyf .notyf__toast.notyf__toast--error .notyf__ripple{background-color:#ef4444!important}.notyf .notyf__wrapper{padding:12px 0}#tabs>#agent_scheduler_tabs{margin-top:var(--layout-gap)}.ag-row.ag-row-editing .ag-cell.pending-actions .control-actions{display:none}.ag-row:not(.ag-row-editing) .ag-cell.pending-actions .edit-actions{display:none}.ag-cell.wrap-cell{line-height:var(--line-lg);padding-top:calc(var(--ag-cell-horizontal-padding) - 1px);padding-bottom:calc(var(--ag-cell-horizontal-padding) - 1px)}button.ts-btn-action{display:inline-flex;justify-content:center;align-items:center;transition:var(--button-transition);box-shadow:var(--button-shadow);padding:var(--size-1) var(--size-2)!important;text-align:center}button.ts-btn-action:hover,button.ts-btn-action[disabled]{box-shadow:var(--button-shadow-hover)}button.ts-btn-action[disabled]{opacity:.5;filter:grayscale(30%);cursor:not-allowed}button.ts-btn-action:active{box-shadow:var(--button-shadow-active)}button.ts-btn-action.primary{border:var(--button-border-width) solid var(--button-primary-border-color);background:var(--button-primary-background-fill);color:var(--button-primary-text-color)}button.ts-btn-action.primary:hover,button.ts-btn-action.primary[disabled]{border-color:var(--button-primary-border-color-hover);background:var(--button-primary-background-fill-hover);color:var(--button-primary-text-color-hover)}button.ts-btn-action.secondary{border:var(--button-border-width) solid var(--button-secondary-border-color);background:var(--button-secondary-background-fill);color:var(--button-secondary-text-color)}button.ts-btn-action.secondary:hover,button.ts-btn-action.secondary[disabled]{border-color:var(--button-secondary-border-color-hover);background:var(--button-secondary-background-fill-hover);color:var(--button-secondary-text-color-hover)}button.ts-btn-action.stop{border:var(--button-border-width) solid var(--button-cancel-border-color);background:var(--button-cancel-background-fill);color:var(--button-cancel-text-color)}button.ts-btn-action.stop:hover,button.ts-btn-action.stop[disabled]{border-color:var(--button-cancel-border-color-hover);background:var(--button-cancel-background-fill-hover);color:var(--button-cancel-text-color-hover)}.ts-bookmark{color:var(--body-text-color-subdued)!important}.ts-bookmarked{color:var(--color-accent)!important}#agent_scheduler_pending_tasks_grid,#agent_scheduler_history_tasks_grid{height:calc(100vh - 300px);min-height:400px}#agent_scheduler_pending_tasks_wrapper,#agent_scheduler_history_wrapper{border:none;border-width:0;box-shadow:none;justify-content:flex-end;gap:var(--layout-gap);padding:0}@media (max-width: 1024px){#agent_scheduler_pending_tasks_wrapper,#agent_scheduler_history_wrapper{flex-wrap:wrap}}#agent_scheduler_pending_tasks_wrapper>div:last-child,#agent_scheduler_history_wrapper>div:last-child{width:100%}@media (min-width: 1280px){#agent_scheduler_pending_tasks_wrapper>div:last-child,#agent_scheduler_history_wrapper>div:last-child{min-width:400px!important;max-width:min(25%,700px)}}#agent_scheduler_pending_tasks_wrapper>button,#agent_scheduler_history_wrapper>button{flex:0 0 auto}#agent_scheduler_history_actions,#agent_scheduler_pending_tasks_actions{gap:calc(var(--layout-gap) / 2);min-height:36px}#agent_scheduler_history_result_actions{display:flex;justify-content:center}#agent_scheduler_history_result_actions>div.form{flex:0 0 auto!important}#agent_scheduler_history_result_actions>div.gr-group{flex:1 1 100%!important}#agent_scheduler_pending_tasks_wrapper .livePreview{margin:0;padding-top:100%}#agent_scheduler_pending_tasks_wrapper .livePreview img{top:0;border-radius:5px}#agent_scheduler_pending_tasks_wrapper .progressDiv{height:42px;line-height:42px;max-width:100%;text-align:center;position:static;font-size:var(--button-large-text-size);font-weight:var(--button-large-text-weight)}#agent_scheduler_pending_tasks_wrapper .progressDiv .progress{height:42px;line-height:42px}#agent_scheduler_pending_tasks_wrapper .progressDiv+.livePreview{margin-top:calc(40px + var(--layout-gap))}#agent_scheduler_current_task_images,#agent_scheduler_history_gallery{width:100%;padding-top:100%;position:relative;box-sizing:content-box}#agent_scheduler_current_task_images>div,#agent_scheduler_history_gallery>div{position:absolute;top:0;left:0;width:100%;height:100%}@media screen and (min-width: 1280px){#agent_scheduler_history_gallery .fixed-height{min-height:400px}}.ml-auto{margin-left:auto}.gradio-row.flex-row>*,.gradio-row.flex-row>.form,.gradio-row.flex-row>.form>*{flex:initial;width:initial;min-width:initial}.agent_scheduler_filter_container>div.form{margin:0}#agent_scheduler_status_filter{width:var(--size-36);padding:0!important}#agent_scheduler_status_filter label>div{height:100%}#agent_scheduler_action_search,#agent_scheduler_action_search_history{width:var(--size-64);padding:0!important}#agent_scheduler_action_search>label,#agent_scheduler_action_search_history>label{position:relative;height:100%}#agent_scheduler_action_search input.ts-search-input,#agent_scheduler_action_search_history input.ts-search-input{padding:var(--block-padding);height:100%}#txt2img_enqueue_wrapper,#img2img_enqueue_wrapper{min-width:210px;display:flex;flex-direction:column;gap:calc(var(--layout-gap) / 2)}#txt2img_enqueue_wrapper>div:first-child,#img2img_enqueue_wrapper>div:first-child{flex-direction:row;flex-wrap:nowrap;align-items:stretch;flex:0 0 auto;flex-grow:unset!important}:not(#txt2img_generate_box)>#txt2img_enqueue_wrapper,:not(#img2img_generate_box)>#img2img_enqueue_wrapper{align-self:flex-start}#img2img_toprow .interrogate-col.has-queue-button{min-width:unset!important;flex-direction:row!important;gap:calc(var(--layout-gap) / 2)!important}#img2img_toprow .interrogate-col.has-queue-button button{margin:0}#enqueue_keyboard_shortcut_wrapper{flex-wrap:wrap}#enqueue_keyboard_shortcut_wrapper .form{display:flex;flex-direction:row;align-items:flex-end;flex-wrap:nowrap}#enqueue_keyboard_shortcut_wrapper .form>div,#enqueue_keyboard_shortcut_wrapper .form fieldset{flex:0 0 auto;width:auto}#enqueue_keyboard_shortcut_wrapper .form #enqueue_keyboard_shortcut_modifiers{width:300px}#enqueue_keyboard_shortcut_wrapper .form #enqueue_keyboard_shortcut_key{width:100px}#enqueue_keyboard_shortcut_wrapper .form #setting_queue_keyboard_shortcut{display:none}#enqueue_keyboard_shortcut_wrapper .form #enqueue_keyboard_shortcut_disable{width:100%}.modification-indicator+#enqueue_keyboard_shortcut_wrapper #enqueue_keyboard_shortcut_disable{padding-left:12px!important} +.ag-icon{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size);position:relative}.ag-icon:before{content:""}.ag-icon:after{background:transparent var(--ag-icon-image, none) center/contain no-repeat;display:var(--ag-icon-image-display);opacity:var(--ag-icon-image-opacity, .9);position:absolute;top:0;right:0;bottom:0;left:0;content:""}.ag-icon-aggregation{font-family:var(--ag-icon-font-family-aggregation, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-aggregation, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-aggregation, var(--ag-icon-font-color))}.ag-icon-aggregation:before{content:var(--ag-icon-font-code-aggregation, "");display:var(--ag-icon-font-display-aggregation, var(--ag-icon-font-display))}.ag-icon-aggregation:after{background-image:var(--ag-icon-image-aggregation, var(--ag-icon-image));display:var(--ag-icon-image-display-aggregation, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-aggregation, var(--ag-icon-image-opacity, .9))}.ag-icon-arrows{font-family:var(--ag-icon-font-family-arrows, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-arrows, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-arrows, var(--ag-icon-font-color))}.ag-icon-arrows:before{content:var(--ag-icon-font-code-arrows, "");display:var(--ag-icon-font-display-arrows, var(--ag-icon-font-display))}.ag-icon-arrows:after{background-image:var(--ag-icon-image-arrows, var(--ag-icon-image));display:var(--ag-icon-image-display-arrows, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-arrows, var(--ag-icon-image-opacity, .9))}.ag-icon-asc{font-family:var(--ag-icon-font-family-asc, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-asc, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-asc, var(--ag-icon-font-color))}.ag-icon-asc:before{content:var(--ag-icon-font-code-asc, "");display:var(--ag-icon-font-display-asc, var(--ag-icon-font-display))}.ag-icon-asc:after{background-image:var(--ag-icon-image-asc, var(--ag-icon-image));display:var(--ag-icon-image-display-asc, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-asc, var(--ag-icon-image-opacity, .9))}.ag-icon-cancel{font-family:var(--ag-icon-font-family-cancel, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-cancel, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-cancel, var(--ag-icon-font-color))}.ag-icon-cancel:before{content:var(--ag-icon-font-code-cancel, "");display:var(--ag-icon-font-display-cancel, var(--ag-icon-font-display))}.ag-icon-cancel:after{background-image:var(--ag-icon-image-cancel, var(--ag-icon-image));display:var(--ag-icon-image-display-cancel, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-cancel, var(--ag-icon-image-opacity, .9))}.ag-icon-chart{font-family:var(--ag-icon-font-family-chart, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-chart, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-chart, var(--ag-icon-font-color))}.ag-icon-chart:before{content:var(--ag-icon-font-code-chart, "");display:var(--ag-icon-font-display-chart, var(--ag-icon-font-display))}.ag-icon-chart:after{background-image:var(--ag-icon-image-chart, var(--ag-icon-image));display:var(--ag-icon-image-display-chart, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-chart, var(--ag-icon-image-opacity, .9))}.ag-icon-checkbox-checked{font-family:var(--ag-icon-font-family-checkbox-checked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-checkbox-checked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-checkbox-checked, var(--ag-icon-font-color))}.ag-icon-checkbox-checked:before{content:var(--ag-icon-font-code-checkbox-checked, "");display:var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display))}.ag-icon-checkbox-checked:after{background-image:var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, .9))}.ag-icon-checkbox-indeterminate{font-family:var(--ag-icon-font-family-checkbox-indeterminate, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-checkbox-indeterminate, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-checkbox-indeterminate, var(--ag-icon-font-color))}.ag-icon-checkbox-indeterminate:before{content:var(--ag-icon-font-code-checkbox-indeterminate, "");display:var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display))}.ag-icon-checkbox-indeterminate:after{background-image:var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, .9))}.ag-icon-checkbox-unchecked{font-family:var(--ag-icon-font-family-checkbox-unchecked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-checkbox-unchecked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-checkbox-unchecked, var(--ag-icon-font-color))}.ag-icon-checkbox-unchecked:before{content:var(--ag-icon-font-code-checkbox-unchecked, "");display:var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display))}.ag-icon-checkbox-unchecked:after{background-image:var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, .9))}.ag-icon-color-picker{font-family:var(--ag-icon-font-family-color-picker, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-color-picker, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-color-picker, var(--ag-icon-font-color))}.ag-icon-color-picker:before{content:var(--ag-icon-font-code-color-picker, "");display:var(--ag-icon-font-display-color-picker, var(--ag-icon-font-display))}.ag-icon-color-picker:after{background-image:var(--ag-icon-image-color-picker, var(--ag-icon-image));display:var(--ag-icon-image-display-color-picker, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-color-picker, var(--ag-icon-image-opacity, .9))}.ag-icon-columns{font-family:var(--ag-icon-font-family-columns, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-columns, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-columns, var(--ag-icon-font-color))}.ag-icon-columns:before{content:var(--ag-icon-font-code-columns, "");display:var(--ag-icon-font-display-columns, var(--ag-icon-font-display))}.ag-icon-columns:after{background-image:var(--ag-icon-image-columns, var(--ag-icon-image));display:var(--ag-icon-image-display-columns, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-columns, var(--ag-icon-image-opacity, .9))}.ag-icon-contracted{font-family:var(--ag-icon-font-family-contracted, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-contracted, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-contracted, var(--ag-icon-font-color))}.ag-icon-contracted:before{content:var(--ag-icon-font-code-contracted, "");display:var(--ag-icon-font-display-contracted, var(--ag-icon-font-display))}.ag-icon-contracted:after{background-image:var(--ag-icon-image-contracted, var(--ag-icon-image));display:var(--ag-icon-image-display-contracted, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-contracted, var(--ag-icon-image-opacity, .9))}.ag-icon-copy{font-family:var(--ag-icon-font-family-copy, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-copy, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-copy, var(--ag-icon-font-color))}.ag-icon-copy:before{content:var(--ag-icon-font-code-copy, "");display:var(--ag-icon-font-display-copy, var(--ag-icon-font-display))}.ag-icon-copy:after{background-image:var(--ag-icon-image-copy, var(--ag-icon-image));display:var(--ag-icon-image-display-copy, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-copy, var(--ag-icon-image-opacity, .9))}.ag-icon-cross{font-family:var(--ag-icon-font-family-cross, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-cross, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-cross, var(--ag-icon-font-color))}.ag-icon-cross:before{content:var(--ag-icon-font-code-cross, "");display:var(--ag-icon-font-display-cross, var(--ag-icon-font-display))}.ag-icon-cross:after{background-image:var(--ag-icon-image-cross, var(--ag-icon-image));display:var(--ag-icon-image-display-cross, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-cross, var(--ag-icon-image-opacity, .9))}.ag-icon-csv{font-family:var(--ag-icon-font-family-csv, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-csv, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-csv, var(--ag-icon-font-color))}.ag-icon-csv:before{content:var(--ag-icon-font-code-csv, "");display:var(--ag-icon-font-display-csv, var(--ag-icon-font-display))}.ag-icon-csv:after{background-image:var(--ag-icon-image-csv, var(--ag-icon-image));display:var(--ag-icon-image-display-csv, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-csv, var(--ag-icon-image-opacity, .9))}.ag-icon-cut{font-family:var(--ag-icon-font-family-cut, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-cut, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-cut, var(--ag-icon-font-color))}.ag-icon-cut:before{content:var(--ag-icon-font-code-cut, "");display:var(--ag-icon-font-display-cut, var(--ag-icon-font-display))}.ag-icon-cut:after{background-image:var(--ag-icon-image-cut, var(--ag-icon-image));display:var(--ag-icon-image-display-cut, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-cut, var(--ag-icon-image-opacity, .9))}.ag-icon-desc{font-family:var(--ag-icon-font-family-desc, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-desc, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-desc, var(--ag-icon-font-color))}.ag-icon-desc:before{content:var(--ag-icon-font-code-desc, "");display:var(--ag-icon-font-display-desc, var(--ag-icon-font-display))}.ag-icon-desc:after{background-image:var(--ag-icon-image-desc, var(--ag-icon-image));display:var(--ag-icon-image-display-desc, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-desc, var(--ag-icon-image-opacity, .9))}.ag-icon-excel{font-family:var(--ag-icon-font-family-excel, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-excel, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-excel, var(--ag-icon-font-color))}.ag-icon-excel:before{content:var(--ag-icon-font-code-excel, "");display:var(--ag-icon-font-display-excel, var(--ag-icon-font-display))}.ag-icon-excel:after{background-image:var(--ag-icon-image-excel, var(--ag-icon-image));display:var(--ag-icon-image-display-excel, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-excel, var(--ag-icon-image-opacity, .9))}.ag-icon-expanded{font-family:var(--ag-icon-font-family-expanded, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-expanded, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-expanded, var(--ag-icon-font-color))}.ag-icon-expanded:before{content:var(--ag-icon-font-code-expanded, "");display:var(--ag-icon-font-display-expanded, var(--ag-icon-font-display))}.ag-icon-expanded:after{background-image:var(--ag-icon-image-expanded, var(--ag-icon-image));display:var(--ag-icon-image-display-expanded, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-expanded, var(--ag-icon-image-opacity, .9))}.ag-icon-eye-slash{font-family:var(--ag-icon-font-family-eye-slash, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-eye-slash, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-eye-slash, var(--ag-icon-font-color))}.ag-icon-eye-slash:before{content:var(--ag-icon-font-code-eye-slash, "");display:var(--ag-icon-font-display-eye-slash, var(--ag-icon-font-display))}.ag-icon-eye-slash:after{background-image:var(--ag-icon-image-eye-slash, var(--ag-icon-image));display:var(--ag-icon-image-display-eye-slash, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-eye-slash, var(--ag-icon-image-opacity, .9))}.ag-icon-eye{font-family:var(--ag-icon-font-family-eye, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-eye, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-eye, var(--ag-icon-font-color))}.ag-icon-eye:before{content:var(--ag-icon-font-code-eye, "");display:var(--ag-icon-font-display-eye, var(--ag-icon-font-display))}.ag-icon-eye:after{background-image:var(--ag-icon-image-eye, var(--ag-icon-image));display:var(--ag-icon-image-display-eye, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-eye, var(--ag-icon-image-opacity, .9))}.ag-icon-filter{font-family:var(--ag-icon-font-family-filter, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-filter, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-filter, var(--ag-icon-font-color))}.ag-icon-filter:before{content:var(--ag-icon-font-code-filter, "");display:var(--ag-icon-font-display-filter, var(--ag-icon-font-display))}.ag-icon-filter:after{background-image:var(--ag-icon-image-filter, var(--ag-icon-image));display:var(--ag-icon-image-display-filter, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-filter, var(--ag-icon-image-opacity, .9))}.ag-icon-first{font-family:var(--ag-icon-font-family-first, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-first, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-first, var(--ag-icon-font-color))}.ag-icon-first:before{content:var(--ag-icon-font-code-first, "");display:var(--ag-icon-font-display-first, var(--ag-icon-font-display))}.ag-icon-first:after{background-image:var(--ag-icon-image-first, var(--ag-icon-image));display:var(--ag-icon-image-display-first, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-first, var(--ag-icon-image-opacity, .9))}.ag-icon-grip{font-family:var(--ag-icon-font-family-grip, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-grip, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-grip, var(--ag-icon-font-color))}.ag-icon-grip:before{content:var(--ag-icon-font-code-grip, "");display:var(--ag-icon-font-display-grip, var(--ag-icon-font-display))}.ag-icon-grip:after{background-image:var(--ag-icon-image-grip, var(--ag-icon-image));display:var(--ag-icon-image-display-grip, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-grip, var(--ag-icon-image-opacity, .9))}.ag-icon-group{font-family:var(--ag-icon-font-family-group, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-group, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-group, var(--ag-icon-font-color))}.ag-icon-group:before{content:var(--ag-icon-font-code-group, "");display:var(--ag-icon-font-display-group, var(--ag-icon-font-display))}.ag-icon-group:after{background-image:var(--ag-icon-image-group, var(--ag-icon-image));display:var(--ag-icon-image-display-group, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-group, var(--ag-icon-image-opacity, .9))}.ag-icon-last{font-family:var(--ag-icon-font-family-last, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-last, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-last, var(--ag-icon-font-color))}.ag-icon-last:before{content:var(--ag-icon-font-code-last, "");display:var(--ag-icon-font-display-last, var(--ag-icon-font-display))}.ag-icon-last:after{background-image:var(--ag-icon-image-last, var(--ag-icon-image));display:var(--ag-icon-image-display-last, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-last, var(--ag-icon-image-opacity, .9))}.ag-icon-left{font-family:var(--ag-icon-font-family-left, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-left, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-left, var(--ag-icon-font-color))}.ag-icon-left:before{content:var(--ag-icon-font-code-left, "");display:var(--ag-icon-font-display-left, var(--ag-icon-font-display))}.ag-icon-left:after{background-image:var(--ag-icon-image-left, var(--ag-icon-image));display:var(--ag-icon-image-display-left, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-left, var(--ag-icon-image-opacity, .9))}.ag-icon-linked{font-family:var(--ag-icon-font-family-linked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-linked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-linked, var(--ag-icon-font-color))}.ag-icon-linked:before{content:var(--ag-icon-font-code-linked, "");display:var(--ag-icon-font-display-linked, var(--ag-icon-font-display))}.ag-icon-linked:after{background-image:var(--ag-icon-image-linked, var(--ag-icon-image));display:var(--ag-icon-image-display-linked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-linked, var(--ag-icon-image-opacity, .9))}.ag-icon-loading{font-family:var(--ag-icon-font-family-loading, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-loading, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-loading, var(--ag-icon-font-color))}.ag-icon-loading:before{content:var(--ag-icon-font-code-loading, "");display:var(--ag-icon-font-display-loading, var(--ag-icon-font-display))}.ag-icon-loading:after{background-image:var(--ag-icon-image-loading, var(--ag-icon-image));display:var(--ag-icon-image-display-loading, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-loading, var(--ag-icon-image-opacity, .9))}.ag-icon-maximize{font-family:var(--ag-icon-font-family-maximize, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-maximize, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-maximize, var(--ag-icon-font-color))}.ag-icon-maximize:before{content:var(--ag-icon-font-code-maximize, "");display:var(--ag-icon-font-display-maximize, var(--ag-icon-font-display))}.ag-icon-maximize:after{background-image:var(--ag-icon-image-maximize, var(--ag-icon-image));display:var(--ag-icon-image-display-maximize, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-maximize, var(--ag-icon-image-opacity, .9))}.ag-icon-menu{font-family:var(--ag-icon-font-family-menu, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-menu, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-menu, var(--ag-icon-font-color))}.ag-icon-menu:before{content:var(--ag-icon-font-code-menu, "");display:var(--ag-icon-font-display-menu, var(--ag-icon-font-display))}.ag-icon-menu:after{background-image:var(--ag-icon-image-menu, var(--ag-icon-image));display:var(--ag-icon-image-display-menu, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-menu, var(--ag-icon-image-opacity, .9))}.ag-icon-minimize{font-family:var(--ag-icon-font-family-minimize, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-minimize, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-minimize, var(--ag-icon-font-color))}.ag-icon-minimize:before{content:var(--ag-icon-font-code-minimize, "");display:var(--ag-icon-font-display-minimize, var(--ag-icon-font-display))}.ag-icon-minimize:after{background-image:var(--ag-icon-image-minimize, var(--ag-icon-image));display:var(--ag-icon-image-display-minimize, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-minimize, var(--ag-icon-image-opacity, .9))}.ag-icon-next{font-family:var(--ag-icon-font-family-next, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-next, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-next, var(--ag-icon-font-color))}.ag-icon-next:before{content:var(--ag-icon-font-code-next, "");display:var(--ag-icon-font-display-next, var(--ag-icon-font-display))}.ag-icon-next:after{background-image:var(--ag-icon-image-next, var(--ag-icon-image));display:var(--ag-icon-image-display-next, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-next, var(--ag-icon-image-opacity, .9))}.ag-icon-none{font-family:var(--ag-icon-font-family-none, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-none, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-none, var(--ag-icon-font-color))}.ag-icon-none:before{content:var(--ag-icon-font-code-none, "");display:var(--ag-icon-font-display-none, var(--ag-icon-font-display))}.ag-icon-none:after{background-image:var(--ag-icon-image-none, var(--ag-icon-image));display:var(--ag-icon-image-display-none, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-none, var(--ag-icon-image-opacity, .9))}.ag-icon-not-allowed{font-family:var(--ag-icon-font-family-not-allowed, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-not-allowed, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-not-allowed, var(--ag-icon-font-color))}.ag-icon-not-allowed:before{content:var(--ag-icon-font-code-not-allowed, "");display:var(--ag-icon-font-display-not-allowed, var(--ag-icon-font-display))}.ag-icon-not-allowed:after{background-image:var(--ag-icon-image-not-allowed, var(--ag-icon-image));display:var(--ag-icon-image-display-not-allowed, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-not-allowed, var(--ag-icon-image-opacity, .9))}.ag-icon-paste{font-family:var(--ag-icon-font-family-paste, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-paste, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-paste, var(--ag-icon-font-color))}.ag-icon-paste:before{content:var(--ag-icon-font-code-paste, "");display:var(--ag-icon-font-display-paste, var(--ag-icon-font-display))}.ag-icon-paste:after{background-image:var(--ag-icon-image-paste, var(--ag-icon-image));display:var(--ag-icon-image-display-paste, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-paste, var(--ag-icon-image-opacity, .9))}.ag-icon-pin{font-family:var(--ag-icon-font-family-pin, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-pin, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-pin, var(--ag-icon-font-color))}.ag-icon-pin:before{content:var(--ag-icon-font-code-pin, "");display:var(--ag-icon-font-display-pin, var(--ag-icon-font-display))}.ag-icon-pin:after{background-image:var(--ag-icon-image-pin, var(--ag-icon-image));display:var(--ag-icon-image-display-pin, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-pin, var(--ag-icon-image-opacity, .9))}.ag-icon-pivot{font-family:var(--ag-icon-font-family-pivot, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-pivot, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-pivot, var(--ag-icon-font-color))}.ag-icon-pivot:before{content:var(--ag-icon-font-code-pivot, "");display:var(--ag-icon-font-display-pivot, var(--ag-icon-font-display))}.ag-icon-pivot:after{background-image:var(--ag-icon-image-pivot, var(--ag-icon-image));display:var(--ag-icon-image-display-pivot, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-pivot, var(--ag-icon-image-opacity, .9))}.ag-icon-previous{font-family:var(--ag-icon-font-family-previous, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-previous, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-previous, var(--ag-icon-font-color))}.ag-icon-previous:before{content:var(--ag-icon-font-code-previous, "");display:var(--ag-icon-font-display-previous, var(--ag-icon-font-display))}.ag-icon-previous:after{background-image:var(--ag-icon-image-previous, var(--ag-icon-image));display:var(--ag-icon-image-display-previous, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-previous, var(--ag-icon-image-opacity, .9))}.ag-icon-radio-button-off{font-family:var(--ag-icon-font-family-radio-button-off, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-radio-button-off, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-radio-button-off, var(--ag-icon-font-color))}.ag-icon-radio-button-off:before{content:var(--ag-icon-font-code-radio-button-off, "");display:var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display))}.ag-icon-radio-button-off:after{background-image:var(--ag-icon-image-radio-button-off, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, .9))}.ag-icon-radio-button-on{font-family:var(--ag-icon-font-family-radio-button-on, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-radio-button-on, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-radio-button-on, var(--ag-icon-font-color))}.ag-icon-radio-button-on:before{content:var(--ag-icon-font-code-radio-button-on, "");display:var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display))}.ag-icon-radio-button-on:after{background-image:var(--ag-icon-image-radio-button-on, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, .9))}.ag-icon-right{font-family:var(--ag-icon-font-family-right, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-right, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-right, var(--ag-icon-font-color))}.ag-icon-right:before{content:var(--ag-icon-font-code-right, "");display:var(--ag-icon-font-display-right, var(--ag-icon-font-display))}.ag-icon-right:after{background-image:var(--ag-icon-image-right, var(--ag-icon-image));display:var(--ag-icon-image-display-right, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-right, var(--ag-icon-image-opacity, .9))}.ag-icon-save{font-family:var(--ag-icon-font-family-save, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-save, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-save, var(--ag-icon-font-color))}.ag-icon-save:before{content:var(--ag-icon-font-code-save, "");display:var(--ag-icon-font-display-save, var(--ag-icon-font-display))}.ag-icon-save:after{background-image:var(--ag-icon-image-save, var(--ag-icon-image));display:var(--ag-icon-image-display-save, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-save, var(--ag-icon-image-opacity, .9))}.ag-icon-small-down{font-family:var(--ag-icon-font-family-small-down, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-down, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-down, var(--ag-icon-font-color))}.ag-icon-small-down:before{content:var(--ag-icon-font-code-small-down, "");display:var(--ag-icon-font-display-small-down, var(--ag-icon-font-display))}.ag-icon-small-down:after{background-image:var(--ag-icon-image-small-down, var(--ag-icon-image));display:var(--ag-icon-image-display-small-down, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-down, var(--ag-icon-image-opacity, .9))}.ag-icon-small-left{font-family:var(--ag-icon-font-family-small-left, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-left, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-left, var(--ag-icon-font-color))}.ag-icon-small-left:before{content:var(--ag-icon-font-code-small-left, "");display:var(--ag-icon-font-display-small-left, var(--ag-icon-font-display))}.ag-icon-small-left:after{background-image:var(--ag-icon-image-small-left, var(--ag-icon-image));display:var(--ag-icon-image-display-small-left, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-left, var(--ag-icon-image-opacity, .9))}.ag-icon-small-right{font-family:var(--ag-icon-font-family-small-right, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-right, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-right, var(--ag-icon-font-color))}.ag-icon-small-right:before{content:var(--ag-icon-font-code-small-right, "");display:var(--ag-icon-font-display-small-right, var(--ag-icon-font-display))}.ag-icon-small-right:after{background-image:var(--ag-icon-image-small-right, var(--ag-icon-image));display:var(--ag-icon-image-display-small-right, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-right, var(--ag-icon-image-opacity, .9))}.ag-icon-small-up{font-family:var(--ag-icon-font-family-small-up, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-up, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-up, var(--ag-icon-font-color))}.ag-icon-small-up:before{content:var(--ag-icon-font-code-small-up, "");display:var(--ag-icon-font-display-small-up, var(--ag-icon-font-display))}.ag-icon-small-up:after{background-image:var(--ag-icon-image-small-up, var(--ag-icon-image));display:var(--ag-icon-image-display-small-up, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-up, var(--ag-icon-image-opacity, .9))}.ag-icon-tick{font-family:var(--ag-icon-font-family-tick, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tick, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tick, var(--ag-icon-font-color))}.ag-icon-tick:before{content:var(--ag-icon-font-code-tick, "");display:var(--ag-icon-font-display-tick, var(--ag-icon-font-display))}.ag-icon-tick:after{background-image:var(--ag-icon-image-tick, var(--ag-icon-image));display:var(--ag-icon-image-display-tick, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tick, var(--ag-icon-image-opacity, .9))}.ag-icon-tree-closed{font-family:var(--ag-icon-font-family-tree-closed, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tree-closed, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tree-closed, var(--ag-icon-font-color))}.ag-icon-tree-closed:before{content:var(--ag-icon-font-code-tree-closed, "");display:var(--ag-icon-font-display-tree-closed, var(--ag-icon-font-display))}.ag-icon-tree-closed:after{background-image:var(--ag-icon-image-tree-closed, var(--ag-icon-image));display:var(--ag-icon-image-display-tree-closed, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tree-closed, var(--ag-icon-image-opacity, .9))}.ag-icon-tree-indeterminate{font-family:var(--ag-icon-font-family-tree-indeterminate, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tree-indeterminate, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tree-indeterminate, var(--ag-icon-font-color))}.ag-icon-tree-indeterminate:before{content:var(--ag-icon-font-code-tree-indeterminate, "");display:var(--ag-icon-font-display-tree-indeterminate, var(--ag-icon-font-display))}.ag-icon-tree-indeterminate:after{background-image:var(--ag-icon-image-tree-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-tree-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tree-indeterminate, var(--ag-icon-image-opacity, .9))}.ag-icon-tree-open{font-family:var(--ag-icon-font-family-tree-open, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tree-open, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tree-open, var(--ag-icon-font-color))}.ag-icon-tree-open:before{content:var(--ag-icon-font-code-tree-open, "");display:var(--ag-icon-font-display-tree-open, var(--ag-icon-font-display))}.ag-icon-tree-open:after{background-image:var(--ag-icon-image-tree-open, var(--ag-icon-image));display:var(--ag-icon-image-display-tree-open, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tree-open, var(--ag-icon-image-opacity, .9))}.ag-icon-unlinked{font-family:var(--ag-icon-font-family-unlinked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-unlinked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-unlinked, var(--ag-icon-font-color))}.ag-icon-unlinked:before{content:var(--ag-icon-font-code-unlinked, "");display:var(--ag-icon-font-display-unlinked, var(--ag-icon-font-display))}.ag-icon-unlinked:after{background-image:var(--ag-icon-image-unlinked, var(--ag-icon-image));display:var(--ag-icon-image-display-unlinked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-unlinked, var(--ag-icon-image-opacity, .9))}.ag-icon-up{font-family:var(--ag-icon-font-family-up, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-up, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-up, var(--ag-icon-font-color))}.ag-icon-up:before{content:var(--ag-icon-font-code-up, "");display:var(--ag-icon-font-display-up, var(--ag-icon-font-display))}.ag-icon-up:after{background-image:var(--ag-icon-image-up, var(--ag-icon-image));display:var(--ag-icon-image-display-up, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-up, var(--ag-icon-image-opacity, .9))}.ag-icon-down{font-family:var(--ag-icon-font-family-down, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-down, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-down, var(--ag-icon-font-color))}.ag-icon-down:before{content:var(--ag-icon-font-code-down, "");display:var(--ag-icon-font-display-down, var(--ag-icon-font-display))}.ag-icon-down:after{background-image:var(--ag-icon-image-down, var(--ag-icon-image));display:var(--ag-icon-image-display-down, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-down, var(--ag-icon-image-opacity, .9))}.ag-icon-plus{font-family:var(--ag-icon-font-family-plus, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-plus, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-plus, var(--ag-icon-font-color))}.ag-icon-plus:before{content:var(--ag-icon-font-code-plus, "");display:var(--ag-icon-font-display-plus, var(--ag-icon-font-display))}.ag-icon-plus:after{background-image:var(--ag-icon-image-plus, var(--ag-icon-image));display:var(--ag-icon-image-display-plus, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-plus, var(--ag-icon-image-opacity, .9))}.ag-icon-minus{font-family:var(--ag-icon-font-family-minus, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-minus, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-minus, var(--ag-icon-font-color))}.ag-icon-minus:before{content:var(--ag-icon-font-code-minus, "");display:var(--ag-icon-font-display-minus, var(--ag-icon-font-display))}.ag-icon-minus:after{background-image:var(--ag-icon-image-minus, var(--ag-icon-image));display:var(--ag-icon-image-display-minus, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-minus, var(--ag-icon-image-opacity, .9))}.ag-icon-menu-alt{font-family:var(--ag-icon-font-family-menu-alt, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-menu-alt, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-menu-alt, var(--ag-icon-font-color))}.ag-icon-menu-alt:before{content:var(--ag-icon-font-code-menu-alt, "");display:var(--ag-icon-font-display-menu-alt, var(--ag-icon-font-display))}.ag-icon-menu-alt:after{background-image:var(--ag-icon-image-menu-alt, var(--ag-icon-image));display:var(--ag-icon-image-display-menu-alt, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-menu-alt, var(--ag-icon-image-opacity, .9))}.ag-icon-row-drag:before{content:var(--ag-icon-font-code-grip)}.ag-left-arrow:before{content:var(--ag-icon-font-code-left)}.ag-right-arrow:before{content:var(--ag-icon-font-code-right)}[class*=ag-theme-]{--ag-foreground-color: #000;--ag-data-color: var(--ag-foreground-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-header-foreground-color: var(--ag-secondary-foreground-color);--ag-disabled-foreground-color: rgba(0, 0, 0, .5);--ag-background-color: #fff;--ag-header-background-color: transparent;--ag-tooltip-background-color: transparent;--ag-subheader-background-color: transparent;--ag-subheader-toolbar-background-color: transparent;--ag-control-panel-background-color: transparent;--ag-side-button-selected-background-color: var(--ag-control-panel-background-color);--ag-selected-row-background-color: #BBB;--ag-odd-row-background-color: var(--ag-background-color);--ag-modal-overlay-background-color: rgba(255, 255, 255, .66);--ag-menu-background-color: var(--ag-background-color);--ag-menu-border-color: var(--ag-border-color);--ag-panel-background-color: var(--ag-background-color);--ag-panel-border-color: var(--ag-border-color);--ag-row-hover-color: transparent;--ag-column-hover-color: transparent;--ag-range-selection-border-color: var(--ag-foreground-color);--ag-range-selection-border-style: solid;--ag-range-selection-background-color: rgba(0, 0, 0, .2);--ag-range-selection-background-color-2: var(--ag-range-selection-background-color);--ag-range-selection-background-color-3: var(--ag-range-selection-background-color);--ag-range-selection-background-color-4: var(--ag-range-selection-background-color);--ag-range-selection-highlight-color: var(--ag-range-selection-border-color);--ag-selected-tab-underline-color: var(--ag-range-selection-border-color);--ag-selected-tab-underline-width: 0;--ag-selected-tab-underline-transition-speed: 0s;--ag-range-selection-chart-category-background-color: rgba(0, 255, 132, .1);--ag-range-selection-chart-background-color: rgba(0, 88, 255, .1);--ag-header-cell-hover-background-color: transparent;--ag-header-cell-moving-background-color: var(--ag-background-color);--ag-value-change-value-highlight-background-color: rgba(22, 160, 133, .5);--ag-value-change-delta-up-color: #43a047;--ag-value-change-delta-down-color: #e53935;--ag-chip-background-color: transparent;--ag-chip-border-color: var(--ag-chip-background-color);--ag-borders: solid 1px;--ag-border-color: rgba(0, 0, 0, .25);--ag-borders-critical: var(--ag-borders);--ag-borders-secondary: var(--ag-borders);--ag-secondary-border-color: var(--ag-border-color);--ag-row-border-style: solid;--ag-row-border-width: 1px;--ag-cell-horizontal-border: solid transparent;--ag-borders-input: var(--ag-borders-secondary);--ag-input-border-color: var(--ag-secondary-border-color);--ag-borders-input-invalid: solid 2px;--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-borders-side-button: var(--ag-borders);--ag-border-radius: 0px;--ag-wrapper-border-radius: var(--ag-border-radius);--ag-row-border-color: var(--ag-secondary-border-color);--ag-header-column-separator-display: none;--ag-header-column-separator-height: 100%;--ag-header-column-separator-width: 1px;--ag-header-column-separator-color: var(--ag-secondary-border-color);--ag-header-column-resize-handle-display: none;--ag-header-column-resize-handle-height: 50%;--ag-header-column-resize-handle-width: 1px;--ag-header-column-resize-handle-color: var(--ag-secondary-border-color);--ag-invalid-color: red;--ag-input-disabled-border-color: var(--ag-input-border-color);--ag-input-disabled-background-color: transparent;--ag-checkbox-background-color: transparent;--ag-checkbox-border-radius: var(--ag-border-radius);--ag-checkbox-checked-color: var(--ag-foreground-color);--ag-checkbox-unchecked-color: var(--ag-foreground-color);--ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);--ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);--ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);--ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);--ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);--ag-toggle-button-switch-background-color: var(--ag-background-color);--ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);--ag-toggle-button-border-width: 1px;--ag-toggle-button-height: var(--ag-icon-size);--ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);--ag-input-focus-box-shadow: none;--ag-input-focus-border-color: none;--ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);--ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);--ag-grid-size: 4px;--ag-icon-size: 12px;--ag-icon-font-weight: normal;--ag-icon-font-color: var(--ag-foreground-color);--ag-icon-image-display: block;--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);--ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: var(--ag-grid-size);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);--ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);--ag-header-height: var(--ag-row-height);--ag-list-item-height: calc(var(--ag-grid-size) * 5);--ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));--ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));--ag-advanced-filter-builder-indent-size: calc(var(--ag-grid-size) * 2 + var(--ag-icon-size));--ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));--ag-filter-tool-panel-group-indent: 16px;--ag-tab-min-width: 220px;--ag-menu-min-width: 181px;--ag-side-bar-panel-width: 200px;--ag-font-family: "Helvetica Neue", sans-serif;--ag-font-size: 14px;--ag-card-radius: var(--ag-border-radius);--ag-card-shadow: none;--ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, .3);--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4}.ag-root-wrapper,.ag-sticky-top,.ag-dnd-ghost{background-color:var(--ag-background-color)}[class*=ag-theme-]{-webkit-font-smoothing:antialiased;font-family:var(--ag-font-family);font-size:var(--ag-font-size);line-height:normal;color:var(--ag-foreground-color)}ag-grid,ag-grid-angular,ag-grid-ng2,ag-grid-polymer,ag-grid-aurelia{display:block}.ag-aria-description-container{z-index:9999;border:0px;clip:rect(1px,1px,1px,1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-no-transition{transition:none!important}.ag-drag-handle{cursor:grab}.ag-column-drop-wrapper{display:flex}.ag-column-drop-horizontal-half-width{display:inline-block;width:50%!important}.ag-unselectable{-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-selectable{-moz-user-select:text;-webkit-user-select:text;user-select:text}.ag-tab{position:relative}.ag-tab-guard{position:absolute;width:0;height:0;display:block}.ag-select-agg-func-popup{position:absolute}.ag-input-wrapper,.ag-picker-field-wrapper{display:flex;flex:1 1 auto;align-items:center;line-height:normal;position:relative}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-root-wrapper{cursor:default;position:relative;display:flex;flex-direction:column;overflow:hidden;white-space:normal}.ag-root-wrapper.ag-layout-normal{height:100%}.ag-watermark{position:absolute;bottom:20px;right:25px;opacity:.7;transition:opacity 1s ease-out 3s;color:#9b9b9b}.ag-watermark:before{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjA5IiBoZWlnaHQ9IjM2IiB2aWV3Qm94PSIwIDAgMjA5IDM2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTkyLjk5MyAyMy42NTgyVjE1LjcxMTdIMTc5LjQ1MkwxNzEuNTA1IDIzLjY1ODJIMTkyLjk5M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTIwOC4yNSAzLjk1MDgxSDE5MS4yNzZMMTgzLjI2NiAxMS44OTczSDIwOC4yNVYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTYzLjYyMiAzMS42MDQ4TDE2Ny42OTEgMjcuNTM2MUgxODEuNDIzVjM1LjQ4MjdIMTYzLjYyMlYzMS42MDQ4WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTY2LjYxIDE5Ljc4MDNIMTc1LjM4M0wxODMuMzkzIDExLjgzMzdIMTY2LjYxVjE5Ljc4MDNaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNTcuMDExIDMxLjYwNDdIMTYzLjYyMkwxNzEuNTA1IDIzLjY1ODJIMTU3LjAxMVYzMS42MDQ3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTkxLjI3NiAzLjk1MDgxTDE4Ny4yMDggOC4wMTk0MUgxNjEuMjdWMC4wNzI4NzZIMTkxLjI3NlYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjAuODM5MSAzMC4yMDYxSDguMzc4OTJMNi4yMTc0NSAzNS41NDYySDAuNzUwMjQ0TDEyLjI1NjggOC41OTE1NUgxNy4wMjQ3TDI4LjUzMTMgMzUuNTQ2MkgyMy4wMDA1TDIwLjgzOTEgMzAuMjA2MVpNMTkuMTIyNyAyNS45NDY4TDE0LjYwOSAxNC45NDg4TDEwLjA5NTQgMjUuOTQ2OEgxOS4xMjI3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTA0LjQzNyAxOC41MDg5QzEwNi4wMjYgMTYuMTU2NyAxMTAuMDMxIDE1LjkwMjQgMTExLjY4NCAxNS45MDI0VjIwLjQ3OTZDMTA5LjY1IDIwLjQ3OTYgMTA3LjYxNSAyMC41NDMyIDEwNi40MDcgMjEuNDMzMkMxMDUuMiAyMi4zMjMyIDEwNC41NjQgMjMuNTMxMSAxMDQuNTY0IDI0Ljk5MzJWMzUuNTQ2Mkg5OS42MDUxVjE1LjkwMjRIMTA0LjM3M0wxMDQuNDM3IDE4LjUwODlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xMTkuMzc2IDE1LjkwMjRIMTE0LjQxOFYzNS41NDYySDExOS4zNzZWMTUuOTAyNFoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTExOS4zNzYgNy4xMjkzOUgxMTQuNDE4VjEyLjk3OEgxMTkuMzc2VjcuMTI5MzlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNDMuOTc5IDcuMTI5MzlWMzUuNTQ2MkgxMzkuMjExTDEzOS4wODQgMzIuNTU4M0MxMzguMzg0IDMzLjU3NTUgMTM3LjQ5NCAzNC40MDE5IDEzNi40MTQgMzUuMDM3NkMxMzUuMzMzIDM1LjYwOTggMTMzLjk5OCAzNS45Mjc2IDEzMi40NzIgMzUuOTI3NkMxMzEuMTM3IDM1LjkyNzYgMTI5Ljg2NiAzNS42NzMzIDEyOC43ODUgMzUuMjI4M0MxMjcuNjQxIDM0LjcxOTcgMTI2LjYyMyAzNC4wODQgMTI1Ljc5NyAzMy4xOTRDMTI0Ljk3MSAzMi4zMDQgMTI0LjI3MSAzMS4yMjMzIDEyMy44MjYgMzAuMDE1NEMxMjMuMzE4IDI4LjgwNzUgMTIzLjEyNyAyNy40MDkgMTIzLjEyNyAyNS44ODMyQzEyMy4xMjcgMjQuMzU3NSAxMjMuMzgxIDIyLjk1ODkgMTIzLjgyNiAyMS42ODc0QzEyNC4zMzUgMjAuNDE2IDEyNC45NzEgMTkuMzM1MyAxMjUuNzk3IDE4LjQ0NTNDMTI2LjYyMyAxNy41NTUyIDEyNy42NDEgMTYuODU2IDEyOC43ODUgMTYuMzQ3NEMxMjkuOTI5IDE1LjgzODggMTMxLjEzNyAxNS41ODQ1IDEzMi40NzIgMTUuNTg0NUMxMzMuOTk4IDE1LjU4NDUgMTM1LjI2OSAxNS44Mzg4IDEzNi4zNSAxNi40MTA5QzEzNy40MzEgMTYuOTgzMSAxMzguMzIxIDE3Ljc0NTkgMTM5LjAyIDE4LjgyNjdWNy4xOTI5NUgxNDMuOTc5VjcuMTI5MzlaTTEzMy41NTMgMzEuNjY4M0MxMzUuMjA2IDMxLjY2ODMgMTM2LjQ3NyAzMS4wOTYyIDEzNy40OTQgMzAuMDE1NEMxMzguNTExIDI4LjkzNDcgMTM5LjAyIDI3LjQ3MjUgMTM5LjAyIDI1LjY5MjVDMTM5LjAyIDIzLjkxMjUgMTM4LjUxMSAyMi41MTM5IDEzNy40OTQgMjEuMzY5NkMxMzYuNDc3IDIwLjI4ODggMTM1LjIwNiAxOS43MTY3IDEzMy41NTMgMTkuNzE2N0MxMzEuOTYzIDE5LjcxNjcgMTMwLjYyOCAyMC4yODg4IDEyOS42NzUgMjEuMzY5NkMxMjguNjU4IDIyLjQ1MDMgMTI4LjE0OSAyMy45MTI1IDEyOC4xNDkgMjUuNjkyNUMxMjguMTQ5IDI3LjQ3MjUgMTI4LjY1OCAyOC44NzExIDEyOS42NzUgMjkuOTUxOEMxMzAuNjkyIDMxLjA5NjEgMTMxLjk2MyAzMS42NjgzIDEzMy41NTMgMzEuNjY4M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTU3LjIwMjQgMjAuMzUyNUg0NC45MzNWMjQuNjExOEg1MS45MjU5QzUxLjczNTIgMjYuNzczMyA1MC45MDg4IDI4LjQyNjEgNDkuNTEwMiAyOS43NjExQzQ4LjExMTYgMzEuMDMyNiA0Ni4zMzE1IDMxLjY2ODMgNDQuMDQyOSAzMS42NjgzQzQyLjc3MTUgMzEuNjY4MyA0MS41NjM2IDMxLjQxNCA0MC41NDY1IDMwLjk2OUMzOS40NjU3IDMwLjUyNCAzOC41NzU3IDI5Ljg4ODMgMzcuODEyOSAyOC45OTgzQzM3LjA1IDI4LjE3MTggMzYuNDc3OCAyNy4xNTQ3IDM2LjAzMjggMjUuOTQ2OEMzNS41ODc4IDI0LjczODkgMzUuMzk3MSAyMy40Njc1IDM1LjM5NzEgMjIuMDA1M0MzNS4zOTcxIDIwLjU0MzIgMzUuNTg3OCAxOS4yNzE3IDM2LjAzMjggMTguMDYzOEMzNi40MTQzIDE2Ljg1NiAzNy4wNSAxNS45MDI0IDM3LjgxMjkgMTUuMDEyNEMzOC41NzU3IDE0LjE4NTkgMzkuNDY1NyAxMy41NTAyIDQwLjU0NjUgMTMuMDQxNkM0MS42MjcyIDEyLjU5NjYgNDIuNzcxNSAxMi4zNDIzIDQ0LjEwNjUgMTIuMzQyM0M0Ni43NzY2IDEyLjM0MjMgNDguODEwOSAxMi45NzggNTAuMjA5NSAxNC4yNDk1TDUzLjUxNTIgMTAuOTQzOEM1MS4wMzU5IDkuMDM2NTkgNDcuODU3MyA4LjAxOTQxIDQ0LjEwNjUgOC4wMTk0MUM0Mi4wMDg2IDguMDE5NDEgNDAuMTAxNSA4LjMzNzI5IDM4LjM4NSA5LjAzNjU5QzM2LjY2ODYgOS43MzU4OCAzNS4yMDY0IDEwLjYyNTkgMzMuOTk4NSAxMS44MzM3QzMyLjc5MDYgMTMuMDQxNiAzMS44MzcxIDE0LjUwMzggMzEuMjAxNCAxNi4yMjAzQzMwLjU2NTYgMTcuOTM2NyAzMC4yNDc4IDE5Ljg0MzggMzAuMjQ3OCAyMS44NzgyQzMwLjI0NzggMjMuOTEyNSAzMC41NjU2IDI1LjgxOTcgMzEuMjY0OSAyNy41MzYxQzMxLjk2NDIgMjkuMjUyNiAzMi44NTQyIDMwLjcxNDcgMzQuMDYyMSAzMS45MjI2QzM1LjI3IDMzLjEzMDUgMzYuNzMyMSAzNC4wODQxIDM4LjQ0ODYgMzQuNzE5OEM0MC4xNjUgMzUuNDE5MSA0Mi4wNzIyIDM1LjczNyA0NC4xMDY1IDM1LjczN0M0Ni4xNDA4IDM1LjczNyA0Ny45ODQ0IDM1LjQxOTEgNDkuNjM3MyAzNC43MTk4QzUxLjI5MDIgMzQuMDIwNSA1Mi42ODg4IDMzLjEzMDUgNTMuODMzMSAzMS45MjI2QzU0Ljk3NzQgMzAuNzE0NyA1NS44Njc0IDI5LjI1MjYgNTYuNTAzMSAyNy41MzYxQzU3LjEzODggMjUuODE5NyA1Ny40NTY3IDIzLjkxMjUgNTcuNDU2NyAyMS44NzgyVjIxLjA1MTdDNTcuMjY2IDIwLjkyNDYgNTcuMjAyNCAyMC42MDY3IDU3LjIwMjQgMjAuMzUyNVoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTk1Ljk4MTUgMjAuMzUyNUg4My43MTIxVjI0LjYxMThIOTAuNzA1QzkwLjUxNDMgMjYuNzczMyA4OS42ODc5IDI4LjQyNjEgODguMjg5MyAyOS43NjExQzg2Ljg5MDcgMzEuMDMyNiA4NS4xMTA2IDMxLjY2ODMgODIuODIyIDMxLjY2ODNDODEuNTUwNiAzMS42NjgzIDgwLjM0MjcgMzEuNDE0IDc5LjMyNTYgMzAuOTY5Qzc4LjI0NDggMzAuNTI0IDc3LjM1NDggMjkuODg4MyA3Ni41OTIgMjguOTk4M0M3NS44MjkxIDI4LjE3MTggNzUuMjU3IDI3LjE1NDcgNzQuODExOSAyNS45NDY4Qzc0LjM2NjkgMjQuNzM4OSA3NC4xNzYyIDIzLjQ2NzUgNzQuMTc2MiAyMi4wMDUzQzc0LjE3NjIgMjAuNTQzMiA3NC4zNjY5IDE5LjI3MTcgNzQuODExOSAxOC4wNjM4Qzc1LjE5MzQgMTYuODU2IDc1LjgyOTEgMTUuOTAyNCA3Ni41OTIgMTUuMDEyNEM3Ny4zNTQ4IDE0LjE4NTkgNzguMjQ0OCAxMy41NTAyIDc5LjMyNTYgMTMuMDQxNkM4MC40MDYzIDEyLjU5NjYgODEuNTUwNiAxMi4zNDIzIDgyLjg4NTYgMTIuMzQyM0M4NS41NTU3IDEyLjM0MjMgODcuNTkgMTIuOTc4IDg4Ljk4ODYgMTQuMjQ5NUw5Mi4yOTQzIDEwLjk0MzhDODkuODE1IDkuMDM2NTkgODYuNjM2NCA4LjAxOTQxIDgyLjg4NTYgOC4wMTk0MUM4MC43ODc4IDguMDE5NDEgNzguODgwNiA4LjMzNzI5IDc3LjE2NDEgOS4wMzY1OUM3NS40NDc3IDkuNzM1ODggNzMuOTg1NSAxMC42MjU5IDcyLjc3NzYgMTEuODMzN0M3MS41Njk4IDEzLjA0MTYgNzAuNjE2MiAxNC41MDM4IDY5Ljk4MDUgMTYuMjIwM0M2OS4zNDQ3IDE3LjkzNjcgNjkuMDI2OSAxOS44NDM4IDY5LjAyNjkgMjEuODc4MkM2OS4wMjY5IDIzLjkxMjUgNjkuMzQ0NyAyNS44MTk3IDcwLjA0NCAyNy41MzYxQzcwLjc0MzMgMjkuMjUyNiA3MS42MzM0IDMwLjcxNDcgNzIuODQxMiAzMS45MjI2Qzc0LjA0OTEgMzMuMTMwNSA3NS41MTEyIDM0LjA4NDEgNzcuMjI3NyAzNC43MTk4Qzc4Ljk0NDEgMzUuNDE5MSA4MC44NTEzIDM1LjczNyA4Mi44ODU2IDM1LjczN0M4NC45MiAzNS43MzcgODYuNzYzNiAzNS40MTkxIDg4LjQxNjQgMzQuNzE5OEM5MC4wNjkzIDM0LjAyMDUgOTEuNDY3OSAzMy4xMzA1IDkyLjYxMjIgMzEuOTIyNkM5My43NTY1IDMwLjcxNDcgOTQuNjQ2NSAyOS4yNTI2IDk1LjI4MjIgMjcuNTM2MUM5NS45MTggMjUuODE5NyA5Ni4yMzU4IDIzLjkxMjUgOTYuMjM1OCAyMS44NzgyVjIxLjA1MTdDOTYuMDQ1MSAyMC45MjQ2IDk1Ljk4MTUgMjAuNjA2NyA5NS45ODE1IDIwLjM1MjVaIiBmaWxsPSIjOUI5QjlCIi8+Cjwvc3ZnPgo=);background-repeat:no-repeat;background-size:170px 40px;display:block;height:40px;width:170px}.ag-watermark-text{opacity:.5;font-weight:700;font-family:Impact,sans-serif;font-size:19px;padding-left:.7rem}.ag-root-wrapper-body{display:flex;flex-direction:row}.ag-root-wrapper-body.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}.ag-root{position:relative;display:flex;flex-direction:column}.ag-root.ag-layout-normal,.ag-root.ag-layout-auto-height{overflow:hidden;flex:1 1 auto;width:0}.ag-root.ag-layout-normal{height:100%}.ag-header-viewport,.ag-floating-top-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-virtual-list-viewport,.ag-sticky-top-viewport{position:relative;height:100%;min-width:0px;overflow:hidden;flex:1 1 auto}.ag-body-viewport,.ag-center-cols-viewport{-ms-overflow-style:none!important;scrollbar-width:none!important}.ag-body-viewport::-webkit-scrollbar,.ag-center-cols-viewport::-webkit-scrollbar{display:none!important}.ag-body-viewport{display:flex}.ag-body-viewport.ag-layout-normal{overflow-y:auto;-webkit-overflow-scrolling:touch}.ag-center-cols-viewport{min-height:100%;width:100%;overflow-x:auto}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-header-container,.ag-floating-top-container,.ag-body-container,.ag-pinned-right-cols-container,.ag-center-cols-container,.ag-pinned-left-cols-container,.ag-floating-bottom-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-full-width-container,.ag-floating-bottom-full-width-container,.ag-virtual-list-container,.ag-sticky-top-container{position:relative}.ag-header-container,.ag-floating-top-container,.ag-floating-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-full-width-container,.ag-floating-top-full-width-container,.ag-floating-bottom-full-width-container,.ag-sticky-top-full-width-container{position:absolute;top:0;pointer-events:none}.ag-ltr .ag-full-width-container,.ag-ltr .ag-floating-top-full-width-container,.ag-ltr .ag-floating-bottom-full-width-container,.ag-ltr .ag-sticky-top-full-width-container{left:0}.ag-rtl .ag-full-width-container,.ag-rtl .ag-floating-top-full-width-container,.ag-rtl .ag-floating-bottom-full-width-container,.ag-rtl .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;overflow:hidden;height:100%;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{position:relative;display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{min-height:0;min-width:0;display:flex;position:relative}.ag-body-horizontal-scroll.ag-scrollbar-invisible,.ag-body-vertical-scroll.ag-scrollbar-invisible{position:absolute;bottom:0}.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar{opacity:0;transition:opacity .4s;visibility:hidden}.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active{visibility:visible;opacity:1}.ag-body-horizontal-scroll{width:100%}.ag-body-horizontal-scroll.ag-scrollbar-invisible{left:0;right:0}.ag-body-vertical-scroll{height:100%}.ag-body-vertical-scroll.ag-scrollbar-invisible{top:0;z-index:10}.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible{right:0}.ag-rtl .ag-body-vertical-scroll.ag-scrollbar-invisible{left:0}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll}.ag-horizontal-left-spacer.ag-scroller-corner,.ag-horizontal-right-spacer.ag-scroller-corner{overflow-x:hidden}.ag-header,.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;overflow:hidden;position:relative}.ag-header-cell-sortable .ag-header-cell-label{cursor:pointer}.ag-header{display:flex;width:100%;white-space:nowrap}.ag-pinned-left-header,.ag-pinned-right-header{height:100%}.ag-header-row{position:absolute}.ag-header-row:not(.ag-header-row-column-group){overflow:hidden}.ag-header.ag-header-allow-overflow .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;align-items:center;position:absolute;height:100%}.ag-header-cell.ag-header-active .ag-header-cell-menu-button,.ag-header-cell-filter-button{opacity:1}.ag-header-cell-menu-button:not(.ag-header-menu-always-show){transition:opacity .2s;opacity:0}.ag-header-group-cell-label,.ag-header-cell-label{display:flex;flex:1 1 auto;align-self:stretch;align-items:center}.ag-header-cell-label{overflow:hidden;text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{position:sticky;flex:none;max-width:100%}.ag-header-group-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-header-cell-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper{height:100%;display:flex;align-items:center}.ag-header-cell-comp-wrapper{width:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-right-aligned-header .ag-header-cell-label{flex-direction:row-reverse}.ag-header-cell-resize{position:absolute;z-index:2;height:100%;width:8px;top:0;cursor:ew-resize}.ag-ltr .ag-header-cell-resize{right:-4px}.ag-rtl .ag-header-cell-resize{left:-4px}.ag-pinned-left-header .ag-header-cell-resize{right:-4px}.ag-pinned-right-header .ag-header-cell-resize{left:-4px}.ag-header-select-all{display:flex}.ag-header-cell-menu-button,.ag-header-cell-filter-button,.ag-side-button-button,.ag-panel-title-bar-button,.ag-floating-filter-button-button{cursor:pointer}.ag-column-moving .ag-cell,.ag-column-moving .ag-header-cell{transition:left .2s}.ag-column-moving .ag-header-group-cell{transition:left .2s,width .2s}.ag-column-panel{display:flex;flex-direction:column;overflow:hidden;flex:1 1 auto}.ag-column-select{position:relative;display:flex;flex-direction:column;overflow:hidden;flex:3 1 0px}.ag-column-select-header{position:relative;display:flex;flex:none}.ag-column-select-header-icon{position:relative}.ag-column-select-header-filter-wrapper{flex:1 1 auto}.ag-column-select-header-filter{width:100%}.ag-column-select-list{flex:1 1 0px;overflow:hidden}.ag-column-drop{position:relative;display:inline-flex;align-items:center;overflow:auto;width:100%}.ag-column-drop-list{display:flex;align-items:center}.ag-column-drop-cell{position:relative;display:flex;align-items:center}.ag-column-drop-cell-text{overflow:hidden;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.ag-column-drop-vertical{display:flex;flex-direction:column;overflow:hidden;align-items:stretch;flex:1 1 0px}.ag-column-drop-vertical-title-bar{display:flex;align-items:center;flex:none}.ag-column-drop-vertical-list{position:relative;align-items:stretch;flex-grow:1;flex-direction:column;overflow-x:auto}.ag-column-drop-vertical-list>*{flex:none}.ag-column-drop-empty .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-vertical-empty-message{display:block}.ag-column-drop.ag-column-drop-horizontal{white-space:nowrap;overflow:hidden}.ag-column-drop-cell-button{cursor:pointer}.ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header{position:relative}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{display:flex;align-items:center}.ag-filter-toolpanel-header>*,.ag-filter-toolpanel-search>*{display:flex;align-items:center}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden}.ag-row-animation .ag-row{transition:transform .4s,top .4s}.ag-row-animation .ag-row.ag-after-created{transition:transform .4s,top .4s,height .4s}.ag-row-no-animation .ag-row{transition:none}.ag-row{white-space:nowrap;width:100%}.ag-row-loading{display:flex;align-items:center}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{display:flex;align-items:center}.ag-cell{display:inline-block;position:absolute;white-space:nowrap;height:100%}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-all}.ag-cell-wrapper{display:flex;align-items:center}.ag-cell-wrapper.ag-row-group{align-items:flex-start}.ag-sparkline-wrapper{position:absolute;height:100%;width:100%;left:0;top:0}.ag-full-width-row .ag-cell-wrapper.ag-row-group{height:100%;align-items:center}.ag-cell-inline-editing{z-index:1}.ag-cell-inline-editing .ag-cell-wrapper,.ag-cell-inline-editing .ag-cell-edit-wrapper,.ag-cell-inline-editing .ag-cell-editor,.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,.ag-cell-inline-editing .ag-cell-editor input{height:100%;width:100%;line-height:normal}.ag-cell .ag-icon{display:inline-block;vertical-align:middle}.ag-set-filter-item{display:flex;align-items:center;height:100%}.ag-set-filter-item-checkbox{display:flex;overflow:hidden;height:100%}.ag-set-filter-group-icons{display:block}.ag-set-filter-group-icons>*{cursor:pointer}.ag-filter-body-wrapper{display:flex;flex-direction:column}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{position:relative;display:flex;flex:1 1 auto;height:100%}.ag-floating-filter-full-body{display:flex;flex:1 1 auto;height:100%;width:100%;align-items:center;overflow:hidden}.ag-floating-filter-full-body>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%}.ag-floating-filter-input>*{flex:1 1 auto}.ag-floating-filter-button{display:flex;flex:none}.ag-set-floating-filter-input input[disabled]{pointer-events:none}.ag-dnd-ghost{position:absolute;display:inline-flex;align-items:center;cursor:move;white-space:nowrap;z-index:9999}.ag-overlay{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}.ag-overlay-panel{display:flex;height:100%;width:100%}.ag-overlay-wrapper{display:flex;flex:none;width:100%;height:100%;align-items:center;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-popup-child{z-index:5;top:0}.ag-popup-editor{position:absolute;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-large-text-input{display:block}.ag-virtual-list-item{position:absolute;width:100%}.ag-floating-top{overflow:hidden;white-space:nowrap;width:100%;position:relative;display:flex}.ag-pinned-left-floating-top,.ag-pinned-right-floating-top{display:inline-block;overflow:hidden;position:relative;min-width:0px}.ag-floating-bottom{overflow:hidden;white-space:nowrap;width:100%;position:relative;display:flex}.ag-pinned-left-floating-bottom,.ag-pinned-right-floating-bottom{display:inline-block;overflow:hidden;position:relative;min-width:0px}.ag-sticky-top{position:absolute;display:flex;width:100%}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{position:relative;height:100%;overflow:hidden}.ag-sticky-top-full-width-container{overflow:hidden;width:100%;height:100%}.ag-dialog,.ag-panel{display:flex;flex-direction:column;position:relative;overflow:hidden}.ag-panel-title-bar{display:flex;flex:none;align-items:center;cursor:default}.ag-panel-title-bar-title{flex:1 1 auto}.ag-panel-title-bar-buttons{display:flex}.ag-panel-title-bar-button{cursor:pointer}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;position:relative;overflow:hidden}.ag-dialog{position:absolute}.ag-resizer{position:absolute;pointer-events:none;z-index:1;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-resizer.ag-resizer-topLeft{top:0;left:0;height:5px;width:5px;cursor:nwse-resize}.ag-resizer.ag-resizer-top{top:0;left:5px;right:5px;height:5px;cursor:ns-resize}.ag-resizer.ag-resizer-topRight{top:0;right:0;height:5px;width:5px;cursor:nesw-resize}.ag-resizer.ag-resizer-right{top:5px;right:0;bottom:5px;width:5px;cursor:ew-resize}.ag-resizer.ag-resizer-bottomRight{bottom:0;right:0;height:5px;width:5px;cursor:nwse-resize}.ag-resizer.ag-resizer-bottom{bottom:0;left:5px;right:5px;height:5px;cursor:ns-resize}.ag-resizer.ag-resizer-bottomLeft{bottom:0;left:0;height:5px;width:5px;cursor:nesw-resize}.ag-resizer.ag-resizer-left{left:0;top:5px;bottom:5px;width:5px;cursor:ew-resize}.ag-tooltip,.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip:not(.ag-tooltip-interactive),.ag-tooltip-custom:not(.ag-tooltip-interactive){pointer-events:none}.ag-value-slide-out{margin-right:5px;opacity:1;transition:opacity 3s,margin-right 3s;transition-timing-function:linear}.ag-value-slide-out-end{margin-right:10px;opacity:0}.ag-opacity-zero{opacity:0!important}.ag-menu{max-height:100%;overflow-y:auto;position:absolute;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-menu-column-select-wrapper{height:265px;overflow:auto}.ag-menu-column-select-wrapper .ag-column-select{height:100%}.ag-dialog .ag-panel-content-wrapper .ag-column-select{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-menu-list{display:table;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{width:100%;display:flex;flex-wrap:nowrap}.ag-compact-menu-option-text{white-space:nowrap;flex:1 1 auto}.ag-rich-select{cursor:default;outline:none;height:100%}.ag-rich-select-value{display:flex;align-items:center;height:100%}.ag-rich-select-value .ag-picker-field-display{overflow:hidden;text-overflow:ellipsis}.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder{opacity:.5}.ag-rich-select-list{position:relative}.ag-rich-select-list .ag-loading-text{min-height:2rem}.ag-rich-select-row{display:flex;flex:1 1 auto;align-items:center;white-space:nowrap;overflow:hidden;height:100%}.ag-rich-select-field-input{flex:1 1 auto}.ag-rich-select-field-input .ag-input-field-input{padding:0!important;border:none!important;box-shadow:none!important;text-overflow:ellipsis}.ag-rich-select-field-input .ag-input-field-input::-moz-placeholder{opacity:.8}.ag-rich-select-field-input .ag-input-field-input::placeholder{opacity:.8}.ag-autocomplete{align-items:center;display:flex}.ag-autocomplete>*{flex:1 1 auto}.ag-autocomplete-list-popup{position:absolute;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-autocomplete-list{position:relative}.ag-autocomplete-virtual-list-item{display:flex}.ag-autocomplete-row{display:flex;flex:1 1 auto;align-items:center;overflow:hidden}.ag-autocomplete-row-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-paging-panel{align-items:center;display:flex;justify-content:flex-end}.ag-paging-page-summary-panel{display:flex;align-items:center}.ag-paging-button{position:relative}.ag-disabled .ag-paging-page-summary-panel{pointer-events:none}.ag-tool-panel-wrapper{display:flex;overflow-y:auto;overflow-x:hidden;cursor:default;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-column-select-column,.ag-column-select-column-group,.ag-select-agg-func-item{position:relative;align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;height:100%}.ag-column-select-column>*,.ag-column-select-column-group>*,.ag-select-agg-func-item>*{flex:none}.ag-select-agg-func-item,.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize{right:-3px}.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize,.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize{left:-3px}.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize{right:-3px}.ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}.ag-header-group-cell{display:flex;align-items:center;height:100%;position:absolute}.ag-header-group-cell-no-group.ag-header-span-height .ag-header-cell-resize{display:none}.ag-cell-label-container{display:flex;justify-content:space-between;flex-direction:row-reverse;align-items:center;height:100%;width:100%;padding:5px 0}.ag-right-aligned-header .ag-cell-label-container{flex-direction:row}.ag-right-aligned-header .ag-header-cell-text{text-align:end}.ag-side-bar{display:flex;flex-direction:row-reverse}.ag-side-bar-left{order:-1;flex-direction:row}.ag-side-button-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;white-space:nowrap;outline:none;cursor:pointer}.ag-side-button-label{writing-mode:vertical-lr}.ag-status-bar{display:flex;justify-content:space-between;overflow:hidden}.ag-status-panel{display:inline-flex}.ag-status-name-value{white-space:nowrap}.ag-status-bar-left,.ag-status-bar-center,.ag-status-bar-right{display:inline-flex}.ag-icon{display:block;speak:none}.ag-group{position:relative;width:100%}.ag-group-title-bar{display:flex;align-items:center}.ag-group-title{display:block;flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ag-group-title-bar .ag-group-title{cursor:default}.ag-group-toolbar{display:flex;align-items:center}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-group-container-horizontal{flex-direction:row;flex-wrap:wrap}.ag-group-container-vertical{flex-direction:column}.ag-column-group-icons{display:block}.ag-column-group-icons>*{cursor:pointer}.ag-group-item-alignment-stretch .ag-group-item{align-items:stretch}.ag-group-item-alignment-start .ag-group-item{align-items:flex-start}.ag-group-item-alignment-end .ag-group-item{align-items:flex-end}.ag-toggle-button-icon{transition:right .3s;position:absolute;top:-1px}.ag-input-field,.ag-select{display:flex;flex-direction:row;align-items:center}.ag-input-field-input{flex:1 1 auto}.ag-floating-filter-input .ag-input-field-input[type=date]{width:1px}.ag-range-field,.ag-angle-select{display:flex;align-items:center}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{display:block;position:relative}.ag-angle-select-child-circle{position:absolute}.ag-slider-wrapper{display:flex}.ag-slider-wrapper .ag-input-field,.ag-picker-field-display{flex:1 1 auto}.ag-picker-field{display:flex;align-items:center}.ag-picker-field-icon{display:flex;border:0;padding:0;margin:0;cursor:pointer}.ag-picker-field-wrapper{overflow:hidden}.ag-label-align-right .ag-label{order:1}.ag-label-align-right>*{flex:none}.ag-label-align-top{flex-direction:column;align-items:flex-start}.ag-label-align-top>*{align-self:stretch}.ag-label-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.ag-color-panel{width:100%;display:flex;flex-direction:column;text-align:center}.ag-spectrum-color{flex:1 1 auto;position:relative;overflow:hidden;cursor:default}.ag-spectrum-fill{position:absolute;top:0;left:0;right:0;bottom:0}.ag-spectrum-val{cursor:pointer}.ag-spectrum-dragger{position:absolute;pointer-events:none;cursor:pointer}.ag-spectrum-hue{cursor:default;background:linear-gradient(to left,#ff0000 3%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.ag-spectrum-alpha{cursor:default}.ag-spectrum-hue-background{width:100%;height:100%}.ag-spectrum-alpha-background{background-image:linear-gradient(to right,rgba(0,0,0,0),rgb(0,0,0));width:100%;height:100%}.ag-spectrum-tool{cursor:pointer}.ag-spectrum-slider{position:absolute;pointer-events:none}.ag-recent-colors{display:flex}.ag-recent-color{cursor:pointer}.ag-ltr .ag-column-select-indent-1{padding-left:20px}.ag-rtl .ag-column-select-indent-1{padding-right:20px}.ag-ltr .ag-set-filter-indent-1{padding-left:20px}.ag-rtl .ag-set-filter-indent-1{padding-right:20px}.ag-ltr .ag-row-group-indent-1{padding-left:20px}.ag-rtl .ag-row-group-indent-1{padding-right:20px}.ag-ltr .ag-column-select-indent-2{padding-left:40px}.ag-rtl .ag-column-select-indent-2{padding-right:40px}.ag-ltr .ag-set-filter-indent-2{padding-left:40px}.ag-rtl .ag-set-filter-indent-2{padding-right:40px}.ag-ltr .ag-row-group-indent-2{padding-left:40px}.ag-rtl .ag-row-group-indent-2{padding-right:40px}.ag-ltr .ag-column-select-indent-3{padding-left:60px}.ag-rtl .ag-column-select-indent-3{padding-right:60px}.ag-ltr .ag-set-filter-indent-3{padding-left:60px}.ag-rtl .ag-set-filter-indent-3{padding-right:60px}.ag-ltr .ag-row-group-indent-3{padding-left:60px}.ag-rtl .ag-row-group-indent-3{padding-right:60px}.ag-ltr .ag-column-select-indent-4{padding-left:80px}.ag-rtl .ag-column-select-indent-4{padding-right:80px}.ag-ltr .ag-set-filter-indent-4{padding-left:80px}.ag-rtl .ag-set-filter-indent-4{padding-right:80px}.ag-ltr .ag-row-group-indent-4{padding-left:80px}.ag-rtl .ag-row-group-indent-4{padding-right:80px}.ag-ltr .ag-column-select-indent-5{padding-left:100px}.ag-rtl .ag-column-select-indent-5{padding-right:100px}.ag-ltr .ag-set-filter-indent-5{padding-left:100px}.ag-rtl .ag-set-filter-indent-5{padding-right:100px}.ag-ltr .ag-row-group-indent-5{padding-left:100px}.ag-rtl .ag-row-group-indent-5{padding-right:100px}.ag-ltr .ag-column-select-indent-6{padding-left:120px}.ag-rtl .ag-column-select-indent-6{padding-right:120px}.ag-ltr .ag-set-filter-indent-6{padding-left:120px}.ag-rtl .ag-set-filter-indent-6{padding-right:120px}.ag-ltr .ag-row-group-indent-6{padding-left:120px}.ag-rtl .ag-row-group-indent-6{padding-right:120px}.ag-ltr .ag-column-select-indent-7{padding-left:140px}.ag-rtl .ag-column-select-indent-7{padding-right:140px}.ag-ltr .ag-set-filter-indent-7{padding-left:140px}.ag-rtl .ag-set-filter-indent-7{padding-right:140px}.ag-ltr .ag-row-group-indent-7{padding-left:140px}.ag-rtl .ag-row-group-indent-7{padding-right:140px}.ag-ltr .ag-column-select-indent-8{padding-left:160px}.ag-rtl .ag-column-select-indent-8{padding-right:160px}.ag-ltr .ag-set-filter-indent-8{padding-left:160px}.ag-rtl .ag-set-filter-indent-8{padding-right:160px}.ag-ltr .ag-row-group-indent-8{padding-left:160px}.ag-rtl .ag-row-group-indent-8{padding-right:160px}.ag-ltr .ag-column-select-indent-9{padding-left:180px}.ag-rtl .ag-column-select-indent-9{padding-right:180px}.ag-ltr .ag-set-filter-indent-9{padding-left:180px}.ag-rtl .ag-set-filter-indent-9{padding-right:180px}.ag-ltr .ag-row-group-indent-9{padding-left:180px}.ag-rtl .ag-row-group-indent-9{padding-right:180px}.ag-ltr{direction:ltr}.ag-ltr .ag-body,.ag-ltr .ag-floating-top,.ag-ltr .ag-floating-bottom,.ag-ltr .ag-header,.ag-ltr .ag-sticky-top,.ag-ltr .ag-body-viewport,.ag-ltr .ag-body-horizontal-scroll{flex-direction:row}.ag-rtl{direction:rtl}.ag-rtl .ag-body,.ag-rtl .ag-floating-top,.ag-rtl .ag-floating-bottom,.ag-rtl .ag-header,.ag-rtl .ag-sticky-top,.ag-rtl .ag-body-viewport,.ag-rtl .ag-body-horizontal-scroll{flex-direction:row-reverse}.ag-rtl .ag-icon-contracted,.ag-rtl .ag-icon-expanded,.ag-rtl .ag-icon-tree-closed{display:block;transform:rotate(180deg)}.ag-body .ag-body-viewport{-webkit-overflow-scrolling:touch}.ag-layout-print.ag-body{display:block;height:unset}.ag-layout-print.ag-root-wrapper{display:inline-block}.ag-layout-print .ag-body-vertical-scroll,.ag-layout-print .ag-body-horizontal-scroll{display:none}.ag-layout-print.ag-force-vertical-scroll{overflow-y:visible!important}@media print{.ag-root-wrapper.ag-layout-print{display:table}.ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,.ag-root-wrapper.ag-layout-print .ag-root,.ag-root-wrapper.ag-layout-print .ag-body-viewport,.ag-root-wrapper.ag-layout-print .ag-center-cols-container,.ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,.ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,.ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport{height:auto!important;overflow:hidden!important;display:block!important}.ag-root-wrapper.ag-layout-print .ag-row,.ag-root-wrapper.ag-layout-print .ag-cell{-moz-column-break-inside:avoid;break-inside:avoid}}[class^=ag-],[class^=ag-]:focus,[class^=ag-]:after,[class^=ag-]:before{box-sizing:border-box;outline:none}[class^=ag-]::-ms-clear{display:none}.ag-checkbox .ag-input-wrapper,.ag-radio-button .ag-input-wrapper{overflow:visible}.ag-range-field .ag-input-wrapper{height:100%}.ag-toggle-button{flex:none;width:unset;min-width:unset}.ag-button{border-radius:0;color:var(--ag-foreground-color)}.ag-button:hover{background-color:transparent}.ag-ltr .ag-label-align-right .ag-label{margin-left:var(--ag-grid-size)}.ag-rtl .ag-label-align-right .ag-label{margin-right:var(--ag-grid-size)}input[class^=ag-]{margin:0;background-color:var(--ag-background-color)}textarea[class^=ag-],select[class^=ag-]{background-color:var(--ag-background-color)}input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]{font-size:inherit;line-height:inherit;color:inherit;font-family:inherit;border:var(--ag-borders-input) var(--ag-input-border-color)}input[class^=ag-]:not([type]):disabled,input[class^=ag-][type=text]:disabled,input[class^=ag-][type=number]:disabled,input[class^=ag-][type=tel]:disabled,input[class^=ag-][type=date]:disabled,input[class^=ag-][type=datetime-local]:disabled,textarea[class^=ag-]:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}input[class^=ag-]:not([type]):focus,input[class^=ag-][type=text]:focus,input[class^=ag-][type=number]:focus,input[class^=ag-][type=tel]:focus,input[class^=ag-][type=date]:focus,input[class^=ag-][type=datetime-local]:focus,textarea[class^=ag-]:focus{outline:none;box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-input-focus-border-color)}input[class^=ag-]:not([type]):invalid,input[class^=ag-][type=text]:invalid,input[class^=ag-][type=number]:invalid,input[class^=ag-][type=tel]:invalid,input[class^=ag-][type=date]:invalid,input[class^=ag-][type=datetime-local]:invalid,textarea[class^=ag-]:invalid{border:var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid)}input[class^=ag-][type=number]:not(.ag-number-field-input-stepper){-moz-appearance:textfield}input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button,input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[class^=ag-][type=range]{padding:0}input[class^=ag-][type=button]:focus,button[class^=ag-]:focus{box-shadow:var(--ag-input-focus-box-shadow)}.ag-drag-handle{color:var(--ag-secondary-foreground-color)}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item:focus-visible{outline:none}.ag-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-select-list{background-color:var(--ag-background-color);overflow-y:auto;overflow-x:hidden;border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-list-item{display:flex;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-list-item.ag-active-item{background-color:var(--ag-row-hover-color)}.ag-select-list-item{-moz-user-select:none;-webkit-user-select:none;user-select:none;cursor:default}.ag-ltr .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-select-list-item span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ag-row-drag,.ag-selection-checkbox,.ag-group-expanded,.ag-group-contracted{color:var(--ag-secondary-foreground-color)}.ag-ltr .ag-row-drag,.ag-ltr .ag-selection-checkbox,.ag-ltr .ag-group-expanded,.ag-ltr .ag-group-contracted{margin-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-row-drag,.ag-rtl .ag-selection-checkbox,.ag-rtl .ag-group-expanded,.ag-rtl .ag-group-contracted{margin-left:var(--ag-cell-widget-spacing)}.ag-cell-wrapper>*:not(.ag-cell-value):not(.ag-group-value){--ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));--ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));height:min(var(--ag-internal-calculated-line-height),var(--ag-internal-padded-row-height));display:flex;align-items:center;flex:none}.ag-group-expanded,.ag-group-contracted{cursor:pointer}.ag-group-title-bar-icon{cursor:pointer;flex:none;color:var(--ag-secondary-foreground-color)}.ag-ltr .ag-group-child-count{margin-left:2px}.ag-rtl .ag-group-child-count{margin-right:2px}.ag-group-title-bar{background-color:var(--ag-subheader-background-color);padding:var(--ag-grid-size)}.ag-group-toolbar{padding:var(--ag-grid-size);background-color:var(--ag-subheader-toolbar-background-color)}.ag-disabled-group-title-bar,.ag-disabled-group-container{opacity:.5}.group-item{margin:calc(var(--ag-grid-size) * .5) 0}.ag-label{white-space:nowrap}.ag-ltr .ag-label{margin-right:var(--ag-grid-size)}.ag-rtl .ag-label{margin-left:var(--ag-grid-size)}.ag-label-align-top .ag-label{margin-bottom:calc(var(--ag-grid-size) * .5)}.ag-angle-select[disabled]{color:var(--ag-disabled-foreground-color);pointer-events:none}.ag-angle-select[disabled] .ag-angle-select-field{opacity:.4}.ag-ltr .ag-slider-field,.ag-ltr .ag-angle-select-field{margin-right:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-slider-field,.ag-rtl .ag-angle-select-field{margin-left:calc(var(--ag-grid-size) * 2)}.ag-angle-select-parent-circle{width:24px;height:24px;border-radius:12px;border:solid 1px;border-color:var(--ag-border-color);background-color:var(--ag-background-color)}.ag-angle-select-child-circle{top:4px;left:12px;width:6px;height:6px;margin-left:-3px;margin-top:-4px;border-radius:3px;background-color:var(--ag-secondary-foreground-color)}.ag-picker-field-wrapper{border:var(--ag-borders);border-color:var(--ag-border-color);border-radius:5px;background-color:var(--ag-background-color)}.ag-picker-field-wrapper:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-picker-field-wrapper.ag-picker-has-focus,.ag-picker-field-wrapper:focus-within{outline:none;box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-input-focus-border-color)}.ag-picker-field-button{background-color:var(--ag-background-color);color:var(--ag-secondary-foreground-color)}.ag-dialog.ag-color-dialog{border-radius:5px}.ag-color-picker .ag-picker-field-display{height:var(--ag-icon-size)}.ag-color-picker .ag-picker-field-wrapper{max-width:45px;min-width:45px}.ag-color-panel{padding:var(--ag-grid-size)}.ag-spectrum-color{background-color:red;border-radius:2px}.ag-spectrum-tools{padding:10px}.ag-spectrum-sat{background-image:linear-gradient(to right,white,rgba(204,154,129,0))}.ag-spectrum-val{background-image:linear-gradient(to top,black,rgba(204,154,129,0))}.ag-spectrum-dragger{border-radius:12px;height:12px;width:12px;border:1px solid white;background:black;box-shadow:0 0 2px #0000003d}.ag-spectrum-hue-background,.ag-spectrum-alpha-background{border-radius:2px}.ag-spectrum-tool{margin-bottom:10px;height:11px;border-radius:2px}.ag-spectrum-slider{margin-top:-12px;width:13px;height:13px;border-radius:13px;background-color:#f8f8f8;box-shadow:0 1px 4px #0000005e}.ag-recent-color{margin:0 3px}.ag-recent-color:first-child{margin-left:0}.ag-recent-color:last-child{margin-right:0}.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),.ag-recent-color:focus-visible:not(:disabled):not([readonly]){box-shadow:var(--ag-input-focus-box-shadow)}.ag-dnd-ghost{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);overflow:hidden;text-overflow:ellipsis;border:var(--ag-borders-secondary) var(--ag-secondary-border-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height)!important;line-height:var(--ag-header-height);margin:0;padding:0 calc(var(--ag-grid-size) * 2);transform:translateY(calc(var(--ag-grid-size) * 2))}.ag-dnd-ghost-icon{margin-right:var(--ag-grid-size);color:var(--ag-foreground-color)}.ag-popup-child:not(.ag-tooltip-custom){box-shadow:var(--ag-popup-shadow)}.ag-select .ag-picker-field-wrapper{min-height:var(--ag-list-item-height);cursor:default}.ag-ltr .ag-select .ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-select .ag-picker-field-wrapper{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-ltr .ag-select .ag-picker-field-wrapper{padding-right:var(--ag-grid-size)}.ag-rtl .ag-select .ag-picker-field-wrapper{padding-left:var(--ag-grid-size)}.ag-select.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-select:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-select .ag-picker-field-display{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-select .ag-picker-field-icon{display:flex;align-items:center}.ag-select.ag-disabled{opacity:.5}.ag-rich-select-value,.ag-rich-select-list{background-color:var(--ag-background-color)}.ag-rich-select-list{width:100%;height:auto;border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-rich-select-list .ag-loading-text{padding:var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing)}.ag-rich-select-value{border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color);padding-top:0;padding-bottom:0}.ag-ltr .ag-rich-select-value{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-rich-select-value{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-ltr .ag-rich-select-value{padding-right:var(--ag-grid-size)}.ag-rtl .ag-rich-select-value{padding-left:var(--ag-grid-size)}.ag-ltr .ag-rich-select-field-input{left:calc(var(--ag-cell-horizontal-padding))}.ag-rtl .ag-rich-select-field-input{right:calc(var(--ag-cell-horizontal-padding))}.ag-popup-editor .ag-rich-select-value{height:var(--ag-row-height);min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-rich-select-virtual-list-item:focus-visible:after{content:none}.ag-rich-select-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-ltr .ag-rich-select-row{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-rich-select-row{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row-text-highlight{font-weight:700}.ag-autocomplete{width:100%}.ag-autocomplete-list{width:100%;min-width:200px;height:calc(var(--ag-row-height) * 6.5)}.ag-autocomplete-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-autocomplete-virtual-list-item:focus-visible:after{content:none}.ag-autocomplete-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-autocomplete-row-label{margin:0px var(--ag-widget-container-horizontal-padding)}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-dragging-range-handle .ag-dialog,.ag-dragging-fill-handle .ag-dialog{opacity:.7;pointer-events:none}.ag-dialog{border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color);box-shadow:var(--ag-popup-shadow)}.ag-panel{background-color:var(--ag-panel-background-color);border-color:var(--ag-panel-border-color)}.ag-panel-title-bar{color:var(--ag-header-foreground-color);height:var(--ag-header-height);padding:var(--ag-grid-size) var(--ag-cell-horizontal-padding);border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-panel-title-bar-button{margin-left:var(--ag-grid-size)}.ag-rtl .ag-panel-title-bar-button{margin-right:var(--ag-grid-size)}.ag-tooltip{background-color:var(--ag-tooltip-background-color);color:var(--ag-foreground-color);padding:var(--ag-grid-size);border:var(--ag-borders) var(--ag-border-color);border-radius:var(--ag-card-radius);white-space:normal}.ag-tooltip.ag-tooltip-animate,.ag-tooltip-custom.ag-tooltip-animate{transition:opacity 1s}.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding{opacity:0}.ag-ltr .ag-column-select-indent-1{padding-left:calc(1 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-1{padding-right:calc(1 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-2{padding-left:calc(2 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-2{padding-right:calc(2 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-3{padding-left:calc(3 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-3{padding-right:calc(3 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-4{padding-left:calc(4 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-4{padding-right:calc(4 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-5{padding-left:calc(5 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-5{padding-right:calc(5 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-6{padding-left:calc(6 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-6{padding-right:calc(6 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-7{padding-left:calc(7 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-7{padding-right:calc(7 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-8{padding-left:calc(8 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-8{padding-right:calc(8 * var(--ag-column-select-indent-size))}.ag-ltr .ag-column-select-indent-9{padding-left:calc(9 * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-indent-9{padding-right:calc(9 * var(--ag-column-select-indent-size))}.ag-column-select-header-icon{cursor:pointer}.ag-column-select-header-icon:focus-visible{outline:none}.ag-column-select-header-icon:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:0;left:0;display:block;width:calc(100% + -0px);height:calc(100% + -0px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-ltr .ag-column-group-icons:not(:last-child),.ag-ltr .ag-column-select-header-icon:not(:last-child),.ag-ltr .ag-column-select-header-checkbox:not(:last-child),.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),.ag-ltr .ag-column-select-checkbox:not(:last-child),.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),.ag-ltr .ag-column-select-column-label:not(:last-child){margin-right:var(--ag-widget-horizontal-spacing)}.ag-rtl .ag-column-group-icons:not(:last-child),.ag-rtl .ag-column-select-header-icon:not(:last-child),.ag-rtl .ag-column-select-header-checkbox:not(:last-child),.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),.ag-rtl .ag-column-select-checkbox:not(:last-child),.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),.ag-rtl .ag-column-select-column-label:not(:last-child){margin-left:var(--ag-widget-horizontal-spacing)}.ag-column-select-virtual-list-item:focus-visible{outline:none}.ag-column-select-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-select-column-group:not(:last-child),.ag-column-select-column:not(:last-child){margin-bottom:var(--ag-widget-vertical-spacing)}.ag-column-select-column-readonly,.ag-column-select-column-group-readonly{color:var(--ag-disabled-foreground-color);pointer-events:none}.ag-ltr .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-rtl .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding) * .5) 0px}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-rtl{text-align:right}.ag-root-wrapper{border-radius:var(--ag-wrapper-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-1{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-1{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 1)}.ag-ltr .ag-row-group-indent-1{padding-left:calc(1 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-1{padding-right:calc(1 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-1 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-1 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-2{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-2{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 2)}.ag-ltr .ag-row-group-indent-2{padding-left:calc(2 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-2{padding-right:calc(2 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-2 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-2 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-3{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-3{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 3)}.ag-ltr .ag-row-group-indent-3{padding-left:calc(3 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-3{padding-right:calc(3 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-3 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-3 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-4{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-4{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 4)}.ag-ltr .ag-row-group-indent-4{padding-left:calc(4 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-4{padding-right:calc(4 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-4 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-4 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-5{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-5{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 5)}.ag-ltr .ag-row-group-indent-5{padding-left:calc(5 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-5{padding-right:calc(5 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-5 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-5 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-6{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-6{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 6)}.ag-ltr .ag-row-group-indent-6{padding-left:calc(6 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-6{padding-right:calc(6 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-6 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-6 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-7{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-7{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 7)}.ag-ltr .ag-row-group-indent-7{padding-left:calc(7 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-7{padding-right:calc(7 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-7 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-7 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-8{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-8{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 8)}.ag-ltr .ag-row-group-indent-8{padding-left:calc(8 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-8{padding-right:calc(8 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-8 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-8 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-9{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-9{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 9)}.ag-ltr .ag-row-group-indent-9{padding-left:calc(9 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-9{padding-right:calc(9 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-9 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-9 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-10{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-10{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 10)}.ag-ltr .ag-row-group-indent-10{padding-left:calc(10 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-10{padding-right:calc(10 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-10 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-10 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-11{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-11{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 11)}.ag-ltr .ag-row-group-indent-11{padding-left:calc(11 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-11{padding-right:calc(11 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-11 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-11 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-12{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-12{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 12)}.ag-ltr .ag-row-group-indent-12{padding-left:calc(12 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-12{padding-right:calc(12 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-12 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-12 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-13{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-13{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 13)}.ag-ltr .ag-row-group-indent-13{padding-left:calc(13 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-13{padding-right:calc(13 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-13 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-13 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-14{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-14{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 14)}.ag-ltr .ag-row-group-indent-14{padding-left:calc(14 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-14{padding-right:calc(14 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-14 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-14 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-15{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-15{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 15)}.ag-ltr .ag-row-group-indent-15{padding-left:calc(15 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-15{padding-right:calc(15 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-15 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-15 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-16{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-16{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 16)}.ag-ltr .ag-row-group-indent-16{padding-left:calc(16 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-16{padding-right:calc(16 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-16 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-16 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-17{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-17{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 17)}.ag-ltr .ag-row-group-indent-17{padding-left:calc(17 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-17{padding-right:calc(17 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-17 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-17 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-18{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-18{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 18)}.ag-ltr .ag-row-group-indent-18{padding-left:calc(18 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-18{padding-right:calc(18 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-18 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-18 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-19{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-19{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 19)}.ag-ltr .ag-row-group-indent-19{padding-left:calc(19 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-19{padding-right:calc(19 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-19 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-19 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-20{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-20{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 20)}.ag-ltr .ag-row-group-indent-20{padding-left:calc(20 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-20{padding-right:calc(20 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-20 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-20 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-21{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-21{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 21)}.ag-ltr .ag-row-group-indent-21{padding-left:calc(21 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-21{padding-right:calc(21 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-21 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-21 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-22{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-22{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 22)}.ag-ltr .ag-row-group-indent-22{padding-left:calc(22 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-22{padding-right:calc(22 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-22 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-22 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-23{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-23{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 23)}.ag-ltr .ag-row-group-indent-23{padding-left:calc(23 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-23{padding-right:calc(23 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-23 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-23 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-24{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-24{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 24)}.ag-ltr .ag-row-group-indent-24{padding-left:calc(24 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-24{padding-right:calc(24 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-24 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-24 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-25{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-25{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 25)}.ag-ltr .ag-row-group-indent-25{padding-left:calc(25 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-25{padding-right:calc(25 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-25 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-25 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-26{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-26{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 26)}.ag-ltr .ag-row-group-indent-26{padding-left:calc(26 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-26{padding-right:calc(26 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-26 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-26 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-27{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-27{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 27)}.ag-ltr .ag-row-group-indent-27{padding-left:calc(27 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-27{padding-right:calc(27 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-27 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-27 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-28{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-28{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 28)}.ag-ltr .ag-row-group-indent-28{padding-left:calc(28 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-28{padding-right:calc(28 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-28 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-28 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-29{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-29{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 29)}.ag-ltr .ag-row-group-indent-29{padding-left:calc(29 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-29{padding-right:calc(29 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-29 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-29 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-30{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-30{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 30)}.ag-ltr .ag-row-group-indent-30{padding-left:calc(30 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-30{padding-right:calc(30 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-30 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-30 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-31{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-31{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 31)}.ag-ltr .ag-row-group-indent-31{padding-left:calc(31 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-31{padding-right:calc(31 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-31 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-31 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-32{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-32{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 32)}.ag-ltr .ag-row-group-indent-32{padding-left:calc(32 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-32{padding-right:calc(32 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-32 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-32 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-33{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-33{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 33)}.ag-ltr .ag-row-group-indent-33{padding-left:calc(33 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-33{padding-right:calc(33 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-33 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-33 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-34{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-34{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 34)}.ag-ltr .ag-row-group-indent-34{padding-left:calc(34 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-34{padding-right:calc(34 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-34 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-34 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-35{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-35{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 35)}.ag-ltr .ag-row-group-indent-35{padding-left:calc(35 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-35{padding-right:calc(35 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-35 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-35 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-36{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-36{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 36)}.ag-ltr .ag-row-group-indent-36{padding-left:calc(36 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-36{padding-right:calc(36 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-36 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-36 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-37{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-37{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 37)}.ag-ltr .ag-row-group-indent-37{padding-left:calc(37 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-37{padding-right:calc(37 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-37 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-37 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-38{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-38{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 38)}.ag-ltr .ag-row-group-indent-38{padding-left:calc(38 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-38{padding-right:calc(38 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-38 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-38 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-39{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-39{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 39)}.ag-ltr .ag-row-group-indent-39{padding-left:calc(39 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-39{padding-right:calc(39 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-39 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-39 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-40{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-40{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 40)}.ag-ltr .ag-row-group-indent-40{padding-left:calc(40 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-40{padding-right:calc(40 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-40 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-40 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-41{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-41{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 41)}.ag-ltr .ag-row-group-indent-41{padding-left:calc(41 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-41{padding-right:calc(41 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-41 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-41 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-42{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-42{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 42)}.ag-ltr .ag-row-group-indent-42{padding-left:calc(42 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-42{padding-right:calc(42 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-42 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-42 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-43{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-43{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 43)}.ag-ltr .ag-row-group-indent-43{padding-left:calc(43 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-43{padding-right:calc(43 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-43 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-43 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-44{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-44{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 44)}.ag-ltr .ag-row-group-indent-44{padding-left:calc(44 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-44{padding-right:calc(44 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-44 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-44 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-45{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-45{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 45)}.ag-ltr .ag-row-group-indent-45{padding-left:calc(45 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-45{padding-right:calc(45 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-45 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-45 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-46{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-46{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 46)}.ag-ltr .ag-row-group-indent-46{padding-left:calc(46 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-46{padding-right:calc(46 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-46 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-46 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-47{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-47{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 47)}.ag-ltr .ag-row-group-indent-47{padding-left:calc(47 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-47{padding-right:calc(47 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-47 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-47 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-48{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-48{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 48)}.ag-ltr .ag-row-group-indent-48{padding-left:calc(48 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-48{padding-right:calc(48 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-48 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-48 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-49{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-49{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 49)}.ag-ltr .ag-row-group-indent-49{padding-left:calc(49 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-49{padding-right:calc(49 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-49 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-49 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-50{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-50{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 50)}.ag-ltr .ag-row-group-indent-50{padding-left:calc(50 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-50{padding-right:calc(50 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-50 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-50 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-51{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-51{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 51)}.ag-ltr .ag-row-group-indent-51{padding-left:calc(51 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-51{padding-right:calc(51 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-51 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-51 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-52{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-52{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 52)}.ag-ltr .ag-row-group-indent-52{padding-left:calc(52 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-52{padding-right:calc(52 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-52 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-52 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-53{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-53{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 53)}.ag-ltr .ag-row-group-indent-53{padding-left:calc(53 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-53{padding-right:calc(53 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-53 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-53 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-54{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-54{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 54)}.ag-ltr .ag-row-group-indent-54{padding-left:calc(54 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-54{padding-right:calc(54 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-54 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-54 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-55{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-55{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 55)}.ag-ltr .ag-row-group-indent-55{padding-left:calc(55 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-55{padding-right:calc(55 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-55 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-55 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-56{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-56{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 56)}.ag-ltr .ag-row-group-indent-56{padding-left:calc(56 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-56{padding-right:calc(56 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-56 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-56 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-57{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-57{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 57)}.ag-ltr .ag-row-group-indent-57{padding-left:calc(57 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-57{padding-right:calc(57 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-57 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-57 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-58{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-58{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 58)}.ag-ltr .ag-row-group-indent-58{padding-left:calc(58 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-58{padding-right:calc(58 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-58 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-58 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-59{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-59{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 59)}.ag-ltr .ag-row-group-indent-59{padding-left:calc(59 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-59{padding-right:calc(59 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-59 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-59 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-60{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-60{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 60)}.ag-ltr .ag-row-group-indent-60{padding-left:calc(60 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-60{padding-right:calc(60 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-60 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-60 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-61{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-61{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 61)}.ag-ltr .ag-row-group-indent-61{padding-left:calc(61 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-61{padding-right:calc(61 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-61 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-61 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-62{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-62{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 62)}.ag-ltr .ag-row-group-indent-62{padding-left:calc(62 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-62{padding-right:calc(62 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-62 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-62 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-63{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-63{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 63)}.ag-ltr .ag-row-group-indent-63{padding-left:calc(63 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-63{padding-right:calc(63 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-63 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-63 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-64{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-64{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 64)}.ag-ltr .ag-row-group-indent-64{padding-left:calc(64 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-64{padding-right:calc(64 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-64 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-64 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-65{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-65{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 65)}.ag-ltr .ag-row-group-indent-65{padding-left:calc(65 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-65{padding-right:calc(65 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-65 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-65 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-66{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-66{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 66)}.ag-ltr .ag-row-group-indent-66{padding-left:calc(66 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-66{padding-right:calc(66 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-66 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-66 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-67{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-67{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 67)}.ag-ltr .ag-row-group-indent-67{padding-left:calc(67 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-67{padding-right:calc(67 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-67 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-67 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-68{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-68{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 68)}.ag-ltr .ag-row-group-indent-68{padding-left:calc(68 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-68{padding-right:calc(68 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-68 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-68 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-69{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-69{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 69)}.ag-ltr .ag-row-group-indent-69{padding-left:calc(69 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-69{padding-right:calc(69 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-69 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-69 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-70{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-70{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 70)}.ag-ltr .ag-row-group-indent-70{padding-left:calc(70 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-70{padding-right:calc(70 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-70 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-70 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-71{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-71{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 71)}.ag-ltr .ag-row-group-indent-71{padding-left:calc(71 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-71{padding-right:calc(71 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-71 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-71 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-72{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-72{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 72)}.ag-ltr .ag-row-group-indent-72{padding-left:calc(72 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-72{padding-right:calc(72 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-72 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-72 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-73{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-73{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 73)}.ag-ltr .ag-row-group-indent-73{padding-left:calc(73 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-73{padding-right:calc(73 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-73 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-73 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-74{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-74{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 74)}.ag-ltr .ag-row-group-indent-74{padding-left:calc(74 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-74{padding-right:calc(74 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-74 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-74 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-75{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-75{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 75)}.ag-ltr .ag-row-group-indent-75{padding-left:calc(75 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-75{padding-right:calc(75 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-75 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-75 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-76{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-76{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 76)}.ag-ltr .ag-row-group-indent-76{padding-left:calc(76 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-76{padding-right:calc(76 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-76 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-76 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-77{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-77{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 77)}.ag-ltr .ag-row-group-indent-77{padding-left:calc(77 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-77{padding-right:calc(77 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-77 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-77 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-78{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-78{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 78)}.ag-ltr .ag-row-group-indent-78{padding-left:calc(78 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-78{padding-right:calc(78 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-78 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-78 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-79{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-79{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 79)}.ag-ltr .ag-row-group-indent-79{padding-left:calc(79 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-79{padding-right:calc(79 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-79 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-79 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-80{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-80{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 80)}.ag-ltr .ag-row-group-indent-80{padding-left:calc(80 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-80{padding-right:calc(80 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-80 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-80 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-81{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-81{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 81)}.ag-ltr .ag-row-group-indent-81{padding-left:calc(81 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-81{padding-right:calc(81 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-81 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-81 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-82{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-82{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 82)}.ag-ltr .ag-row-group-indent-82{padding-left:calc(82 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-82{padding-right:calc(82 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-82 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-82 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-83{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-83{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 83)}.ag-ltr .ag-row-group-indent-83{padding-left:calc(83 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-83{padding-right:calc(83 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-83 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-83 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-84{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-84{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 84)}.ag-ltr .ag-row-group-indent-84{padding-left:calc(84 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-84{padding-right:calc(84 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-84 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-84 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-85{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-85{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 85)}.ag-ltr .ag-row-group-indent-85{padding-left:calc(85 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-85{padding-right:calc(85 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-85 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-85 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-86{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-86{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 86)}.ag-ltr .ag-row-group-indent-86{padding-left:calc(86 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-86{padding-right:calc(86 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-86 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-86 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-87{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-87{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 87)}.ag-ltr .ag-row-group-indent-87{padding-left:calc(87 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-87{padding-right:calc(87 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-87 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-87 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-88{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-88{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 88)}.ag-ltr .ag-row-group-indent-88{padding-left:calc(88 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-88{padding-right:calc(88 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-88 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-88 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-89{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-89{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 89)}.ag-ltr .ag-row-group-indent-89{padding-left:calc(89 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-89{padding-right:calc(89 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-89 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-89 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-90{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-90{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 90)}.ag-ltr .ag-row-group-indent-90{padding-left:calc(90 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-90{padding-right:calc(90 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-90 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-90 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-91{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-91{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 91)}.ag-ltr .ag-row-group-indent-91{padding-left:calc(91 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-91{padding-right:calc(91 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-91 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-91 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-92{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-92{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 92)}.ag-ltr .ag-row-group-indent-92{padding-left:calc(92 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-92{padding-right:calc(92 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-92 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-92 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-93{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-93{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 93)}.ag-ltr .ag-row-group-indent-93{padding-left:calc(93 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-93{padding-right:calc(93 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-93 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-93 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-94{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-94{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 94)}.ag-ltr .ag-row-group-indent-94{padding-left:calc(94 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-94{padding-right:calc(94 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-94 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-94 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-95{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-95{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 95)}.ag-ltr .ag-row-group-indent-95{padding-left:calc(95 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-95{padding-right:calc(95 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-95 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-95 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-96{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-96{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 96)}.ag-ltr .ag-row-group-indent-96{padding-left:calc(96 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-96{padding-right:calc(96 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-96 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-96 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-97{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-97{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 97)}.ag-ltr .ag-row-group-indent-97{padding-left:calc(97 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-97{padding-right:calc(97 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-97 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-97 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-98{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-98{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 98)}.ag-ltr .ag-row-group-indent-98{padding-left:calc(98 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-98{padding-right:calc(98 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-98 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-98 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row>.ag-cell-wrapper.ag-row-group-indent-99{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99)}.ag-rtl .ag-row>.ag-cell-wrapper.ag-row-group-indent-99{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * 99)}.ag-ltr .ag-row-group-indent-99{padding-left:calc(99 * var(--ag-row-group-indent-size))}.ag-rtl .ag-row-group-indent-99{padding-right:calc(99 * var(--ag-row-group-indent-size))}.ag-ltr .ag-row-level-99 .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-level-99 .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}.ag-ltr .ag-row-group-leaf-indent{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-group-leaf-indent{margin-right:var(--ag-row-group-indent-size)}.ag-value-change-delta{padding-right:2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row{height:var(--ag-row-height);background-color:var(--ag-background-color);color:var(--ag-data-color);border-bottom:var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width)}.ag-row-highlight-above:after,.ag-row-highlight-below:after{content:"";position:absolute;width:calc(100% - 1px);height:1px;background-color:var(--ag-range-selection-border-color);left:1px}.ag-row-highlight-above:after{top:-1px}.ag-row-highlight-above.ag-row-first:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-row-selected:before{content:"";background-color:var(--ag-selected-row-background-color);display:block;position:absolute;top:0;left:0;right:0;bottom:0}.ag-row-hover:not(.ag-full-width-row):before,.ag-row-hover.ag-full-width-row.ag-row-group:before{content:"";background-color:var(--ag-row-hover-color);display:block;position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.ag-row-hover.ag-full-width-row.ag-row-group>*{position:relative}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-ltr .ag-right-aligned-cell{text-align:right}.ag-rtl .ag-right-aligned-cell{text-align:left}.ag-ltr .ag-right-aligned-cell .ag-cell-value,.ag-ltr .ag-right-aligned-cell .ag-group-value{margin-left:auto}.ag-rtl .ag-right-aligned-cell .ag-cell-value,.ag-rtl .ag-right-aligned-cell .ag-group-value{margin-right:auto}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{--ag-internal-calculated-line-height: var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)));--ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));border:1px solid transparent;line-height:min(var(--ag-internal-calculated-line-height),var(--ag-internal-padded-row-height));padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px);-webkit-font-smoothing:subpixel-antialiased}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-cell-inline-editing{border:1px solid var(--ag-border-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:0;background-color:var(--ag-control-panel-background-color)}.ag-popup-editor .ag-large-text,.ag-autocomplete-list-popup{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background-color:var(--ag-control-panel-background-color);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-large-text-input textarea{resize:none}.ag-details-row{padding:calc(var(--ag-grid-size) * 5);background-color:var(--ag-background-color)}.ag-layout-auto-height .ag-center-cols-viewport,.ag-layout-auto-height .ag-center-cols-container,.ag-layout-print .ag-center-cols-viewport,.ag-layout-print .ag-center-cols-container{min-height:50px}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-overlay-loading-center{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size)}.ag-overlay-no-rows-wrapper.ag-layout-auto-height{padding-top:30px}.ag-loading{display:flex;height:100%;align-items:center}.ag-ltr .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-name:spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ag-floating-top{border-bottom:var(--ag-borders-critical) var(--ag-border-color)}.ag-floating-bottom{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-ltr .ag-cell{border-right:var(--ag-cell-horizontal-border)}.ag-rtl .ag-cell{border-left:var(--ag-cell-horizontal-border)}.ag-ltr .ag-cell{border-right-width:1px}.ag-rtl .ag-cell{border-left-width:1px}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell){border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell){border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-cell-range-selected:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important}.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2{background-color:var(--ag-range-selection-background-color-2)}.ag-cell-range-selected-3:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3{background-color:var(--ag-range-selection-background-color-3)}.ag-cell-range-selected-4:not(.ag-cell-focus),.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4{background-color:var(--ag-range-selection-background-color-4)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,.ag-ltr .ag-cell-range-single-cell,.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,.ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,.ag-rtl .ag-cell-range-single-cell,.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-right,.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-right,.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-left,.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-left,.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{position:absolute;width:6px;height:6px;bottom:-1px;background-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-fill-handle,.ag-ltr .ag-range-handle{right:-1px}.ag-rtl .ag-fill-handle,.ag-rtl .ag-range-handle{left:-1px}.ag-fill-handle{cursor:cell}.ag-range-handle{cursor:nwse-resize}.ag-cell-inline-editing{border-color:var(--ag-input-focus-border-color)!important}.ag-menu{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background-color:var(--ag-menu-background-color);border-color:var(--ag-menu-border-color);padding:0}.ag-menu-list{cursor:default;padding:var(--ag-grid-size) 0}.ag-menu-separator{height:calc(var(--ag-grid-size) * 2 + 1px)}.ag-menu-separator-part:after{content:"";display:block;border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-menu-option-active,.ag-compact-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-menu-option-part,.ag-compact-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-grid-size) + 2px) 0}.ag-menu-option-disabled,.ag-compact-menu-option-disabled{opacity:.5}.ag-menu-option-icon,.ag-compact-menu-option-icon{width:var(--ag-icon-size)}.ag-ltr .ag-menu-option-icon,.ag-ltr .ag-compact-menu-option-icon{padding-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-menu-option-icon,.ag-rtl .ag-compact-menu-option-icon{padding-right:calc(var(--ag-grid-size) * 2)}.ag-menu-option-text,.ag-compact-menu-option-text{padding-left:calc(var(--ag-grid-size) * 2);padding-right:calc(var(--ag-grid-size) * 2)}.ag-ltr .ag-menu-option-shortcut,.ag-ltr .ag-compact-menu-option-shortcut{padding-right:var(--ag-grid-size)}.ag-rtl .ag-menu-option-shortcut,.ag-rtl .ag-compact-menu-option-shortcut{padding-left:var(--ag-grid-size)}.ag-ltr .ag-menu-option-popup-pointer,.ag-ltr .ag-compact-menu-option-popup-pointer{padding-right:var(--ag-grid-size)}.ag-rtl .ag-menu-option-popup-pointer,.ag-rtl .ag-compact-menu-option-popup-pointer{padding-left:var(--ag-grid-size)}.ag-tabs{min-width:var(--ag-tab-min-width)}.ag-tabs-header{display:flex}.ag-tab{border-bottom:var(--ag-selected-tab-underline-width) solid transparent;transition:border-bottom var(--ag-selected-tab-underline-transition-speed);display:flex;flex:none;align-items:center;justify-content:center;cursor:pointer}.ag-tab:focus-visible{outline:none}.ag-tab:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-tab-selected{border-bottom-color:var(--ag-selected-tab-underline-color)}.ag-menu-header{color:var(--ag-secondary-foreground-color)}.ag-filter-separator{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-filter-select .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}.ag-ltr .ag-filter-condition-operator-or{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-filter-condition-operator-or{margin-right:calc(var(--ag-grid-size) * 2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-set-filter-list,.ag-filter-no-matches{height:calc(var(--ag-list-item-height) * 6)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height) * 10)}.ag-set-filter-filter{margin-top:var(--ag-widget-container-vertical-padding);margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-item{padding:0px var(--ag-widget-container-horizontal-padding)}.ag-ltr .ag-set-filter-indent-1{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 1 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-1{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 1 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-2{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 2 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-2{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 2 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-3{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 3 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-3{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 3 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-4{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 4 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-4{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 4 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-5{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 5 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-5{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 5 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-6{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 6 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-6{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 6 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-7{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 7 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-7{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 7 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-8{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 8 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-8{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 8 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-indent-9{padding-left:calc(var(--ag-widget-container-horizontal-padding) + 9 * var(--ag-set-filter-indent-size))}.ag-rtl .ag-set-filter-indent-9{padding-right:calc(var(--ag-widget-container-horizontal-padding) + 9 * var(--ag-set-filter-indent-size))}.ag-ltr .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-rtl .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-ltr .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-menu .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{outline:none}.ag-filter-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-filter-apply-panel{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-filter-apply-panel-button{line-height:1.5}.ag-ltr .ag-filter-apply-panel-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-filter-apply-panel-button{margin-right:calc(var(--ag-grid-size) * 2)}.ag-simple-filter-body-wrapper{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));overflow-y:auto;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing))}.ag-simple-filter-body-wrapper>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-simple-filter-body-wrapper .ag-resizer-wrapper{margin:0}.ag-menu:not(.ag-tabs) .ag-filter .ag-simple-filter-body-wrapper,.ag-menu:not(.ag-tabs) .ag-filter>*:not(.ag-filter-wrapper){min-width:calc(var(--ag-menu-min-width) - 2px)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-multi-filter-menu-item{margin:var(--ag-grid-size) 0}.ag-multi-filter-group-title-bar{padding:calc(var(--ag-grid-size) * 2) var(--ag-grid-size);background-color:transparent}.ag-group-filter-field-select-wrapper{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing))}.ag-group-filter-field-select-wrapper>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-multi-filter-group-title-bar:focus-visible{outline:none}.ag-multi-filter-group-title-bar:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-side-bar{position:relative}.ag-tool-panel-wrapper{width:var(--ag-side-bar-panel-width);background-color:var(--ag-control-panel-background-color)}.ag-side-buttons{padding-top:calc(var(--ag-grid-size) * 4);width:calc(var(--ag-icon-size) + 4px);position:relative;overflow:hidden}button.ag-side-button-button{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;background:transparent;padding:calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;width:100%;margin:0;min-height:calc(var(--ag-grid-size) * 18);background-position-y:center;background-position-x:center;background-repeat:no-repeat;border:none;border-top:var(--ag-borders-side-button) var(--ag-border-color);border-bottom:var(--ag-borders-side-button) var(--ag-border-color)}button.ag-side-button-button:focus{box-shadow:none}.ag-side-button-button:focus-visible{outline:none}.ag-side-button-button:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-selected button.ag-side-button-button{background-color:var(--ag-side-button-selected-background-color)}.ag-side-button-icon-wrapper{margin-bottom:3px}.ag-ltr .ag-side-bar-left,.ag-rtl .ag-side-bar-right{border-right:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper{border-left:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-side-bar-left .ag-side-button-button,.ag-rtl .ag-side-bar-right .ag-side-button-button{border-right:var(--ag-selected-tab-underline-width) solid transparent;transition:border-right var(--ag-selected-tab-underline-transition-speed)}.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button{border-right-color:var(--ag-selected-tab-underline-color)}.ag-rtl .ag-side-bar-left,.ag-ltr .ag-side-bar-right{border-left:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper{border-right:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-side-bar-left .ag-side-button-button,.ag-ltr .ag-side-bar-right .ag-side-button-button{border-left:var(--ag-selected-tab-underline-width) solid transparent;transition:border-left var(--ag-selected-tab-underline-transition-speed)}.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button{border-left-color:var(--ag-selected-tab-underline-color)}.ag-filter-toolpanel-header{height:calc(var(--ag-grid-size) * 6)}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{padding:0 var(--ag-grid-size)}.ag-filter-toolpanel-header:focus-visible{outline:none}.ag-filter-toolpanel-header:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-filter-toolpanel-group.ag-has-filter>.ag-group-title-bar .ag-group-title:after{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:var(--ag-icon-font-code-filter, "");position:absolute}.ag-ltr .ag-filter-toolpanel-group.ag-has-filter>.ag-group-title-bar .ag-group-title:after{padding-left:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-group.ag-has-filter>.ag-group-title-bar .ag-group-title:after{padding-right:var(--ag-grid-size)}.ag-filter-toolpanel-group-level-0-header{height:calc(var(--ag-grid-size) * 8)}.ag-filter-toolpanel-group-item{margin-top:calc(var(--ag-grid-size) * .5);margin-bottom:calc(var(--ag-grid-size) * .5)}.ag-filter-toolpanel-search{height:var(--ag-header-height)}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-grid-size) * 4)}.ag-ltr .ag-filter-toolpanel-search-input{margin-right:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-search-input{margin-left:var(--ag-grid-size)}.ag-filter-toolpanel-group-level-0{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-ltr .ag-filter-toolpanel-expand,.ag-ltr .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-expand,.ag-rtl .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-1-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-1 .ag-filter-toolpanel-group-level-2-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 1 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-2-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-2 .ag-filter-toolpanel-group-level-3-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 2 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-3-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-3 .ag-filter-toolpanel-group-level-4-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 3 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-4-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-4 .ag-filter-toolpanel-group-level-5-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 4 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-5-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-5 .ag-filter-toolpanel-group-level-6-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 5 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-6-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-6 .ag-filter-toolpanel-group-level-7-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 6 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-7-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-7 .ag-filter-toolpanel-group-level-8-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 7 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-8-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-8 .ag-filter-toolpanel-group-level-9-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 8 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-9-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-9 .ag-filter-toolpanel-group-level-10-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 9 + var(--ag-grid-size))}.ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-10-header.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-group-level-10 .ag-filter-toolpanel-group-level-11-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * 10 + var(--ag-grid-size))}.ag-filter-toolpanel-instance-header.ag-filter-toolpanel-group-level-1-header{padding-left:var(--ag-grid-size)}.ag-filter-toolpanel-instance-filter{border-bottom:var(--ag-borders) var(--ag-border-color);border-top:var(--ag-borders) var(--ag-border-color);margin-top:var(--ag-grid-size)}.ag-ltr .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-grid-size)}.ag-set-filter-group-icons{color:var(--ag-secondary-foreground-color)}.ag-pivot-mode-panel{min-height:var(--ag-header-height);height:var(--ag-header-height);display:flex}.ag-pivot-mode-select{display:flex;align-items:center}.ag-ltr .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-select-header:focus-visible{outline:none}.ag-column-select-header:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-select-header{height:var(--ag-header-height);align-items:center;padding:0 var(--ag-widget-container-horizontal-padding);border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-panel-column-select{border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-group-icons,.ag-column-select-header-icon{color:var(--ag-secondary-foreground-color)}.ag-column-select-list .ag-list-item-hovered:after{content:"";position:absolute;left:0;right:0;height:1px;background-color:var(--ag-range-selection-border-color)}.ag-column-select-list .ag-item-highlight-top:after{top:0}.ag-column-select-list .ag-item-highlight-bottom:after{bottom:0}.ag-header,.ag-advanced-filter-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-row{color:var(--ag-header-foreground-color);height:var(--ag-header-height)}.ag-pinned-right-header{border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-pinned-left-header{border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon{margin-left:var(--ag-grid-size)}.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon{margin-right:var(--ag-grid-size)}.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon{margin-right:var(--ag-grid-size)}.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon{margin-left:var(--ag-grid-size)}.ag-header-cell,.ag-header-group-cell{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-header-cell.ag-header-cell-moving,.ag-header-group-cell.ag-header-cell-moving{background-color:var(--ag-header-cell-moving-background-color)}.ag-ltr .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell:focus-visible{outline:none}.ag-header-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-header-group-cell:focus-visible{outline:none}.ag-header-group-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-header-cell:focus-visible{outline:none}.ag-advanced-filter-header-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-header-icon{color:var(--ag-secondary-foreground-color)}.ag-header-expand-icon{cursor:pointer}.ag-ltr .ag-header-expand-icon{margin-left:4px}.ag-rtl .ag-header-expand-icon{margin-right:4px}.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total),.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-group-cell:not(.ag-column-resizing)+.ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,.ag-header-group-cell:not(.ag-column-resizing)+.ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,.ag-header-cell:not(.ag-column-resizing)+.ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,.ag-header-cell:not(.ag-column-resizing)+.ag-header-cell:not(.ag-column-hover).ag-column-resizing,.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,.ag-header-group-cell:first-of-type.ag-column-resizing,.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing{background-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell:before,.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):before{content:"";position:absolute;z-index:1;display:var(--ag-header-column-separator-display);width:var(--ag-header-column-separator-width);height:var(--ag-header-column-separator-height);top:calc(50% - var(--ag-header-column-separator-height) * .5);background-color:var(--ag-header-column-separator-color)}.ag-ltr .ag-header-cell:before,.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):before{right:0}.ag-rtl .ag-header-cell:before,.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group):before{left:0}.ag-header-cell-resize{display:flex;align-items:center}.ag-header-cell-resize:after{content:"";position:absolute;z-index:1;display:var(--ag-header-column-resize-handle-display);width:var(--ag-header-column-resize-handle-width);height:var(--ag-header-column-resize-handle-height);top:calc(50% - var(--ag-header-column-resize-handle-height) * .5);background-color:var(--ag-header-column-resize-handle-color)}.ag-header-cell.ag-header-span-height .ag-header-cell-resize:after{height:calc(100% - var(--ag-grid-size) * 4);top:calc(var(--ag-grid-size) * 2)}.ag-ltr .ag-header-viewport .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-rtl .ag-header-viewport .ag-header-cell-resize:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-ltr .ag-header-select-all{margin-right:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-select-all{margin-left:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-floating-filter-button{margin-left:var(--ag-cell-widget-spacing)}.ag-rtl .ag-floating-filter-button{margin-right:var(--ag-cell-widget-spacing)}.ag-floating-filter-button-button{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;height:var(--ag-icon-size);padding:0;width:var(--ag-icon-size)}.ag-filter-loading{background-color:var(--ag-control-panel-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1}.ag-paging-panel{border-top:1px solid;border-top-color:var(--ag-border-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height)}.ag-paging-panel>*{margin:0 var(--ag-cell-horizontal-padding)}.ag-paging-panel>.ag-paging-page-size .ag-wrapper{min-width:calc(var(--ag-grid-size) * 10)}.ag-paging-button{cursor:pointer}.ag-paging-button.ag-disabled{cursor:default;color:var(--ag-disabled-foreground-color)}.ag-paging-button:focus-visible{outline:none}.ag-paging-button:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:0;left:0;display:block;width:calc(100% + -0px);height:calc(100% + -0px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-paging-button,.ag-paging-description{margin:0 var(--ag-grid-size)}.ag-status-bar{border-top:var(--ag-borders) var(--ag-border-color);color:var(--ag-disabled-foreground-color);padding-right:calc(var(--ag-grid-size) * 4);padding-left:calc(var(--ag-grid-size) * 4);line-height:1.5}.ag-status-name-value-value{color:var(--ag-foreground-color)}.ag-status-bar-center{text-align:center}.ag-status-name-value{margin-left:var(--ag-grid-size);margin-right:var(--ag-grid-size);padding-top:calc(var(--ag-grid-size) * 2);padding-bottom:calc(var(--ag-grid-size) * 2)}.ag-column-drop-cell{background:var(--ag-chip-background-color);border-radius:calc(var(--ag-grid-size) * 4);height:calc(var(--ag-grid-size) * 4);padding:0 calc(var(--ag-grid-size) * .5);border:1px solid var(--ag-chip-border-color)}.ag-column-drop-cell:focus-visible{outline:none}.ag-column-drop-cell:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:2px;left:2px;display:block;width:calc(100% - 4px);height:calc(100% - 4px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-drop-cell-text{margin:0 var(--ag-grid-size)}.ag-column-drop-cell-button{min-width:calc(var(--ag-grid-size) * 4);margin:0 calc(var(--ag-grid-size) * .5);color:var(--ag-secondary-foreground-color)}.ag-column-drop-cell-drag-handle{margin-left:calc(var(--ag-grid-size) * 2)}.ag-column-drop-cell-ghost{opacity:.5}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height);border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child){border-right:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child){border-left:var(--ag-borders) var(--ag-border-color)}.ag-column-drop-horizontal-cell-separator{margin:0 var(--ag-grid-size);color:var(--ag-secondary-foreground-color)}.ag-column-drop-horizontal-empty-message{color:var(--ag-disabled-foreground-color)}.ag-ltr .ag-column-drop-horizontal-icon{margin-right:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal-icon{margin-left:var(--ag-cell-horizontal-padding)}.ag-column-drop-vertical-list{padding-bottom:var(--ag-grid-size);padding-right:var(--ag-grid-size);padding-left:var(--ag-grid-size)}.ag-column-drop-vertical-cell{margin-top:var(--ag-grid-size)}.ag-column-drop-vertical{min-height:50px;border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-drop-vertical.ag-last-column-drop{border-bottom:none}.ag-column-drop-vertical-icon{margin-left:var(--ag-grid-size);margin-right:var(--ag-grid-size)}.ag-column-drop-vertical-empty-message{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;color:var(--ag-disabled-foreground-color);margin-top:var(--ag-grid-size)}.ag-select-agg-func-popup{border:var(--ag-borders) var(--ag-border-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background:var(--ag-background-color);height:calc(var(--ag-grid-size) * 5 * 3.5);padding:0}.ag-select-agg-func-virtual-list-item{cursor:default}.ag-ltr .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-grid-size) * 2)}.ag-select-agg-func-virtual-list-item:hover{background-color:var(--ag-selected-row-background-color)}.ag-select-agg-func-virtual-list-item:focus-visible{outline:none}.ag-select-agg-func-virtual-list-item:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-sort-indicator-container{display:flex}.ag-ltr .ag-sort-indicator-icon{padding-left:var(--ag-grid-size)}.ag-rtl .ag-sort-indicator-icon{padding-right:var(--ag-grid-size)}.ag-chart{position:relative;display:flex;overflow:hidden;width:100%;height:100%}.ag-chart-components-wrapper{position:relative;display:flex;flex:1 1 auto;overflow:hidden}.ag-chart-title-edit{position:absolute;display:none;top:0;left:0;text-align:center}.ag-chart-title-edit.currently-editing{display:inline-block}.ag-chart-canvas-wrapper{position:relative;flex:1 1 auto;overflow:hidden}.ag-charts-canvas{display:block}.ag-chart-menu{position:absolute;top:16px;display:flex;flex-direction:column}.ag-ltr .ag-chart-menu{right:20px}.ag-rtl .ag-chart-menu{left:20px}.ag-chart-docked-container{position:relative;width:0;min-width:0;transition:min-width .4s}.ag-chart-menu-hidden~.ag-chart-docked-container{max-width:0;overflow:hidden}.ag-chart-tabbed-menu{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.ag-chart-tabbed-menu-header{flex:none;-moz-user-select:none;-webkit-user-select:none;user-select:none;cursor:default}.ag-chart-tabbed-menu-body{display:flex;flex:1 1 auto;align-items:stretch;overflow:hidden}.ag-chart-tab{width:100%;overflow:hidden;overflow-y:auto}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{position:relative;flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden}.ag-chart-settings-nav-bar{display:flex;align-items:center;width:100%;height:30px;padding:0 10px;-moz-user-select:none;-webkit-user-select:none;user-select:none}.ag-chart-settings-card-selector{display:flex;align-items:center;justify-content:space-around;flex:1 1 auto;height:100%;padding:0 10px}.ag-chart-settings-card-item{cursor:pointer;width:10px;height:10px;background-color:#000;position:relative}.ag-chart-settings-card-item.ag-not-selected{opacity:.2}.ag-chart-settings-card-item:before{content:" ";display:block;position:absolute;background-color:transparent;left:50%;top:50%;margin-left:-10px;margin-top:-10px;width:20px;height:20px}.ag-chart-settings-prev,.ag-chart-settings-next{position:relative;flex:none}.ag-chart-settings-prev-button,.ag-chart-settings-next-button{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;opacity:0}.ag-chart-settings-mini-charts-container{position:relative;flex:1 1 auto;overflow-x:hidden;overflow-y:auto}.ag-chart-settings-mini-wrapper{position:absolute;top:0;left:0;display:flex;flex-direction:column;width:100%;min-height:100%;overflow:hidden}.ag-chart-settings-mini-wrapper.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}.ag-chart-mini-thumbnail{cursor:pointer}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;position:relative;-moz-user-select:none;-webkit-user-select:none;user-select:none;padding-bottom:16px}.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-empty-text{display:flex;top:0;width:100%;height:100%;align-items:center;justify-content:center;background-color:var(--ag-background-color)}.ag-chart .ag-chart-menu{display:none}.ag-chart-menu-hidden:hover .ag-chart-menu{display:block}.ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu{display:flex;flex-direction:row;top:8px;gap:20px;width:auto}.ag-ltr .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu{right:calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);justify-content:right}.ag-rtl .ag-chart .ag-chart-tool-panel-button-enable .ag-chart-menu{left:calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);justify-content:left}.ag-chart-menu-close{display:none}.ag-chart-tool-panel-button-enable .ag-chart-menu-close{position:absolute;top:50%;transition:transform .33s ease-in-out;padding:0;display:block;cursor:pointer;border:none}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close{right:0}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close{left:0}.ag-chart-tool-panel-button-enable .ag-chart-menu-close .ag-icon{padding:14px 5px 14px 2px;width:auto;height:auto}.ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{content:"";position:absolute;top:-40px;bottom:-40px}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{right:0}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{left:0}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{left:-10px}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:before{right:-10px}.ag-chart-tool-panel-button-enable .ag-icon-menu{display:none}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close{transform:translate(3px,-50%)}.ag-ltr .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover{transform:translateY(-50%)}.ag-ltr .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover{transform:translate(5px,-50%)}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close{transform:translate(-3px,-50%)}.ag-rtl .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover{transform:translateY(-50%)}.ag-rtl .ag-chart-menu-visible .ag-chart-tool-panel-button-enable .ag-chart-menu-close:hover{transform:translate(-5px,-50%)}.ag-charts-font-size-color{display:flex;align-self:stretch;justify-content:space-between}.ag-charts-data-group-item{position:relative}.ag-chart-menu{border-radius:var(--ag-card-radius);background:var(--ag-background-color)}.ag-chart-menu-icon{opacity:.5;margin:2px 0;cursor:pointer;border-radius:var(--ag-card-radius);color:var(--ag-secondary-foreground-color)}.ag-chart-menu-icon:hover{opacity:1}.ag-chart-mini-thumbnail{border:1px solid var(--ag-secondary-border-color);border-radius:5px}.ag-chart-mini-thumbnail.ag-selected{border-color:var(--ag-minichart-selected-chart-color)}.ag-chart-settings-card-item{background:var(--ag-foreground-color);width:8px;height:8px;border-radius:4px}.ag-chart-settings-card-item.ag-selected{background-color:var(--ag-minichart-selected-page-color)}.ag-chart-data-column-drag-handle{margin-left:var(--ag-grid-size)}.ag-charts-settings-group-title-bar,.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding) * .5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group){height:var(--ag-list-item-height)}.ag-charts-data-group-container .ag-list-item-hovered:after{content:"";position:absolute;left:0;right:0;height:1px;background-color:var(--ag-range-selection-border-color)}.ag-charts-data-group-container .ag-item-highlight-top:after{top:0}.ag-charts-data-group-container .ag-item-highlight-bottom:after{bottom:0}.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-grid-size) * 2);padding:var(--ag-grid-size)}.ag-charts-format-top-level-group-item{margin:var(--ag-grid-size) 0}.ag-charts-format-sub-level-group-container{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing))}.ag-charts-format-sub-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-settings-group-container{padding:var(--ag-grid-size);row-gap:8px;display:grid;grid-template-columns:60px 1fr 60px 1fr 60px}.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+1){grid-column:1}.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+2){grid-column:3}.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+3){grid-column:5}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0}.ag-chart-menu-panel{background-color:var(--ag-control-panel-background-color)}.ag-ltr .ag-chart-menu-panel{border-left:solid 1px var(--ag-border-color)}.ag-rtl .ag-chart-menu-panel{border-right:solid 1px var(--ag-border-color)}.ag-date-time-list-page-title-bar{display:flex}.ag-date-time-list-page-title{flex-grow:1;text-align:center}.ag-date-time-list-page-column-labels-row,.ag-date-time-list-page-entries-row{display:flex}.ag-date-time-list-page-column-label,.ag-date-time-list-page-entry{flex-basis:0;flex-grow:1}.ag-date-time-list-page-entry{cursor:pointer;text-align:center}.ag-date-time-list-page-column-label{text-align:center}.ag-advanced-filter-header{position:relative;display:flex;align-items:center;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-advanced-filter{display:flex;align-items:center;width:100%}.ag-advanced-filter-apply-button,.ag-advanced-filter-builder-button{line-height:normal;white-space:nowrap}.ag-ltr .ag-advanced-filter-apply-button,.ag-ltr .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-advanced-filter-apply-button,.ag-rtl .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-button{display:flex;align-items:center;border:0;background-color:unset;color:var(--ag-foreground-color);font-size:var(--ag-font-size);font-weight:600}.ag-advanced-filter-builder-button:hover:not(:disabled){background-color:var(--ag-row-hover-color)}.ag-advanced-filter-builder-button:not(:disabled){cursor:pointer}.ag-advanced-filter-builder-button-label{margin-left:var(--ag-grid-size)}.ag-advanced-filter-builder{-moz-user-select:none;-webkit-user-select:none;user-select:none;width:100%;background-color:var(--ag-control-panel-background-color);display:flex;flex-direction:column}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-list .ag-list-item-hovered:after{content:"";position:absolute;left:0;right:0;height:1px;background-color:var(--ag-range-selection-border-color)}.ag-advanced-filter-builder-list .ag-item-highlight-top:after{top:0}.ag-advanced-filter-builder-list .ag-item-highlight-bottom:after{bottom:0}.ag-advanced-filter-builder-button-panel{display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-item-wrapper{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;overflow:hidden;padding-left:calc(var(--ag-icon-size) / 2);padding-right:var(--ag-icon-size)}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root:before{top:50%;height:50%}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-top,.ag-advanced-filter-builder-item-tree-line-vertical-bottom{position:relative;height:100%;display:flex;align-items:center}.ag-advanced-filter-builder-item-tree-line-horizontal:before,.ag-advanced-filter-builder-item-tree-line-horizontal:after,.ag-advanced-filter-builder-item-tree-line-vertical:before,.ag-advanced-filter-builder-item-tree-line-vertical:after,.ag-advanced-filter-builder-item-tree-line-vertical-top:before,.ag-advanced-filter-builder-item-tree-line-vertical-top:after,.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before,.ag-advanced-filter-builder-item-tree-line-vertical-bottom:after{content:"";position:absolute;height:100%}.ag-advanced-filter-builder-item-tree-line-horizontal:after{height:50%;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));top:0;left:calc(var(--ag-icon-size) / 2);border-bottom:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical:before{width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);top:0;left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical-top:before{height:50%;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);top:0;left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{height:calc((100% - 1.5 * var(--ag-icon-size)) / 2);width:calc(var(--ag-icon-size) / 2);top:calc((100% + 1.5 * var(--ag-icon-size)) / 2);left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-condition{padding-top:var(--ag-grid-size);padding-bottom:var(--ag-grid-size)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-pill-wrapper,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-tree-lines{display:flex;align-items:center;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0px var(--ag-grid-size)}.ag-advanced-filter-builder-pill{position:relative;border-radius:var(--ag-border-radius);padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);min-height:calc(100% - var(--ag-grid-size) * 3);min-width:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-pill .ag-picker-field-display{margin-right:var(--ag-grid-size)}.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty{color:var(--ag-disabled-foreground-color)}.ag-advanced-filter-builder-pill:focus-visible{outline:none}.ag-advanced-filter-builder-pill:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:-4px;left:-4px;display:block;width:calc(100% + 8px);height:calc(100% + 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-builder-item-button:focus-visible{outline:none}.ag-advanced-filter-builder-item-button:focus-visible:after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:-4px;left:-4px;display:block;width:calc(100% + 8px);height:calc(100% + 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-builder-pill-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.ag-advanced-filter-builder-join-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-value-pill-color);cursor:text;max-width:140px}.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display{display:block}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-grid-size) * .5)}.ag-advanced-filter-builder-item-button{position:relative;cursor:pointer;color:var(--ag-secondary-foreground-color);opacity:50%}.ag-advanced-filter-builder-item-button-disabled{color:var(--ag-disabled-foreground-color);cursor:default}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-grid-size)}.ag-advanced-filter-builder-virtual-list-item{display:flex;cursor:default;height:var(--ag-list-item-height)}.ag-advanced-filter-builder-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button{opacity:100%}.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid{opacity:100%}.ag-advanced-filter-builder-invalid{margin:0 var(--ag-grid-size);color:var(--ag-invalid-color);cursor:default}.ag-input-field-input{width:100%;min-width:0}.ag-checkbox-input-wrapper{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-checkbox-background-color);border-radius:var(--ag-checkbox-border-radius);display:inline-block;vertical-align:middle;flex:none}.ag-checkbox-input-wrapper input{-webkit-appearance:none;opacity:0;width:100%;height:100%}.ag-checkbox-input-wrapper:focus-within,.ag-checkbox-input-wrapper:active{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-checkbox-input-wrapper.ag-disabled{opacity:.5}.ag-checkbox-input-wrapper:after{content:var(--ag-icon-font-code-checkbox-unchecked, "");color:var(--ag-checkbox-unchecked-color);display:var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper.ag-checked:after{content:var(--ag-icon-font-code-checkbox-checked, "");color:var(--ag-checkbox-checked-color);display:var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper.ag-indeterminate:after{content:var(--ag-icon-font-code-checkbox-indeterminate, "");color:var(--ag-checkbox-indeterminate-color);display:var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper:before{content:"";background:transparent center/contain no-repeat;position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, .9))}.ag-checkbox-input-wrapper.ag-checked:before{background-image:var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, .9))}.ag-checkbox-input-wrapper.ag-indeterminate:before{background-image:var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, .9))}.ag-toggle-button-input-wrapper{box-sizing:border-box;width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);max-width:var(--ag-toggle-button-width);height:var(--ag-toggle-button-height);background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height) * .5);position:relative;flex:none;border:var(--ag-toggle-button-border-width) solid;border-color:var(--ag-toggle-button-off-border-color)}.ag-toggle-button-input-wrapper input{opacity:0;height:100%;width:100%}.ag-toggle-button-input-wrapper:focus-within{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-toggle-button-input-wrapper.ag-disabled{opacity:.5}.ag-toggle-button-input-wrapper.ag-checked{background-color:var(--ag-toggle-button-on-background-color);border-color:var(--ag-toggle-button-on-border-color)}.ag-toggle-button-input-wrapper:before{content:" ";position:absolute;top:calc(0px - var(--ag-toggle-button-border-width));left:calc(0px - var(--ag-toggle-button-border-width));display:block;box-sizing:border-box;height:var(--ag-toggle-button-height);width:var(--ag-toggle-button-height);background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;transition:left .1s;border:var(--ag-toggle-button-border-width) solid;border-color:var(--ag-toggle-button-switch-border-color)}.ag-toggle-button-input-wrapper.ag-checked:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));border-color:var(--ag-toggle-button-on-border-color)}.ag-radio-button-input-wrapper{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-checkbox-background-color);border-radius:var(--ag-checkbox-border-radius);display:inline-block;vertical-align:middle;flex:none;border-radius:var(--ag-icon-size)}.ag-radio-button-input-wrapper input{-webkit-appearance:none;opacity:0;width:100%;height:100%}.ag-radio-button-input-wrapper:focus-within,.ag-radio-button-input-wrapper:active{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-radio-button-input-wrapper.ag-disabled{opacity:.5}.ag-radio-button-input-wrapper:after{content:var(--ag-icon-font-code-radio-button-off, "");color:var(--ag-checkbox-unchecked-color);display:var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-radio-button-input-wrapper.ag-checked:after{content:var(--ag-icon-font-code-radio-button-on, "");color:var(--ag-checkbox-checked-color);display:var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-radio-button-input-wrapper:before{content:"";background:transparent center/contain no-repeat;position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--ag-icon-image-radio-button-off, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, .9))}.ag-radio-button-input-wrapper.ag-checked:before{background-image:var(--ag-icon-image-radio-button-on, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, .9))}input[class^=ag-][type=range]{-webkit-appearance:none;width:100%;height:100%;background:none;overflow:visible}input[class^=ag-][type=range]::-webkit-slider-runnable-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius)}input[class^=ag-][type=range]::-moz-range-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius)}input[class^=ag-][type=range]::-ms-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius);color:transparent;width:calc(100% - 2px)}input[class^=ag-][type=range]::-webkit-slider-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size);transform:translateY(calc(var(--ag-icon-size) * -.5 + 1.5px))}input[class^=ag-][type=range]::-ms-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size)}input[class^=ag-][type=range]::-moz-ag-range-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size)}input[class^=ag-][type=range]:focus{outline:none}input[class^=ag-][type=range]:focus::-webkit-slider-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}input[class^=ag-][type=range]:focus::-ms-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}input[class^=ag-][type=range]:focus::-moz-ag-range-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}input[class^=ag-][type=range]:active::-webkit-slider-runnable-track{background-color:var(--ag-input-focus-border-color)}input[class^=ag-][type=range]:active::-moz-ag-range-track{background-color:var(--ag-input-focus-border-color)}input[class^=ag-][type=range]:active::-ms-track{background-color:var(--ag-input-focus-border-color)}input[class^=ag-][type=range]:disabled{opacity:.5}@font-face{font-family:agGridAlpine;src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABKwAAsAAAAAJ/QAABJeAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIlCBmAAi3AKqUyiKwE2AiQDgjwLgSAABCAFhEYHhTYb7iIzknRW3UVUT4rZ/yGByqEVyfAPCoGBVAeLaZy1NEUgHG5qbTJUKK65bieBiXNesm+H/kz+7nJIEpoE3+/3uufdH0AFMkIBQhFcAFDFl4Wp7lRoFLJTBairyjb/t/bs7+7IyjPxWfFndohimiiJSCNVMiXytQEpDCAvrmVSeEiuz2pkFBn71N4A+Wm1PT1ApaemJsEZHH5/+f6tHdlX0iFUPUx4GMD6rwoJUCiD0n6gbf7DMxAcRiRi0hbY+GfUHViJi8JIMPYbF2WBUbNyzToV4Wew7v2p+Q2nttnDYl+SMVtpv9Udg8AkSPCE8JUIINhyf8M0OkgJleAT1F9rn9lMECVwh0Do+Djd09O7O+/1mwWe9BJNJjTLkw0gWSBF/H9+qoBJ5ewpYHnuhCehSZhz9lwI2tDKfGldggS/ySJ7xa2c4LAIrw71XX9j8/dwVSZiNBZgxU9vjyOAYmM2fmTs/HXBtem9DVnY1aYBXmvH2vLiNPEwDZ7pGMQXnLspqOqmr35HOfc1nmWhOnqYTtK79FN1ACIqG+L4KNc3ptIoGJ3BZOFR6jSoyeZA2uEW/Kg0Uox9cJSCqQzHZrG6jlrCmF2LhltrBzr93NsyXa63ti00++IsHYRBsaTDZEVjphjJiWbL4WGcg0ePEm0cMZYdzU4EseHSeOJQtVjuje3dvVfRLidotoz6qjqNav9esYP8Ml9FVZfH5LTNn5BKVzYdaSwjmMG1CrNTV7WhSbfFeAub2LHLMM2GrgL3aGhX8qvT3fDYgM++Xm3jlN0bvZlKatdqU0v/7Kt6NBe6IXF61QdHXRhzpvHL2nvvu+feeOurH/5zuEIQJC1pHez9mmkTzOZF0UrjkOTu7rtmhwpXzGbWl/iZ0UxQbR0DrKpR+ciq6lSM+4P+jkyojXWwZ3FgdORyzEBMu8SodIFsDuRw+IF5oE+C+fXPQlDaYmGyrLapfFOZRs+iyBHP8i+qTHjaoa+FMmLF96bC77XDfZYj0YQ/q7GXrgpEzIYRnXelKdnYYH0yFobmHLKidfPkix3tKDYXr1+dR6VNiSzeH5uA8I4/qLpBQZOv0pzXLdEgt4b8ea1pNFbndOoZHKXvqEPtqvKouETvjjd2laxW6tIJnCC2pVD6AKq6PDv7nN3OBc5+xuWB7CR7gfuP33581xg8QIYkuLqjywujc36p/aWm/3E3N4Rs02aiq0Dh7AmoAXIgq5gvjnJAz34NRC69GuwPSol42MArH3371XF2hlqPvPH5V7yLv3KD/7pqXhMDo9Br7hqgLuvhQIYVj7LSJMOAgxuxbZxccXgIRtDpVkUSmY9fQFBIWERULNpgUkpaxp+OOXkFRSVlFVU1dQ1NLW0dXT19A0MjZWMTU0jYzNwCRD5cjeExobaRgfHOC+1DnRcOTvT2/Ov//379cL5v9NxFOzVLAemzCVeA2ls2BkyzNmCGjQCzbACYY+PAPOsEFtgFYJG1A0tsCFhm3cAqGwbW2CCwziaADdYLbLIeYItNATusA9hl/cAe6wL22SRwwM4Dh6wPOGKjwDE7B5z0uwh+ceiReAghCGEIEQhRCAkQEiEkQUiGkA9CfggFIBSEUAhCYQhFIBSFUAxCcQglIJSEUApCaQhlIJSFUA5CeQgVIFSEUAlCZQhVIFSFUA1CdQg1INSEUAtCbQh1INSFUA9CfQgNIDSE0AhCY9Zfpwn0maYQmkFobigJ/FpYYyMG1ZECIRVQjEtv+iWe4gl57ync886N+8wMZN1VvOwjGPddoCiRLhkjJQGOSC0zCeTItsw2iyxh/SLvgtJ8il0gJ/wYY+M0rrkojOGCVIpgfwTJPbXQCkiibIX7NB8LhaIBkX6OqBbFUhInXGmSpNmU9ROBQFIS67k0ImUIkQRKaCYRMMh5AJJM5oEYLkb8kaT3L1HTisBeByai2GnmmsjNFxz6MNQrKEIQLyDiGXfdKwg6T3aAKFjaBqf3MqpUx2ZspWOrQN2xha/6DcxNwTBIcAiRALxXKXIMtMiCWgXp5TnY6fw7sZhcW8Sl/cJHrZAggV7HmUPCfCtVSJ9eQIXQjyhbIghFzMaspsCd1mWc95N5N5B0fp4ET6nJLNttrVAhYtyrw21QJdpYs/D0DtHQRtF+iTATabO1Vkx0yCkWnNzH+CqLgjukEhj5Dz5LeJ429s68i8gziy+d5bIyjFRTqZzkh1ozVXK0AeyTY1bZhDLMAT2VcM3V0RGOouapsTJ4tF9M1/mTyagqmZS8rGgdmWi+tmqh91eSqSK3y+Qy0Ba1uO83b/tXIhiJW+IyB6MvILhvX7wXs/ItLPIIJ/eFsb7awLKW5WVXVq6UyqBSoY/iw8o8cN2kV6s5YRRKj9RfGpPwrPXanB5Ib7fMeVqWyrDleG+1b25Ig3OxLa7KREVTCBYs3FJSJeMOTGCrkclxAPBCsajQXl4uWvm8XTyvDBOS3ywUAYj2gz5Mzdd1W3OzOWVoWGiakvDx/+UsLBfV2BFlwEoVciJIaxMhchGXnzqrQoUPphaosiRUtKpNV6lsUiUvqinzUcpquc6iMFL5faOrX7eFgmZymN+2oBHxESZBiLhKUEzIVl2WXfeoLYhiCXIxYSA4gAM/NBEYXDhnYWAmiJEbPYrrlIWwZsqfu8UJJRcWKbx5Fu2UOdMSAd+7cebz9Z3A4nUc5UnyXAgf+nFoW41mW4XYhkM/bIRzuJJh+AVULSMILynK1qh3UE2aCkhIAlV+vn1xjaFHgCGIfZhgAqaWtFhmT5w5rOSkqlSq4pSdWIGrRNM0EF5uSq/bEaZB0/yNGSTjL2W5+lrbJWkGE7zmbB3yl2GWdzhGkPOfDBm1LPWa8jrCRM3brAd8pthufNS7ftis09wavUg/71VqOekod7ERmLcRry1HbfkNg5WVwR8zupXK4T+KDqlUQz9l96nVY38XktQnObzsqN7QbN5zh+GOW6ysJ2gxet1hQuV684o9ZhdYlyiTjpuanYnhPpyIEQfpnx1KRF4Crn5ZYhYNE4aBb70RgA/7Q9ReHuRBHsxDaq20Haw9traNVXla32uyb5afS2c2vKsGc0nj5/fwiQ5yq6xobiZdiLJtwZcFEwJdcLIemnrYnGJ0PSKmgGclPfWaGo9HbpLlQ/umhMHT2y/+emJwQylqXN3/8ScO4jDFV1CWAqHRybUkiBgbxdoEFxM9UWA2zwz4/X0nvi+4b99FnBecduy2w70lhbOV4mxaGMUIKdrbewWCDAFkcfUi2lPCosPIc5lG8x59/79mIgHOA45RbaICdh6Tmccu+Mt8d5/HLGD/5eMnu6ttn6ALEtvIfYBt8SoJVaJ4K3knqa6W1EiAtVdDcPBdcuj8JV8H+O44uxLMzRMTL13cvz8xKd7bRvHZ4hOeXEeoLQX0b46NDPfO9PfLioq0tMJCL+nBLl28NBs2NbX9HmbtAjHgYo3e3w7U2+9ENNFBsRipimqtUU0FWFb4sqsT69e3NwgU5OQLV3DhobwX4rRrLuDKcwEXXODCcwVFlF3jXYPnjIzMyMjMNA8mCJvDzsANAXPp/7LSqs0t0fM4zzLPQE+hJ1P9vMZ8t3jb9u/q2u9xSrxXuNFPuM39KoMd9ktmRmWB7/qizV3OVyGmliEeJvq9q+pCK2mGlotUp2OlTgKBdSOpZ45kbWVuYU+6+sKEuJ1Uv2bLfQNjvgmp3/IlcxD8zP6yMBFr15j3rVobnPSng8kq/ayxSAuL4Ysm3SHbvY+RFVbeYF5HrE4g6FjRl602dRgeybWi3vDDE/pMRDBtwGg8yVSn31yOCCfTsEAqJnRHjCo8dyBG44QX1uZWeGY70fy2EA+ABdI87Pvjba50M+RXGEfljO6jCM6zJrkmSQrolIWsfkcvbB+KTwLd+MUYmi8N8/6WLmXUrl63fcNqC66hscvrkExuZu8d9Dze0N/AOCFxQ3rtyX0m263MrBiCRn4d41sdvKGToQlsUbAqjf2o+744lkPXFTwe5pXPl0dV1Nslk72ZUTlnbyhKc6jr+SCPrqizTQ4Oik8sKcBfj0oLtA4vKGpmxqXGuY73MihxZHIshUHQy6+hpdtReSiNx0sMds2yCi+kqNgOiBVv+cNvebJ3uqSgyDo8+7TB/9gmV9TLo6ZZrkS2c1axTQ76Ru5dGDffJIy4wFzguaD7mCJjKrizqZyfqv7D7h9/glf0UyeFE7UJXH2OvkBhTk8v4SjEXAn3mJisicrxjybMLOE8Ig6bw1JwqVzxQQlXUoUcyVuxGZyp5rK54rdOOBiZD08WGGLNvjLdxOG9RjPeezDeleeFweeuNguuI8kjQfksVl65+UKQ62yuCzau4+QkNKl6/y4fYryTtMkXRQCbBHrCd+6vXgkTvbVRhJmh9AT6YnxqToU77R4zIoV2O9H54SCnpibjVxwuIgKH+1Vv2fTTNvOXaL8A9U6QiCOSiLjqzhwRcA5KGzPnVKkCYJnuO/HxPeg4mwX/2D9ppTifRfnami+r272e6M/2SaDEx1MSfLKDylwHlpZsXMsSTCEpKOpCEPjl+hnlx5SP52ddwEWuUhwOxBp/6/qtC3z69IdxclTSL0EhRbJ7N94mOKn1kkyzrqhg11gox+EHe/v4g3/FxpaV6GhbuQUnX1zX1vb334p/dvjvXJC8lMtzy00I1tZVxRZ6Fcb72ir2Ev9QWT5dXoZA0/Et0WRytB5iJ1uP/IUt5hIQ/wusex/EeqTzEO9MM8E/fH3d2NCE5vyk4SipU4Gi6ajiuy1e5NgYb1HldwrnC0IVXU/oFntW9Jn2sXrixvoT8IW2pInzhh5fpQ3367nc4w3ielzmi9trzQXtEjedFG/hNTbB9NOJFdUd//ixcSNrhDkeGe5SqXuGR851802WSu8t53hcD4msW/zVxhxmJp2eycz5KXnuPpOew/zJVx+eP4wuj4ws/46cSd+R/1zUWzbFjlER40tZ3ETIh380g+d8dhlz3Dn2Qw6VA//ISIkqBPIiYnQlwfmftL8TQm5urc3r15GRwUEODhERoIgQ5Yng6fS4TJGxWikXzp2bRDGIzGjZ9WBOYWjQnPk5Xvtz0tPxvPUtzR28NeFB0+0+nNWRzzHMES3Py42LGxmhHTkKBsu2Mm7niHtVVnZyR/jO4pqoYaLLy2ge6Rq8Q+F5m6cwSc7yeEuaP58exE2f//96H+A9mXiE+H7+Zkv5cCAAABlpYbsNcXGK5Na1SAnYvmmF0RzuKpuRU/YuNgD4/5GbkAdooz7k56JmgoQsTmuR8dhZD11ei0eOL8w2LEG0FK0Lkv8v7yIasCc0axb7NixwZrJu8i9iVKcMuUFkLUYawJ7RLLQJLHQCsh46I1pyPqsgCI4PK5X7EVPWThRyZlgtup5lHCoVaUjC57+7g74f7k3mG4a+xBMRDQBm6f99shlm7pfcDPDbJg7UlzQxs9tuj9t6EfHiKPG/APWvLytsPerdoLbaG0haCeCTQ24BLiKFFNJ2BQgnCSCJEwNDNSsxDT7osRT4gQGFOJFwZYYYbAQEOG194CANzTvGQxB+AHo0GwEMzU4yAklQAYVmD5gMveJQv5jKfNwO/8rB3sccCH6Dr1Gzdxb0df4Dl5Covemvg+7vFQhYC9h2WLZl8rcirnWcsH1JFHcUY2ozp3cw0o8i+W42c9ID9ybhmua9YoF1L8oCAn6D04GrIo0p5gq5/8ERCnzXEtK60bumNF4FFixAIGi1Bks9XEy8WyK7Tqt6LEGiXgoVlBBlSHeVw713wEi6N2bwsjszeXGOVvdMIXIeK6Nqju9LX4oNlKhQYwrTmMHsH0xzg8LafvhcFiLRWDyRTKUz2Vy+UCyVK9VavdFstTvdXn8wHI0n09l8wRRV0w3Tsh3XvQePnjx78erNJ5998dU33/3wc+1PH57BawmJtvRwmpdNvc2WCTIQG3NqlpOpCuZjSIvOzAd75blGIAsCjIG0wFlQRiWq8IHpmLjLwdGKt19gRSp7pklYGwGrTOdlYyaVsmn2tGleUTaLaeAr296ZlKwLj2p34YeuRF3GTVK45SqWGLFxxUWUn5CbLkw1q0hbEEwnW7GI8Y1ux9Y2kN/BWAQMK1CYVHcEla4bpVyIoibYp5ZOx5jmYJtcwA3CZi5qck1JdvLAFFItJ5zTN5O6oYok6pJzx54LUcPlR1ElJtgr92NCZ9OcLMET7YOVhHZupsAgDbObM2GAllS73uopA+3Upy4Bla9amig+uFMLk9+PI+uax4AIEjJXGNHow2ChewpV2dLEWa01AAA=);font-weight:400;font-style:normal}.ag-theme-alpine,.ag-theme-alpine-dark,.ag-theme-alpine-auto-dark{--ag-alpine-active-color: #2196f3;--ag-selected-row-background-color: rgba(33, 150, 243, .3);--ag-row-hover-color: rgba(33, 150, 243, .1);--ag-column-hover-color: rgba(33, 150, 243, .1);--ag-input-focus-border-color: rgba(33, 150, 243, .4);--ag-range-selection-background-color: rgba(33, 150, 243, .2);--ag-range-selection-background-color-2: rgba(33, 150, 243, .36);--ag-range-selection-background-color-3: rgba(33, 150, 243, .49);--ag-range-selection-background-color-4: rgba(33, 150, 243, .59);--ag-background-color: #fff;--ag-foreground-color: #181d1f;--ag-border-color: #babfc7;--ag-secondary-border-color: #dde2eb;--ag-header-background-color: #f8f8f8;--ag-tooltip-background-color: #f8f8f8;--ag-odd-row-background-color: #fcfcfc;--ag-control-panel-background-color: #f8f8f8;--ag-subheader-background-color: #fff;--ag-invalid-color: #e02525;--ag-checkbox-unchecked-color: #999;--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-checkbox-background-color: var(--ag-background-color);--ag-checkbox-checked-color: var(--ag-alpine-active-color);--ag-range-selection-border-color: var(--ag-alpine-active-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-input-border-color: var(--ag-border-color);--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-input-focus-box-shadow: 0 0 2px .1rem var(--ag-input-focus-border-color);--ag-panel-background-color: var(--ag-header-background-color);--ag-menu-background-color: var(--ag-header-background-color);--ag-disabled-foreground-color: rgba(24, 29, 31, .5);--ag-chip-background-color: rgba(24, 29, 31, .07);--ag-input-disabled-border-color: rgba(186, 191, 199, .3);--ag-input-disabled-background-color: rgba(186, 191, 199, .15);--ag-borders: solid 1px;--ag-border-radius: 3px;--ag-borders-side-button: none;--ag-side-button-selected-background-color: transparent;--ag-header-column-resize-handle-display: block;--ag-header-column-resize-handle-width: 2px;--ag-header-column-resize-handle-height: 30%;--ag-grid-size: 6px;--ag-icon-size: 16px;--ag-row-height: calc(var(--ag-grid-size) * 7);--ag-header-height: calc(var(--ag-grid-size) * 8);--ag-list-item-height: calc(var(--ag-grid-size) * 4);--ag-column-select-indent-size: var(--ag-icon-size);--ag-set-filter-indent-size: var(--ag-icon-size);--ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);--ag-toggle-button-height: 18px;--ag-toggle-button-width: 28px;--ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ag-font-size: 13px;--ag-icon-font-family: agGridAlpine;--ag-selected-tab-underline-color: var(--ag-alpine-active-color);--ag-selected-tab-underline-width: 2px;--ag-selected-tab-underline-transition-speed: .3s;--ag-tab-min-width: 240px;--ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, .4);--ag-popup-shadow: var(--ag-card-shadow);--ag-side-bar-panel-width: 250px}.ag-theme-alpine-dark{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, .5);--ag-modal-overlay-background-color: rgba(24, 29, 31, .66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;--ag-input-focus-box-shadow: 0 0 2px .5px rgba(255, 255, 255, .5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, .5);--ag-chip-background-color: rgba(255, 255, 255, .07);--ag-input-disabled-border-color: rgba(104, 104, 110, .3);--ag-input-disabled-background-color: rgba(104, 104, 110, .07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;color-scheme:dark}.ag-theme-alpine .ag-filter-toolpanel-header,.ag-theme-alpine .ag-filter-toolpanel-search,.ag-theme-alpine .ag-status-bar,.ag-theme-alpine .ag-header-row,.ag-theme-alpine .ag-panel-title-bar-title,.ag-theme-alpine .ag-multi-filter-group-title-bar,.ag-theme-alpine-dark .ag-filter-toolpanel-header,.ag-theme-alpine-dark .ag-filter-toolpanel-search,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-dark .ag-header-row,.ag-theme-alpine-dark .ag-panel-title-bar-title,.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,.ag-theme-alpine-auto-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-header-row,.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar{font-weight:700;color:var(--ag-header-foreground-color)}.ag-theme-alpine .ag-row,.ag-theme-alpine-dark .ag-row,.ag-theme-alpine-auto-dark .ag-row{font-size:calc(var(--ag-font-size) + 1px)}.ag-theme-alpine input[class^=ag-]:not([type]),.ag-theme-alpine input[class^=ag-][type=text],.ag-theme-alpine input[class^=ag-][type=number],.ag-theme-alpine input[class^=ag-][type=tel],.ag-theme-alpine input[class^=ag-][type=date],.ag-theme-alpine input[class^=ag-][type=datetime-local],.ag-theme-alpine textarea[class^=ag-],.ag-theme-alpine-dark input[class^=ag-]:not([type]),.ag-theme-alpine-dark input[class^=ag-][type=text],.ag-theme-alpine-dark input[class^=ag-][type=number],.ag-theme-alpine-dark input[class^=ag-][type=tel],.ag-theme-alpine-dark input[class^=ag-][type=date],.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark textarea[class^=ag-],.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark input[class^=ag-][type=text],.ag-theme-alpine-auto-dark input[class^=ag-][type=number],.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark input[class^=ag-][type=date],.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark textarea[class^=ag-]{min-height:calc(var(--ag-grid-size) * 4);border-radius:var(--ag-border-radius)}.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-ltr textarea[class^=ag-],.ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-ltr textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-]{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-rtl textarea[class^=ag-],.ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-rtl textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-]{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-tab,.ag-theme-alpine-dark .ag-tab,.ag-theme-alpine-auto-dark .ag-tab{padding:calc(var(--ag-grid-size) * 1.5);transition:color .4s;flex:1 1 auto}.ag-theme-alpine .ag-tab-selected,.ag-theme-alpine-dark .ag-tab-selected,.ag-theme-alpine-auto-dark .ag-tab-selected{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-menu,.ag-theme-alpine-dark .ag-menu,.ag-theme-alpine-auto-dark .ag-menu,.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select{background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-menu-header,.ag-theme-alpine-dark .ag-menu-header,.ag-theme-alpine-auto-dark .ag-menu-header{background-color:var(--ag-control-panel-background-color);padding-top:1px}.ag-theme-alpine .ag-tabs-header,.ag-theme-alpine-dark .ag-tabs-header,.ag-theme-alpine-auto-dark .ag-tabs-header{border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-theme-alpine .ag-charts-settings-group-title-bar,.ag-theme-alpine .ag-charts-data-group-title-bar,.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar{padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);line-height:calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px)}.ag-theme-alpine .ag-chart-mini-thumbnail,.ag-theme-alpine-dark .ag-chart-mini-thumbnail,.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail{background-color:var(--ag-background-color)}.ag-theme-alpine .ag-chart-settings-nav-bar,.ag-theme-alpine-dark .ag-chart-settings-nav-bar,.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar{margin-top:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar{padding-left:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar{padding-right:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group,.ag-theme-alpine-dark .ag-charts-format-sub-level-group,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group{border-left:dashed 1px;border-left-color:var(--ag-border-color);padding-left:var(--ag-grid-size);margin-bottom:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar{padding-top:0;padding-bottom:0;background:none;font-weight:700}.ag-theme-alpine .ag-charts-format-sub-level-group-container,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container{padding-bottom:0}.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child{margin-bottom:0}.ag-theme-alpine.ag-dnd-ghost,.ag-theme-alpine-dark.ag-dnd-ghost,.ag-theme-alpine-auto-dark.ag-dnd-ghost{font-size:calc(var(--ag-font-size) - 1px);font-weight:700}.ag-theme-alpine .ag-side-buttons,.ag-theme-alpine-dark .ag-side-buttons,.ag-theme-alpine-auto-dark .ag-side-buttons{width:calc(var(--ag-grid-size) * 5)}.ag-theme-alpine .ag-standard-button,.ag-theme-alpine-dark .ag-standard-button,.ag-theme-alpine-auto-dark .ag-standard-button{font-family:inherit;-moz-appearance:none;appearance:none;-webkit-appearance:none;border-radius:var(--ag-border-radius);border:1px solid;border-color:var(--ag-alpine-active-color);color:var(--ag-alpine-active-color);background-color:var(--ag-background-color);font-weight:600;padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-standard-button:hover,.ag-theme-alpine-dark .ag-standard-button:hover,.ag-theme-alpine-auto-dark .ag-standard-button:hover{border-color:var(--ag-alpine-active-color);background-color:var(--ag-row-hover-color)}.ag-theme-alpine .ag-standard-button:active,.ag-theme-alpine-dark .ag-standard-button:active,.ag-theme-alpine-auto-dark .ag-standard-button:active{border-color:var(--ag-alpine-active-color);background-color:var(--ag-alpine-active-color);color:var(--ag-background-color)}.ag-theme-alpine .ag-standard-button:disabled,.ag-theme-alpine-dark .ag-standard-button:disabled,.ag-theme-alpine-auto-dark .ag-standard-button:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-theme-alpine .ag-column-drop-vertical,.ag-theme-alpine-dark .ag-column-drop-vertical,.ag-theme-alpine-auto-dark .ag-column-drop-vertical{min-height:75px}.ag-theme-alpine .ag-column-drop-vertical-title-bar,.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar{padding:calc(var(--ag-grid-size) * 2);padding-bottom:0}.ag-theme-alpine .ag-column-drop-vertical-empty-message,.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message{display:flex;align-items:center;border:dashed 1px;border-color:var(--ag-border-color);margin:calc(var(--ag-grid-size) * 2);padding:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-column-drop-empty-message,.ag-theme-alpine-dark .ag-column-drop-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-empty-message{color:var(--ag-foreground-color);opacity:.75}.ag-theme-alpine .ag-status-bar,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-status-bar{font-weight:400}.ag-theme-alpine .ag-status-name-value-value,.ag-theme-alpine-dark .ag-status-name-value-value,.ag-theme-alpine-auto-dark .ag-status-name-value-value,.ag-theme-alpine .ag-paging-number,.ag-theme-alpine .ag-paging-row-summary-panel-number,.ag-theme-alpine-dark .ag-paging-number,.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,.ag-theme-alpine-auto-dark .ag-paging-number,.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number{font-weight:700}.ag-theme-alpine .ag-column-drop-cell-button,.ag-theme-alpine-dark .ag-column-drop-cell-button,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button{opacity:.5}.ag-theme-alpine .ag-column-drop-cell-button:hover,.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover{opacity:.75}.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip{opacity:.35}.ag-theme-alpine .ag-header-cell-menu-button:hover,.ag-theme-alpine .ag-header-cell-filter-button:hover,.ag-theme-alpine .ag-side-button-button:hover,.ag-theme-alpine .ag-tab:hover,.ag-theme-alpine .ag-panel-title-bar-button:hover,.ag-theme-alpine .ag-header-expand-icon:hover,.ag-theme-alpine .ag-column-group-icons:hover,.ag-theme-alpine .ag-set-filter-group-icons:hover,.ag-theme-alpine .ag-group-expanded .ag-icon:hover,.ag-theme-alpine .ag-group-contracted .ag-icon:hover,.ag-theme-alpine .ag-chart-settings-prev:hover,.ag-theme-alpine .ag-chart-settings-next:hover,.ag-theme-alpine .ag-group-title-bar-icon:hover,.ag-theme-alpine .ag-column-select-header-icon:hover,.ag-theme-alpine .ag-floating-filter-button-button:hover,.ag-theme-alpine .ag-filter-toolpanel-expand:hover,.ag-theme-alpine .ag-chart-menu-icon:hover,.ag-theme-alpine .ag-chart-menu-close:hover,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-dark .ag-side-button-button:hover,.ag-theme-alpine-dark .ag-tab:hover,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-dark .ag-header-expand-icon:hover,.ag-theme-alpine-dark .ag-column-group-icons:hover,.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-dark .ag-chart-settings-next:hover,.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-dark .ag-chart-menu-close:hover,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-auto-dark .ag-side-button-button:hover,.ag-theme-alpine-auto-dark .ag-tab:hover,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-close:hover{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine .ag-side-button-button:hover .ag-icon,.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon{color:inherit}.ag-theme-alpine .ag-filter-active .ag-icon-filter,.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-menu-close,.ag-theme-alpine-dark .ag-chart-menu-close,.ag-theme-alpine-auto-dark .ag-chart-menu-close{background:var(--ag-background-color)}.ag-theme-alpine .ag-chart-menu-close:hover .ag-icon,.ag-theme-alpine-dark .ag-chart-menu-close:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-chart-menu-close:hover .ag-icon{border-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-menu-close .ag-icon,.ag-theme-alpine-dark .ag-chart-menu-close .ag-icon,.ag-theme-alpine-auto-dark .ag-chart-menu-close .ag-icon{background:var(--ag-header-background-color);border:1px solid var(--ag-border-color);border-right:none}.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button{margin-left:calc(var(--ag-grid-size) * 2);margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button{margin-right:calc(var(--ag-grid-size) * 2);margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter{border:none;background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter{border-left:dashed 1px;border-left-color:var(--ag-border-color);margin-left:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter{border-right:dashed 1px;border-right-color:var(--ag-border-color);margin-right:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-set-filter-list,.ag-theme-alpine-dark .ag-set-filter-list,.ag-theme-alpine-auto-dark .ag-set-filter-list{padding-top:calc(var(--ag-grid-size) * .5);padding-bottom:calc(var(--ag-grid-size) * .5)}.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container{min-height:150px}.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-alpine-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-alpine-auto-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height{padding-top:60px}.ag-theme-alpine .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current{background-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-advanced-filter-builder-button,.ag-theme-alpine-dark .ag-advanced-filter-builder-button,.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button{padding:var(--ag-grid-size);font-weight:600}@keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@keyframes notyf-fadeinleft{0%{opacity:0;transform:translate(25%)}to{opacity:1;transform:translate(0)}}@keyframes notyf-fadeoutright{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(25%)}}@keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@keyframes ripple{0%{transform:scale(0) translateY(-45%) translate(13%)}to{transform:scale(1) translateY(-45%) translate(13%)}}.notyf{position:fixed;top:0;left:0;height:100%;width:100%;color:#fff;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;pointer-events:none;box-sizing:border-box;padding:20px}.notyf__icon--error,.notyf__icon--success{height:21px;width:21px;background:#fff;border-radius:50%;display:block;margin:0 auto;position:relative}.notyf__icon--error:after,.notyf__icon--error:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px;left:9px;height:12px;top:5px}.notyf__icon--error:after{transform:rotate(-45deg)}.notyf__icon--error:before{transform:rotate(45deg)}.notyf__icon--success:after,.notyf__icon--success:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px}.notyf__icon--success:after{height:6px;transform:rotate(-45deg);top:9px;left:6px}.notyf__icon--success:before{height:11px;transform:rotate(45deg);top:5px;left:10px}.notyf__toast{display:block;overflow:hidden;pointer-events:auto;animation:notyf-fadeinup .3s ease-in forwards;box-shadow:0 3px 7px #00000040;position:relative;padding:0 15px;border-radius:2px;max-width:300px;transform:translateY(25%);box-sizing:border-box;flex-shrink:0}.notyf__toast--disappear{transform:translateY(0);animation:notyf-fadeoutdown .3s forwards;animation-delay:.25s}.notyf__toast--disappear .notyf__icon,.notyf__toast--disappear .notyf__message{animation:notyf-fadeoutdown .3s forwards;opacity:1;transform:translateY(0)}.notyf__toast--disappear .notyf__dismiss{animation:notyf-fadeoutright .3s forwards;opacity:1;transform:translate(0)}.notyf__toast--disappear .notyf__message{animation-delay:.05s}.notyf__toast--upper{margin-bottom:20px}.notyf__toast--lower{margin-top:20px}.notyf__toast--dismissible .notyf__wrapper{padding-right:30px}.notyf__ripple{height:400px;width:400px;position:absolute;transform-origin:bottom right;right:0;top:0;border-radius:50%;transform:scale(0) translateY(-51%) translate(13%);z-index:5;animation:ripple .4s ease-out forwards}.notyf__wrapper{display:flex;align-items:center;padding-top:17px;padding-bottom:17px;padding-right:15px;border-radius:3px;position:relative;z-index:10}.notyf__icon{width:22px;text-align:center;font-size:1.3em;opacity:0;animation:notyf-fadeinup .3s forwards;animation-delay:.3s;margin-right:13px}.notyf__dismiss{position:absolute;top:0;right:0;height:100%;width:26px;margin-right:-15px;animation:notyf-fadeinleft .3s forwards;animation-delay:.35s;opacity:0}.notyf__dismiss-btn{background-color:#00000040;border:none;cursor:pointer;transition:opacity .2s ease,background-color .2s ease;outline:none;opacity:.35;height:100%;width:100%}.notyf__dismiss-btn:after,.notyf__dismiss-btn:before{content:"";background:#fff;height:12px;width:2px;border-radius:3px;position:absolute;left:calc(50% - 1px);top:calc(50% - 5px)}.notyf__dismiss-btn:after{transform:rotate(-45deg)}.notyf__dismiss-btn:before{transform:rotate(45deg)}.notyf__dismiss-btn:hover{opacity:.7;background-color:#00000026}.notyf__dismiss-btn:active{opacity:.8}.notyf__message{vertical-align:middle;position:relative;opacity:0;animation:notyf-fadeinup .3s forwards;animation-delay:.25s;line-height:1.5em}@media only screen and (max-width:480px){.notyf{padding:0}.notyf__ripple{height:600px;width:600px;animation-duration:.5s}.notyf__toast{max-width:none;border-radius:0;box-shadow:0 -2px 7px #00000021;width:100%}.notyf__dismiss{width:56px}}.ts-search-input{padding-left:calc(var(--input-padding) + 24px + var(--spacing-sm))!important}.ts-search-icon{pointer-events:none;position:absolute;top:var(--input-padding);bottom:var(--input-padding);left:var(--input-padding);display:flex;align-items:center;color:var(--body-text-color)}.ts-btn-action{margin:0!important}.ts-btn-action:first-child{border-top-left-radius:var(--button-small-radius);border-bottom-left-radius:var(--button-small-radius)}.ts-btn-action:last-child{border-top-right-radius:var(--button-small-radius);border-bottom-right-radius:var(--button-small-radius)}@keyframes blink{0%,to{color:var(--color-accent)}50%{color:var(--color-accent-soft)}}.ag-cell.task-running{color:var(--color-accent);animation:1s blink ease infinite}.ag-cell.task-failed{color:var(--error-text-color)}.ag-cell.task-interrupted{color:var(--body-text-color-subdued)}.\!visible{visibility:visible!important}.visible{visibility:visible}.mt-1{margin-top:.25rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.cursor-pointer{cursor:pointer}.pt-3{padding-top:.75rem}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@font-face{font-family:agGridAlpine;src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABKwAAsAAAAAJ/QAABJeAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIlCBmAAi3AKqUyiKwE2AiQDgjwLgSAABCAFhEYHhTYb7iIzknRW3UVUT4rZ/yGByqEVyfAPCoGBVAeLaZy1NEUgHG5qbTJUKK65bieBiXNesm+H/kz+7nJIEpoE3+/3uufdH0AFMkIBQhFcAFDFl4Wp7lRoFLJTBairyjb/t/bs7+7IyjPxWfFndohimiiJSCNVMiXytQEpDCAvrmVSeEiuz2pkFBn71N4A+Wm1PT1ApaemJsEZHH5/+f6tHdlX0iFUPUx4GMD6rwoJUCiD0n6gbf7DMxAcRiRi0hbY+GfUHViJi8JIMPYbF2WBUbNyzToV4Wew7v2p+Q2nttnDYl+SMVtpv9Udg8AkSPCE8JUIINhyf8M0OkgJleAT1F9rn9lMECVwh0Do+Djd09O7O+/1mwWe9BJNJjTLkw0gWSBF/H9+qoBJ5ewpYHnuhCehSZhz9lwI2tDKfGldggS/ySJ7xa2c4LAIrw71XX9j8/dwVSZiNBZgxU9vjyOAYmM2fmTs/HXBtem9DVnY1aYBXmvH2vLiNPEwDZ7pGMQXnLspqOqmr35HOfc1nmWhOnqYTtK79FN1ACIqG+L4KNc3ptIoGJ3BZOFR6jSoyeZA2uEW/Kg0Uox9cJSCqQzHZrG6jlrCmF2LhltrBzr93NsyXa63ti00++IsHYRBsaTDZEVjphjJiWbL4WGcg0ePEm0cMZYdzU4EseHSeOJQtVjuje3dvVfRLidotoz6qjqNav9esYP8Ml9FVZfH5LTNn5BKVzYdaSwjmMG1CrNTV7WhSbfFeAub2LHLMM2GrgL3aGhX8qvT3fDYgM++Xm3jlN0bvZlKatdqU0v/7Kt6NBe6IXF61QdHXRhzpvHL2nvvu+feeOurH/5zuEIQJC1pHez9mmkTzOZF0UrjkOTu7rtmhwpXzGbWl/iZ0UxQbR0DrKpR+ciq6lSM+4P+jkyojXWwZ3FgdORyzEBMu8SodIFsDuRw+IF5oE+C+fXPQlDaYmGyrLapfFOZRs+iyBHP8i+qTHjaoa+FMmLF96bC77XDfZYj0YQ/q7GXrgpEzIYRnXelKdnYYH0yFobmHLKidfPkix3tKDYXr1+dR6VNiSzeH5uA8I4/qLpBQZOv0pzXLdEgt4b8ea1pNFbndOoZHKXvqEPtqvKouETvjjd2laxW6tIJnCC2pVD6AKq6PDv7nN3OBc5+xuWB7CR7gfuP33581xg8QIYkuLqjywujc36p/aWm/3E3N4Rs02aiq0Dh7AmoAXIgq5gvjnJAz34NRC69GuwPSol42MArH3371XF2hlqPvPH5V7yLv3KD/7pqXhMDo9Br7hqgLuvhQIYVj7LSJMOAgxuxbZxccXgIRtDpVkUSmY9fQFBIWERULNpgUkpaxp+OOXkFRSVlFVU1dQ1NLW0dXT19A0MjZWMTU0jYzNwCRD5cjeExobaRgfHOC+1DnRcOTvT2/Ov//379cL5v9NxFOzVLAemzCVeA2ls2BkyzNmCGjQCzbACYY+PAPOsEFtgFYJG1A0tsCFhm3cAqGwbW2CCwziaADdYLbLIeYItNATusA9hl/cAe6wL22SRwwM4Dh6wPOGKjwDE7B5z0uwh+ceiReAghCGEIEQhRCAkQEiEkQUiGkA9CfggFIBSEUAhCYQhFIBSFUAxCcQglIJSEUApCaQhlIJSFUA5CeQgVIFSEUAlCZQhVIFSFUA1CdQg1INSEUAtCbQh1INSFUA9CfQgNIDSE0AhCY9Zfpwn0maYQmkFobigJ/FpYYyMG1ZECIRVQjEtv+iWe4gl57ync886N+8wMZN1VvOwjGPddoCiRLhkjJQGOSC0zCeTItsw2iyxh/SLvgtJ8il0gJ/wYY+M0rrkojOGCVIpgfwTJPbXQCkiibIX7NB8LhaIBkX6OqBbFUhInXGmSpNmU9ROBQFIS67k0ImUIkQRKaCYRMMh5AJJM5oEYLkb8kaT3L1HTisBeByai2GnmmsjNFxz6MNQrKEIQLyDiGXfdKwg6T3aAKFjaBqf3MqpUx2ZspWOrQN2xha/6DcxNwTBIcAiRALxXKXIMtMiCWgXp5TnY6fw7sZhcW8Sl/cJHrZAggV7HmUPCfCtVSJ9eQIXQjyhbIghFzMaspsCd1mWc95N5N5B0fp4ET6nJLNttrVAhYtyrw21QJdpYs/D0DtHQRtF+iTATabO1Vkx0yCkWnNzH+CqLgjukEhj5Dz5LeJ429s68i8gziy+d5bIyjFRTqZzkh1ozVXK0AeyTY1bZhDLMAT2VcM3V0RGOouapsTJ4tF9M1/mTyagqmZS8rGgdmWi+tmqh91eSqSK3y+Qy0Ba1uO83b/tXIhiJW+IyB6MvILhvX7wXs/ItLPIIJ/eFsb7awLKW5WVXVq6UyqBSoY/iw8o8cN2kV6s5YRRKj9RfGpPwrPXanB5Ib7fMeVqWyrDleG+1b25Ig3OxLa7KREVTCBYs3FJSJeMOTGCrkclxAPBCsajQXl4uWvm8XTyvDBOS3ywUAYj2gz5Mzdd1W3OzOWVoWGiakvDx/+UsLBfV2BFlwEoVciJIaxMhchGXnzqrQoUPphaosiRUtKpNV6lsUiUvqinzUcpquc6iMFL5faOrX7eFgmZymN+2oBHxESZBiLhKUEzIVl2WXfeoLYhiCXIxYSA4gAM/NBEYXDhnYWAmiJEbPYrrlIWwZsqfu8UJJRcWKbx5Fu2UOdMSAd+7cebz9Z3A4nUc5UnyXAgf+nFoW41mW4XYhkM/bIRzuJJh+AVULSMILynK1qh3UE2aCkhIAlV+vn1xjaFHgCGIfZhgAqaWtFhmT5w5rOSkqlSq4pSdWIGrRNM0EF5uSq/bEaZB0/yNGSTjL2W5+lrbJWkGE7zmbB3yl2GWdzhGkPOfDBm1LPWa8jrCRM3brAd8pthufNS7ftis09wavUg/71VqOekod7ERmLcRry1HbfkNg5WVwR8zupXK4T+KDqlUQz9l96nVY38XktQnObzsqN7QbN5zh+GOW6ysJ2gxet1hQuV684o9ZhdYlyiTjpuanYnhPpyIEQfpnx1KRF4Crn5ZYhYNE4aBb70RgA/7Q9ReHuRBHsxDaq20Haw9traNVXla32uyb5afS2c2vKsGc0nj5/fwiQ5yq6xobiZdiLJtwZcFEwJdcLIemnrYnGJ0PSKmgGclPfWaGo9HbpLlQ/umhMHT2y/+emJwQylqXN3/8ScO4jDFV1CWAqHRybUkiBgbxdoEFxM9UWA2zwz4/X0nvi+4b99FnBecduy2w70lhbOV4mxaGMUIKdrbewWCDAFkcfUi2lPCosPIc5lG8x59/79mIgHOA45RbaICdh6Tmccu+Mt8d5/HLGD/5eMnu6ttn6ALEtvIfYBt8SoJVaJ4K3knqa6W1EiAtVdDcPBdcuj8JV8H+O44uxLMzRMTL13cvz8xKd7bRvHZ4hOeXEeoLQX0b46NDPfO9PfLioq0tMJCL+nBLl28NBs2NbX9HmbtAjHgYo3e3w7U2+9ENNFBsRipimqtUU0FWFb4sqsT69e3NwgU5OQLV3DhobwX4rRrLuDKcwEXXODCcwVFlF3jXYPnjIzMyMjMNA8mCJvDzsANAXPp/7LSqs0t0fM4zzLPQE+hJ1P9vMZ8t3jb9u/q2u9xSrxXuNFPuM39KoMd9ktmRmWB7/qizV3OVyGmliEeJvq9q+pCK2mGlotUp2OlTgKBdSOpZ45kbWVuYU+6+sKEuJ1Uv2bLfQNjvgmp3/IlcxD8zP6yMBFr15j3rVobnPSng8kq/ayxSAuL4Ysm3SHbvY+RFVbeYF5HrE4g6FjRl602dRgeybWi3vDDE/pMRDBtwGg8yVSn31yOCCfTsEAqJnRHjCo8dyBG44QX1uZWeGY70fy2EA+ABdI87Pvjba50M+RXGEfljO6jCM6zJrkmSQrolIWsfkcvbB+KTwLd+MUYmi8N8/6WLmXUrl63fcNqC66hscvrkExuZu8d9Dze0N/AOCFxQ3rtyX0m263MrBiCRn4d41sdvKGToQlsUbAqjf2o+744lkPXFTwe5pXPl0dV1Nslk72ZUTlnbyhKc6jr+SCPrqizTQ4Oik8sKcBfj0oLtA4vKGpmxqXGuY73MihxZHIshUHQy6+hpdtReSiNx0sMds2yCi+kqNgOiBVv+cNvebJ3uqSgyDo8+7TB/9gmV9TLo6ZZrkS2c1axTQ76Ru5dGDffJIy4wFzguaD7mCJjKrizqZyfqv7D7h9/glf0UyeFE7UJXH2OvkBhTk8v4SjEXAn3mJisicrxjybMLOE8Ig6bw1JwqVzxQQlXUoUcyVuxGZyp5rK54rdOOBiZD08WGGLNvjLdxOG9RjPeezDeleeFweeuNguuI8kjQfksVl65+UKQ62yuCzau4+QkNKl6/y4fYryTtMkXRQCbBHrCd+6vXgkTvbVRhJmh9AT6YnxqToU77R4zIoV2O9H54SCnpibjVxwuIgKH+1Vv2fTTNvOXaL8A9U6QiCOSiLjqzhwRcA5KGzPnVKkCYJnuO/HxPeg4mwX/2D9ppTifRfnami+r272e6M/2SaDEx1MSfLKDylwHlpZsXMsSTCEpKOpCEPjl+hnlx5SP52ddwEWuUhwOxBp/6/qtC3z69IdxclTSL0EhRbJ7N94mOKn1kkyzrqhg11gox+EHe/v4g3/FxpaV6GhbuQUnX1zX1vb334p/dvjvXJC8lMtzy00I1tZVxRZ6Fcb72ir2Ev9QWT5dXoZA0/Et0WRytB5iJ1uP/IUt5hIQ/wusex/EeqTzEO9MM8E/fH3d2NCE5vyk4SipU4Gi6ajiuy1e5NgYb1HldwrnC0IVXU/oFntW9Jn2sXrixvoT8IW2pInzhh5fpQ3367nc4w3ielzmi9trzQXtEjedFG/hNTbB9NOJFdUd//ixcSNrhDkeGe5SqXuGR851802WSu8t53hcD4msW/zVxhxmJp2eycz5KXnuPpOew/zJVx+eP4wuj4ws/46cSd+R/1zUWzbFjlER40tZ3ETIh380g+d8dhlz3Dn2Qw6VA//ISIkqBPIiYnQlwfmftL8TQm5urc3r15GRwUEODhERoIgQ5Yng6fS4TJGxWikXzp2bRDGIzGjZ9WBOYWjQnPk5Xvtz0tPxvPUtzR28NeFB0+0+nNWRzzHMES3Py42LGxmhHTkKBsu2Mm7niHtVVnZyR/jO4pqoYaLLy2ge6Rq8Q+F5m6cwSc7yeEuaP58exE2f//96H+A9mXiE+H7+Zkv5cCAAABlpYbsNcXGK5Na1SAnYvmmF0RzuKpuRU/YuNgD4/5GbkAdooz7k56JmgoQsTmuR8dhZD11ei0eOL8w2LEG0FK0Lkv8v7yIasCc0axb7NixwZrJu8i9iVKcMuUFkLUYawJ7RLLQJLHQCsh46I1pyPqsgCI4PK5X7EVPWThRyZlgtup5lHCoVaUjC57+7g74f7k3mG4a+xBMRDQBm6f99shlm7pfcDPDbJg7UlzQxs9tuj9t6EfHiKPG/APWvLytsPerdoLbaG0haCeCTQ24BLiKFFNJ2BQgnCSCJEwNDNSsxDT7osRT4gQGFOJFwZYYYbAQEOG194CANzTvGQxB+AHo0GwEMzU4yAklQAYVmD5gMveJQv5jKfNwO/8rB3sccCH6Dr1Gzdxb0df4Dl5Covemvg+7vFQhYC9h2WLZl8rcirnWcsH1JFHcUY2ozp3cw0o8i+W42c9ID9ybhmua9YoF1L8oCAn6D04GrIo0p5gq5/8ERCnzXEtK60bumNF4FFixAIGi1Bks9XEy8WyK7Tqt6LEGiXgoVlBBlSHeVw713wEi6N2bwsjszeXGOVvdMIXIeK6Nqju9LX4oNlKhQYwrTmMHsH0xzg8LafvhcFiLRWDyRTKUz2Vy+UCyVK9VavdFstTvdXn8wHI0n09l8wRRV0w3Tsh3XvQePnjx78erNJ5998dU33/3wc+1PH57BawmJtvRwmpdNvc2WCTIQG3NqlpOpCuZjSIvOzAd75blGIAsCjIG0wFlQRiWq8IHpmLjLwdGKt19gRSp7pklYGwGrTOdlYyaVsmn2tGleUTaLaeAr296ZlKwLj2p34YeuRF3GTVK45SqWGLFxxUWUn5CbLkw1q0hbEEwnW7GI8Y1ux9Y2kN/BWAQMK1CYVHcEla4bpVyIoibYp5ZOx5jmYJtcwA3CZi5qck1JdvLAFFItJ5zTN5O6oYok6pJzx54LUcPlR1ElJtgr92NCZ9OcLMET7YOVhHZupsAgDbObM2GAllS73uopA+3Upy4Bla9amig+uFMLk9+PI+uax4AIEjJXGNHow2ChewpV2dLEWa01AAA=);font-weight:400;font-style:normal}.ag-theme-alpine,.ag-theme-gradio,.ag-theme-alpine-dark,.dark .ag-theme-gradio,.ag-theme-alpine-auto-dark{--ag-alpine-active-color: #2196f3;--ag-selected-row-background-color: rgba(33, 150, 243, .3);--ag-row-hover-color: rgba(33, 150, 243, .1);--ag-column-hover-color: rgba(33, 150, 243, .1);--ag-input-focus-border-color: rgba(33, 150, 243, .4);--ag-range-selection-background-color: rgba(33, 150, 243, .2);--ag-range-selection-background-color-2: rgba(33, 150, 243, .36);--ag-range-selection-background-color-3: rgba(33, 150, 243, .49);--ag-range-selection-background-color-4: rgba(33, 150, 243, .59);--ag-background-color: #fff;--ag-foreground-color: #181d1f;--ag-border-color: #babfc7;--ag-secondary-border-color: #dde2eb;--ag-header-background-color: #f8f8f8;--ag-tooltip-background-color: #f8f8f8;--ag-odd-row-background-color: #fcfcfc;--ag-control-panel-background-color: #f8f8f8;--ag-subheader-background-color: #fff;--ag-invalid-color: #e02525;--ag-checkbox-unchecked-color: #999;--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-checkbox-background-color: var(--ag-background-color);--ag-checkbox-checked-color: var(--ag-alpine-active-color);--ag-range-selection-border-color: var(--ag-alpine-active-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-input-border-color: var(--ag-border-color);--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-input-focus-box-shadow: 0 0 2px .1rem var(--ag-input-focus-border-color);--ag-panel-background-color: var(--ag-header-background-color);--ag-menu-background-color: var(--ag-header-background-color);--ag-disabled-foreground-color: rgba(24, 29, 31, .5);--ag-chip-background-color: rgba(24, 29, 31, .07);--ag-input-disabled-border-color: rgba(186, 191, 199, .3);--ag-input-disabled-background-color: rgba(186, 191, 199, .15);--ag-borders: solid 1px;--ag-border-radius: 3px;--ag-borders-side-button: none;--ag-side-button-selected-background-color: transparent;--ag-header-column-resize-handle-display: block;--ag-header-column-resize-handle-width: 2px;--ag-header-column-resize-handle-height: 30%;--ag-grid-size: 6px;--ag-icon-size: 16px;--ag-row-height: calc(var(--ag-grid-size) * 7);--ag-header-height: calc(var(--ag-grid-size) * 8);--ag-list-item-height: calc(var(--ag-grid-size) * 4);--ag-column-select-indent-size: var(--ag-icon-size);--ag-set-filter-indent-size: var(--ag-icon-size);--ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);--ag-toggle-button-height: 18px;--ag-toggle-button-width: 28px;--ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ag-font-size: 13px;--ag-icon-font-family: agGridAlpine;--ag-selected-tab-underline-color: var(--ag-alpine-active-color);--ag-selected-tab-underline-width: 2px;--ag-selected-tab-underline-transition-speed: .3s;--ag-tab-min-width: 240px;--ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, .4);--ag-popup-shadow: var(--ag-card-shadow);--ag-side-bar-panel-width: 250px}.ag-theme-alpine-dark,.dark .ag-theme-gradio{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, .5);--ag-modal-overlay-background-color: rgba(24, 29, 31, .66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;--ag-input-focus-box-shadow: 0 0 2px .5px rgba(255, 255, 255, .5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, .5);--ag-chip-background-color: rgba(255, 255, 255, .07);--ag-input-disabled-border-color: rgba(104, 104, 110, .3);--ag-input-disabled-background-color: rgba(104, 104, 110, .07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;color-scheme:dark}@media (prefers-color-scheme: dark){.ag-theme-alpine-auto-dark{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, .5);--ag-modal-overlay-background-color: rgba(24, 29, 31, .66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;--ag-input-focus-box-shadow: 0 0 2px .5px rgba(255, 255, 255, .5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, .5);--ag-chip-background-color: rgba(255, 255, 255, .07);--ag-input-disabled-border-color: rgba(104, 104, 110, .3);--ag-input-disabled-background-color: rgba(104, 104, 110, .07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;color-scheme:dark}}.ag-theme-alpine .ag-filter-toolpanel-header,.ag-theme-gradio .ag-filter-toolpanel-header,.ag-theme-alpine .ag-filter-toolpanel-search,.ag-theme-gradio .ag-filter-toolpanel-search,.ag-theme-alpine .ag-status-bar,.ag-theme-gradio .ag-status-bar,.ag-theme-alpine .ag-header-row,.ag-theme-gradio .ag-header-row,.ag-theme-alpine .ag-panel-title-bar-title,.ag-theme-gradio .ag-panel-title-bar-title,.ag-theme-alpine .ag-multi-filter-group-title-bar,.ag-theme-gradio .ag-multi-filter-group-title-bar,.ag-theme-alpine-dark .ag-filter-toolpanel-header,.ag-theme-alpine-dark .ag-filter-toolpanel-search,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-dark .ag-header-row,.ag-theme-alpine-dark .ag-panel-title-bar-title,.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,.ag-theme-alpine-auto-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-header-row,.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar{font-weight:700;color:var(--ag-header-foreground-color)}.ag-theme-alpine .ag-row,.ag-theme-gradio .ag-row,.ag-theme-alpine-dark .ag-row,.ag-theme-alpine-auto-dark .ag-row{font-size:calc(var(--ag-font-size) + 1px)}.ag-theme-alpine input[class^=ag-]:not([type]),.ag-theme-gradio input[class^=ag-]:not([type]),.ag-theme-alpine input[class^=ag-][type=text],.ag-theme-gradio input[class^=ag-][type=text],.ag-theme-alpine input[class^=ag-][type=number],.ag-theme-gradio input[class^=ag-][type=number],.ag-theme-alpine input[class^=ag-][type=tel],.ag-theme-gradio input[class^=ag-][type=tel],.ag-theme-alpine input[class^=ag-][type=date],.ag-theme-gradio input[class^=ag-][type=date],.ag-theme-alpine input[class^=ag-][type=datetime-local],.ag-theme-gradio input[class^=ag-][type=datetime-local],.ag-theme-alpine textarea[class^=ag-],.ag-theme-gradio textarea[class^=ag-],.ag-theme-alpine-dark input[class^=ag-]:not([type]),.ag-theme-alpine-dark input[class^=ag-][type=text],.ag-theme-alpine-dark input[class^=ag-][type=number],.ag-theme-alpine-dark input[class^=ag-][type=tel],.ag-theme-alpine-dark input[class^=ag-][type=date],.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark textarea[class^=ag-],.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark input[class^=ag-][type=text],.ag-theme-alpine-auto-dark input[class^=ag-][type=number],.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark input[class^=ag-][type=date],.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark textarea[class^=ag-]{min-height:calc(var(--ag-grid-size) * 4);border-radius:var(--ag-border-radius)}.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]),.ag-theme-gradio .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine .ag-ltr input[class^=ag-][type=text],.ag-theme-gradio .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine .ag-ltr input[class^=ag-][type=number],.ag-theme-gradio .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine .ag-ltr input[class^=ag-][type=tel],.ag-theme-gradio .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine .ag-ltr input[class^=ag-][type=date],.ag-theme-gradio .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-gradio .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-ltr textarea[class^=ag-],.ag-theme-gradio .ag-ltr textarea[class^=ag-],.ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-ltr textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-]{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]),.ag-theme-gradio .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine .ag-rtl input[class^=ag-][type=text],.ag-theme-gradio .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine .ag-rtl input[class^=ag-][type=number],.ag-theme-gradio .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine .ag-rtl input[class^=ag-][type=tel],.ag-theme-gradio .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine .ag-rtl input[class^=ag-][type=date],.ag-theme-gradio .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-gradio .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-rtl textarea[class^=ag-],.ag-theme-gradio .ag-rtl textarea[class^=ag-],.ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-rtl textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-]{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-tab,.ag-theme-gradio .ag-tab,.ag-theme-alpine-dark .ag-tab,.ag-theme-alpine-auto-dark .ag-tab{padding:calc(var(--ag-grid-size) * 1.5);transition:color .4s;flex:1 1 auto}.ag-theme-alpine .ag-tab-selected,.ag-theme-gradio .ag-tab-selected,.ag-theme-alpine-dark .ag-tab-selected,.ag-theme-alpine-auto-dark .ag-tab-selected{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-menu,.ag-theme-gradio .ag-menu,.ag-theme-alpine-dark .ag-menu,.ag-theme-alpine-auto-dark .ag-menu,.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,.ag-theme-gradio .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select{background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-menu-header,.ag-theme-gradio .ag-menu-header,.ag-theme-alpine-dark .ag-menu-header,.ag-theme-alpine-auto-dark .ag-menu-header{background-color:var(--ag-control-panel-background-color);padding-top:1px}.ag-theme-alpine .ag-tabs-header,.ag-theme-gradio .ag-tabs-header,.ag-theme-alpine-dark .ag-tabs-header,.ag-theme-alpine-auto-dark .ag-tabs-header{border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-theme-alpine .ag-charts-settings-group-title-bar,.ag-theme-gradio .ag-charts-settings-group-title-bar,.ag-theme-alpine .ag-charts-data-group-title-bar,.ag-theme-gradio .ag-charts-data-group-title-bar,.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,.ag-theme-gradio .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar{padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);line-height:calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px)}.ag-theme-alpine .ag-chart-mini-thumbnail,.ag-theme-gradio .ag-chart-mini-thumbnail,.ag-theme-alpine-dark .ag-chart-mini-thumbnail,.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail{background-color:var(--ag-background-color)}.ag-theme-alpine .ag-chart-settings-nav-bar,.ag-theme-gradio .ag-chart-settings-nav-bar,.ag-theme-alpine-dark .ag-chart-settings-nav-bar,.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon,.ag-theme-gradio .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon,.ag-theme-gradio .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,.ag-theme-gradio .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar{margin-top:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-gradio .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar{padding-left:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-gradio .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar{padding-right:calc(var(--ag-icon-size) * .5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group,.ag-theme-gradio .ag-charts-format-sub-level-group,.ag-theme-alpine-dark .ag-charts-format-sub-level-group,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group{border-left:dashed 1px;border-left-color:var(--ag-border-color);padding-left:var(--ag-grid-size);margin-bottom:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,.ag-theme-gradio .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar{padding-top:0;padding-bottom:0;background:none;font-weight:700}.ag-theme-alpine .ag-charts-format-sub-level-group-container,.ag-theme-gradio .ag-charts-format-sub-level-group-container,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container{padding-bottom:0}.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,.ag-theme-gradio .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child{margin-bottom:0}.ag-theme-alpine.ag-dnd-ghost,.ag-dnd-ghost.ag-theme-gradio,.ag-theme-alpine-dark.ag-dnd-ghost,.ag-theme-alpine-auto-dark.ag-dnd-ghost{font-size:calc(var(--ag-font-size) - 1px);font-weight:700}.ag-theme-alpine .ag-side-buttons,.ag-theme-gradio .ag-side-buttons,.ag-theme-alpine-dark .ag-side-buttons,.ag-theme-alpine-auto-dark .ag-side-buttons{width:calc(var(--ag-grid-size) * 5)}.ag-theme-alpine .ag-standard-button,.ag-theme-gradio .ag-standard-button,.ag-theme-alpine-dark .ag-standard-button,.ag-theme-alpine-auto-dark .ag-standard-button{font-family:inherit;-moz-appearance:none;appearance:none;-webkit-appearance:none;border-radius:var(--ag-border-radius);border:1px solid;border-color:var(--ag-alpine-active-color);color:var(--ag-alpine-active-color);background-color:var(--ag-background-color);font-weight:600;padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-standard-button:hover,.ag-theme-gradio .ag-standard-button:hover,.ag-theme-alpine-dark .ag-standard-button:hover,.ag-theme-alpine-auto-dark .ag-standard-button:hover{border-color:var(--ag-alpine-active-color);background-color:var(--ag-row-hover-color)}.ag-theme-alpine .ag-standard-button:active,.ag-theme-gradio .ag-standard-button:active,.ag-theme-alpine-dark .ag-standard-button:active,.ag-theme-alpine-auto-dark .ag-standard-button:active{border-color:var(--ag-alpine-active-color);background-color:var(--ag-alpine-active-color);color:var(--ag-background-color)}.ag-theme-alpine .ag-standard-button:disabled,.ag-theme-gradio .ag-standard-button:disabled,.ag-theme-alpine-dark .ag-standard-button:disabled,.ag-theme-alpine-auto-dark .ag-standard-button:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-theme-alpine .ag-column-drop-vertical,.ag-theme-gradio .ag-column-drop-vertical,.ag-theme-alpine-dark .ag-column-drop-vertical,.ag-theme-alpine-auto-dark .ag-column-drop-vertical{min-height:75px}.ag-theme-alpine .ag-column-drop-vertical-title-bar,.ag-theme-gradio .ag-column-drop-vertical-title-bar,.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar{padding:calc(var(--ag-grid-size) * 2);padding-bottom:0}.ag-theme-alpine .ag-column-drop-vertical-empty-message,.ag-theme-gradio .ag-column-drop-vertical-empty-message,.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message{display:flex;align-items:center;border:dashed 1px;border-color:var(--ag-border-color);margin:calc(var(--ag-grid-size) * 2);padding:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-column-drop-empty-message,.ag-theme-gradio .ag-column-drop-empty-message,.ag-theme-alpine-dark .ag-column-drop-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-empty-message{color:var(--ag-foreground-color);opacity:.75}.ag-theme-alpine .ag-status-bar,.ag-theme-gradio .ag-status-bar,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-status-bar{font-weight:400}.ag-theme-alpine .ag-status-name-value-value,.ag-theme-gradio .ag-status-name-value-value,.ag-theme-alpine-dark .ag-status-name-value-value,.ag-theme-alpine-auto-dark .ag-status-name-value-value,.ag-theme-alpine .ag-paging-number,.ag-theme-gradio .ag-paging-number,.ag-theme-alpine .ag-paging-row-summary-panel-number,.ag-theme-gradio .ag-paging-row-summary-panel-number,.ag-theme-alpine-dark .ag-paging-number,.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,.ag-theme-alpine-auto-dark .ag-paging-number,.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number{font-weight:700}.ag-theme-alpine .ag-column-drop-cell-button,.ag-theme-gradio .ag-column-drop-cell-button,.ag-theme-alpine-dark .ag-column-drop-cell-button,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button{opacity:.5}.ag-theme-alpine .ag-column-drop-cell-button:hover,.ag-theme-gradio .ag-column-drop-cell-button:hover,.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover{opacity:.75}.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-gradio .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-gradio .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip{opacity:.35}.ag-theme-alpine .ag-header-cell-menu-button:hover,.ag-theme-gradio .ag-header-cell-menu-button:hover,.ag-theme-alpine .ag-header-cell-filter-button:hover,.ag-theme-gradio .ag-header-cell-filter-button:hover,.ag-theme-alpine .ag-side-button-button:hover,.ag-theme-gradio .ag-side-button-button:hover,.ag-theme-alpine .ag-tab:hover,.ag-theme-gradio .ag-tab:hover,.ag-theme-alpine .ag-panel-title-bar-button:hover,.ag-theme-gradio .ag-panel-title-bar-button:hover,.ag-theme-alpine .ag-header-expand-icon:hover,.ag-theme-gradio .ag-header-expand-icon:hover,.ag-theme-alpine .ag-column-group-icons:hover,.ag-theme-gradio .ag-column-group-icons:hover,.ag-theme-alpine .ag-set-filter-group-icons:hover,.ag-theme-gradio .ag-set-filter-group-icons:hover,.ag-theme-alpine .ag-group-expanded .ag-icon:hover,.ag-theme-gradio .ag-group-expanded .ag-icon:hover,.ag-theme-alpine .ag-group-contracted .ag-icon:hover,.ag-theme-gradio .ag-group-contracted .ag-icon:hover,.ag-theme-alpine .ag-chart-settings-prev:hover,.ag-theme-gradio .ag-chart-settings-prev:hover,.ag-theme-alpine .ag-chart-settings-next:hover,.ag-theme-gradio .ag-chart-settings-next:hover,.ag-theme-alpine .ag-group-title-bar-icon:hover,.ag-theme-gradio .ag-group-title-bar-icon:hover,.ag-theme-alpine .ag-column-select-header-icon:hover,.ag-theme-gradio .ag-column-select-header-icon:hover,.ag-theme-alpine .ag-floating-filter-button-button:hover,.ag-theme-gradio .ag-floating-filter-button-button:hover,.ag-theme-alpine .ag-filter-toolpanel-expand:hover,.ag-theme-gradio .ag-filter-toolpanel-expand:hover,.ag-theme-alpine .ag-chart-menu-icon:hover,.ag-theme-gradio .ag-chart-menu-icon:hover,.ag-theme-alpine .ag-chart-menu-close:hover,.ag-theme-gradio .ag-chart-menu-close:hover,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-dark .ag-side-button-button:hover,.ag-theme-alpine-dark .ag-tab:hover,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-dark .ag-header-expand-icon:hover,.ag-theme-alpine-dark .ag-column-group-icons:hover,.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-dark .ag-chart-settings-next:hover,.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-dark .ag-chart-menu-close:hover,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-auto-dark .ag-side-button-button:hover,.ag-theme-alpine-auto-dark .ag-tab:hover,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-close:hover{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-gradio .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-gradio .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine .ag-side-button-button:hover .ag-icon,.ag-theme-gradio .ag-side-button-button:hover .ag-icon,.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-gradio .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-gradio .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon{color:inherit}.ag-theme-alpine .ag-filter-active .ag-icon-filter,.ag-theme-gradio .ag-filter-active .ag-icon-filter,.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-menu-close,.ag-theme-gradio .ag-chart-menu-close,.ag-theme-alpine-dark .ag-chart-menu-close,.ag-theme-alpine-auto-dark .ag-chart-menu-close{background:var(--ag-background-color)}.ag-theme-alpine .ag-chart-menu-close:hover .ag-icon,.ag-theme-gradio .ag-chart-menu-close:hover .ag-icon,.ag-theme-alpine-dark .ag-chart-menu-close:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-chart-menu-close:hover .ag-icon{border-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-menu-close .ag-icon,.ag-theme-gradio .ag-chart-menu-close .ag-icon,.ag-theme-alpine-dark .ag-chart-menu-close .ag-icon,.ag-theme-alpine-auto-dark .ag-chart-menu-close .ag-icon{background:var(--ag-header-background-color);border:1px solid var(--ag-border-color);border-right:none}.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-gradio .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button,.ag-theme-gradio .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button{margin-left:calc(var(--ag-grid-size) * 2);margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button,.ag-theme-gradio .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button{margin-right:calc(var(--ag-grid-size) * 2);margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-gradio .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-gradio .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-filter-toolpanel-instance-filter,.ag-theme-gradio .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter{border:none;background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-gradio .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter{border-left:dashed 1px;border-left-color:var(--ag-border-color);margin-left:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-gradio .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter{border-right:dashed 1px;border-right-color:var(--ag-border-color);margin-right:calc(var(--ag-icon-size) * .5)}.ag-theme-alpine .ag-set-filter-list,.ag-theme-gradio .ag-set-filter-list,.ag-theme-alpine-dark .ag-set-filter-list,.ag-theme-alpine-auto-dark .ag-set-filter-list{padding-top:calc(var(--ag-grid-size) * .5);padding-bottom:calc(var(--ag-grid-size) * .5)}.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-gradio .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,.ag-theme-gradio .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,.ag-theme-gradio .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine .ag-layout-print .ag-center-cols-container,.ag-theme-gradio .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container{min-height:150px}.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-gradio .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-alpine-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height,.ag-theme-alpine-auto-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height{padding-top:60px}.ag-theme-alpine .ag-date-time-list-page-entry-is-current,.ag-theme-gradio .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current{background-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-advanced-filter-builder-button,.ag-theme-gradio .ag-advanced-filter-builder-button,.ag-theme-alpine-dark .ag-advanced-filter-builder-button,.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button{padding:var(--ag-grid-size);font-weight:600}.ag-theme-gradio,.dark .ag-theme-gradio{--ag-alpine-active-color: var(--color-accent);--ag-selected-row-background-color: var(--table-row-focus);--ag-modal-overlay-background-color: transparent;--ag-row-hover-color: transparent;--ag-column-hover-color: transparent;--ag-input-focus-border-color: var(--input-border-color-focus);--ag-background-color: var(--table-even-background-fill);--ag-foreground-color: var(--body-text-color);--ag-border-color: var(--border-color-primary);--ag-secondary-border-color: var(--border-color-primary);--ag-header-background-color: var(--table-even-background-fill);--ag-tooltip-background-color: var(--table-even-background-fill);--ag-odd-row-background-color: var(--table-even-background-fill);--ag-control-panel-background-color: var(--table-even-background-fill);--ag-invalid-color: var(--error-text-color);--ag-input-border-color: var(--input-border-color);--ag-disabled-foreground-color: var(--body-text-color-subdued);--ag-row-border-color: var(--border-color-primary);--ag-row-height: 45px;--ag-header-height: 45px;--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2)}.ag-theme-gradio>*,.dark .ag-theme-gradio>*{--body-text-color: "inherit"}.ag-theme-gradio .ag-root-wrapper,.dark .ag-theme-gradio .ag-root-wrapper{border-radius:var(--table-radius)}.ag-theme-gradio .ag-row-even,.dark .ag-theme-gradio .ag-row-even{background:var(--table-odd-background-fill)}.ag-theme-gradio .ag-row-highlight-above:after,.ag-theme-gradio .ag-row-highlight-below:after,.dark .ag-theme-gradio .ag-row-highlight-above:after,.dark .ag-theme-gradio .ag-row-highlight-below:after{width:100%;height:2px;left:0;z-index:3}.ag-theme-gradio .ag-row-highlight-above:after,.dark .ag-theme-gradio .ag-row-highlight-above:after{top:-1.5px}.ag-theme-gradio .ag-row-highlight-above.ag-row-first:after,.dark .ag-theme-gradio .ag-row-highlight-above.ag-row-first:after{top:0}.ag-theme-gradio .ag-row-highlight-below:after,.dark .ag-theme-gradio .ag-row-highlight-below:after{bottom:-1.5px}.ag-theme-gradio .ag-row-highlight-below.ag-row-last:after,.dark .ag-theme-gradio .ag-row-highlight-below.ag-row-last:after{bottom:0}.ag-theme-gradio .cell-span,.dark .ag-theme-gradio .cell-span{border-bottom-color:var(--ag-border-color)}.ag-theme-gradio .cell-not-span,.dark .ag-theme-gradio .cell-not-span{opacity:0}.ag-theme-gradio .ag-input-field-input,.dark .ag-theme-gradio .ag-input-field-input,.ag-theme-gradio .ag-select .ag-picker-field-wrapper,.dark .ag-theme-gradio .ag-select .ag-picker-field-wrapper{background-color:var(--input-background-fill)}.ag-center-cols-viewport{scrollbar-width:none;-ms-overflow-style:none}.ag-center-cols-viewport::-webkit-scrollbar{display:none}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{overflow-x:hidden}.ag-overlay{z-index:5}.notyf{font-family:var(--font)}.notyf .notyf__toast{padding:0 16px;border-radius:6px}.notyf .notyf__toast.notyf__toast--success .notyf__ripple{background-color:#22c55e!important}.notyf .notyf__toast.notyf__toast--error .notyf__ripple{background-color:#ef4444!important}.notyf .notyf__wrapper{padding:12px 0}#tabs>#agent_scheduler_tabs{margin-top:var(--layout-gap)}.ag-row.ag-row-editing .ag-cell.pending-actions .control-actions{display:none}.ag-row:not(.ag-row-editing) .ag-cell.pending-actions .edit-actions{display:none}.ag-cell.wrap-cell{line-height:var(--line-lg);padding-top:calc(var(--ag-cell-horizontal-padding) - 1px);padding-bottom:calc(var(--ag-cell-horizontal-padding) - 1px)}button.ts-btn-action{display:inline-flex;justify-content:center;align-items:center;transition:var(--button-transition);box-shadow:var(--button-shadow);padding:var(--size-1) var(--size-2)!important;text-align:center}button.ts-btn-action:hover,button.ts-btn-action[disabled]{box-shadow:var(--button-shadow-hover)}button.ts-btn-action[disabled]{opacity:.5;filter:grayscale(30%);cursor:not-allowed}button.ts-btn-action:active{box-shadow:var(--button-shadow-active)}button.ts-btn-action.primary{border:var(--button-border-width) solid var(--button-primary-border-color);background:var(--button-primary-background-fill);color:var(--button-primary-text-color)}button.ts-btn-action.primary:hover,button.ts-btn-action.primary[disabled]{border-color:var(--button-primary-border-color-hover);background:var(--button-primary-background-fill-hover);color:var(--button-primary-text-color-hover)}button.ts-btn-action.secondary{border:var(--button-border-width) solid var(--button-secondary-border-color);background:var(--button-secondary-background-fill);color:var(--button-secondary-text-color)}button.ts-btn-action.secondary:hover,button.ts-btn-action.secondary[disabled]{border-color:var(--button-secondary-border-color-hover);background:var(--button-secondary-background-fill-hover);color:var(--button-secondary-text-color-hover)}button.ts-btn-action.stop{border:var(--button-border-width) solid var(--button-cancel-border-color);background:var(--button-cancel-background-fill);color:var(--button-cancel-text-color)}button.ts-btn-action.stop:hover,button.ts-btn-action.stop[disabled]{border-color:var(--button-cancel-border-color-hover);background:var(--button-cancel-background-fill-hover);color:var(--button-cancel-text-color-hover)}.ts-bookmark{color:var(--body-text-color-subdued)!important}.ts-bookmarked{color:var(--color-accent)!important}.ts-pin,.ts-pinned{color:var(--button-primary-background-fill)!important}#agent_scheduler_pending_tasks_grid,#agent_scheduler_history_tasks_grid{height:calc(100vh - 300px);min-height:400px}#agent_scheduler_pending_tasks_wrapper,#agent_scheduler_history_wrapper{border:none;border-width:0;box-shadow:none;justify-content:flex-end;gap:var(--layout-gap);padding:0}@media (max-width: 1024px){#agent_scheduler_pending_tasks_wrapper,#agent_scheduler_history_wrapper{flex-wrap:wrap}}#agent_scheduler_pending_tasks_wrapper>div:last-child,#agent_scheduler_history_wrapper>div:last-child{width:100%}@media (min-width: 1280px){#agent_scheduler_pending_tasks_wrapper>div:last-child,#agent_scheduler_history_wrapper>div:last-child{min-width:400px!important;max-width:min(25%,700px)}}#agent_scheduler_pending_tasks_wrapper>button,#agent_scheduler_history_wrapper>button{flex:0 0 auto}#agent_scheduler_history_actions,#agent_scheduler_pending_tasks_actions{gap:calc(var(--layout-gap) / 2);min-height:36px}#agent_scheduler_history_result_actions{display:flex;justify-content:center}#agent_scheduler_history_result_actions>div.form{flex:0 0 auto!important}#agent_scheduler_history_result_actions>div.gr-group{flex:1 1 100%!important}#agent_scheduler_pending_tasks_wrapper .livePreview{margin:0;padding-top:100%}#agent_scheduler_pending_tasks_wrapper .livePreview img{top:0;border-radius:5px}#agent_scheduler_pending_tasks_wrapper .progressDiv{height:42px;line-height:42px;max-width:100%;text-align:center;position:static;font-size:var(--button-large-text-size);font-weight:var(--button-large-text-weight)}#agent_scheduler_pending_tasks_wrapper .progressDiv .progress{height:42px;line-height:42px}#agent_scheduler_pending_tasks_wrapper .progressDiv+.livePreview{margin-top:calc(40px + var(--layout-gap))}#agent_scheduler_current_task_images,#agent_scheduler_history_gallery{width:100%;padding-top:100%;position:relative;box-sizing:content-box}#agent_scheduler_current_task_images>div,#agent_scheduler_history_gallery>div{position:absolute;top:0;left:0;width:100%;height:100%}@media screen and (min-width: 1280px){#agent_scheduler_history_gallery .fixed-height{min-height:400px}}.ml-auto{margin-left:auto}.gradio-row.flex-row>*,.gradio-row.flex-row>.form,.gradio-row.flex-row>.form>*{flex:initial;width:initial;min-width:initial}.agent_scheduler_filter_container>div.form{margin:0}#agent_scheduler_status_filter{width:var(--size-36);padding:0!important}#agent_scheduler_status_filter label>div{height:100%}#agent_scheduler_action_search,#agent_scheduler_action_search_history{width:var(--size-64);padding:0!important}#agent_scheduler_action_search>label,#agent_scheduler_action_search_history>label{position:relative;height:100%}#agent_scheduler_action_search input.ts-search-input,#agent_scheduler_action_search_history input.ts-search-input{padding:var(--block-padding);height:100%}#txt2img_enqueue_wrapper,#img2img_enqueue_wrapper{min-width:210px;display:flex;flex-direction:column;gap:calc(var(--layout-gap) / 2)}#txt2img_enqueue_wrapper>div:first-child,#img2img_enqueue_wrapper>div:first-child{flex-direction:row;flex-wrap:nowrap;align-items:stretch;flex:0 0 auto;flex-grow:unset!important}:not(#txt2img_generate_box)>#txt2img_enqueue_wrapper,:not(#img2img_generate_box)>#img2img_enqueue_wrapper{align-self:flex-start}#img2img_toprow .interrogate-col.has-queue-button{min-width:unset!important;flex-direction:row!important;gap:calc(var(--layout-gap) / 2)!important}#img2img_toprow .interrogate-col.has-queue-button button{margin:0}#enqueue_keyboard_shortcut_wrapper{flex-wrap:wrap}#enqueue_keyboard_shortcut_wrapper .form{display:flex;flex-direction:row;align-items:flex-end;flex-wrap:nowrap}#enqueue_keyboard_shortcut_wrapper .form>div,#enqueue_keyboard_shortcut_wrapper .form fieldset{flex:0 0 auto;width:auto}#enqueue_keyboard_shortcut_wrapper .form #enqueue_keyboard_shortcut_modifiers{width:300px}#enqueue_keyboard_shortcut_wrapper .form #enqueue_keyboard_shortcut_key{width:100px}#enqueue_keyboard_shortcut_wrapper .form #setting_queue_keyboard_shortcut{display:none}#enqueue_keyboard_shortcut_wrapper .form #enqueue_keyboard_shortcut_disable{width:100%}.modification-indicator+#enqueue_keyboard_shortcut_wrapper #enqueue_keyboard_shortcut_disable{padding-left:12px!important} diff --git a/ui/src/assets/icons/pin.svg b/ui/src/assets/icons/pin.svg new file mode 100644 index 0000000..19006ee --- /dev/null +++ b/ui/src/assets/icons/pin.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/ui/src/assets/icons/pinned-filled.svg b/ui/src/assets/icons/pinned-filled.svg new file mode 100644 index 0000000..55db141 --- /dev/null +++ b/ui/src/assets/icons/pinned-filled.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/ui/src/extension/index.scss b/ui/src/extension/index.scss index d9fd47f..90588f2 100644 --- a/ui/src/extension/index.scss +++ b/ui/src/extension/index.scss @@ -218,6 +218,14 @@ button.ts-btn-action { color: var(--color-accent) !important; } +.ts-pin { + color: var(--button-primary-background-fill) !important; +} + +.ts-pinned { + color: var(--button-primary-background-fill) !important; +} + #agent_scheduler_pending_tasks_grid, #agent_scheduler_history_tasks_grid { height: calc(100vh - 300px); diff --git a/ui/src/extension/index.ts b/ui/src/extension/index.ts index aba6bd4..c8156c1 100644 --- a/ui/src/extension/index.ts +++ b/ui/src/extension/index.ts @@ -15,6 +15,8 @@ import { Notyf } from 'notyf'; import bookmark from '../assets/icons/bookmark.svg?raw'; import bookmarked from '../assets/icons/bookmark-filled.svg?raw'; +import pin from '../assets/icons/pin.svg?raw'; +import pinned from '../assets/icons/pinned-filled.svg?raw'; import cancelIcon from '../assets/icons/cancel.svg?raw'; import deleteIcon from '../assets/icons/delete.svg?raw'; import playIcon from '../assets/icons/play.svg?raw'; @@ -735,7 +737,7 @@ function initPendingTab() { editType: 'fullRow', defaultColDef: { ...sharedGridOptions.defaultColDef, - editable: ({ data }) => data?.status === 'pending', + editable: ({ data }) => data?.pinned === true, cellDataType: false, }, // each entry here represents one column @@ -745,6 +747,43 @@ function initPendingTab() { hide: true, sort: 'asc', }, + { + headerName: 'Pin', + field: 'pinned', + minWidth: 55, + maxWidth: 55, + pinned: 'left', + tooltipValueGetter: ({ value }: ITooltipParams) => + value === true ? 'Unpin' : 'Pin', + cellClass: ({ value }: CellClassParams) => [ + 'cursor-pointer', + 'pt-3', + value === true ? 'ts-pinned' : 'ts-pin', + ], + cellRenderer: ({ value }: ICellRendererParams) => + value === true ? pinned : pin, + onCellClicked: ({ + api, + data, + value, + event, + }: CellClickedEvent) => { + if (data == null) return; + + if (event != null) { + event.stopPropagation(); + event.preventDefault(); + } + + const pinned = value === true; + store.pinTask(data.id, !pinned).then(res => { + notify(res); + api.applyTransaction({ + update: [{ ...data, pinned: !pinned }], + }); + }); + }, + }, ...sharedGridOptions.columnDefs!, { headerName: 'Action', @@ -1068,10 +1107,13 @@ function initHistoryTab() { const node = document.createElement('div'); node.innerHTML = ` -
+
+ @@ -1084,6 +1126,12 @@ function initHistoryTab() { e.stopPropagation(); store.requeueTask(value).then(notify); }); + const btnRunAndPin = node.querySelector('button.ts-btn-run-and-pin')!; + btnRunAndPin.addEventListener('click', e => { + e.preventDefault(); + e.stopPropagation(); + store.requeueAndPin(value).then(notify); + }); const btnDelete = node.querySelector('button.ts-btn-delete')!; btnDelete.addEventListener('click', e => { e.preventDefault(); diff --git a/ui/src/extension/stores/history.store.ts b/ui/src/extension/stores/history.store.ts index 7a3e167..476a5b7 100644 --- a/ui/src/extension/stores/history.store.ts +++ b/ui/src/extension/stores/history.store.ts @@ -14,6 +14,7 @@ type HistoryTasksActions = { bookmarkTask: (id: string, bookmarked: boolean) => Promise; renameTask: (id: string, name: string) => Promise; requeueTask: (id: string) => Promise; + requeueAndPin: (id: string) => Promise; requeueFailedTasks: () => Promise; clearHistory: () => Promise; }; @@ -56,6 +57,11 @@ export const createHistoryTasksStore = (initialState: HistoryTasksState) => { response.json() ); }, + requeueAndPin: async (id: string) => { + return fetch(`/agent-scheduler/v1/task/${id}/do-pin-and-requeue`, { + method: 'POST', + }).then(response => response.json()); + }, requeueFailedTasks: async () => { return fetch('/agent-scheduler/v1/task/requeue-failed', { method: 'POST' }).then(response => { actions.refresh(); diff --git a/ui/src/extension/stores/pending.store.ts b/ui/src/extension/stores/pending.store.ts index c1dc118..9dbe99f 100644 --- a/ui/src/extension/stores/pending.store.ts +++ b/ui/src/extension/stores/pending.store.ts @@ -20,6 +20,7 @@ type PendingTasksActions = { moveTask: (id: string, overId: string) => Promise; updateTask: (id: string, task: Task) => Promise; deleteTask: (id: string) => Promise; + pinTask: (id: string, pinned: boolean) => Promise; }; export type PendingTasksStore = ReturnType; @@ -82,6 +83,11 @@ export const createPendingTasksStore = (initialState: PendingTasksState) => { return data; }); }, + pinTask: async (id: string, pinned: boolean) => { + return fetch(`/agent-scheduler/v1/task/${id}/${pinned ? 'pin' : 'unpin'}`, { + method: 'POST', + }).then(response => response.json()); + }, runTask: async (id: string) => { return fetch(`/agent-scheduler/v1/task/${id}/run`, { method: 'POST' }) .then(response => response.json()) diff --git a/ui/src/extension/types.ts b/ui/src/extension/types.ts index 7eca35a..bbbbd46 100644 --- a/ui/src/extension/types.ts +++ b/ui/src/extension/types.ts @@ -10,6 +10,7 @@ export type Task = { priority: number; result: string; bookmarked?: boolean; + pinned?: boolean; editing?: boolean; created_at: number; updated_at: number;